Module: check_mk
Branch: master
Commit: cc7cafcfe8fa3f8cf0eedd41c6776e2a02845724
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc7cafcfe8fa3f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 30 20:41:05 2018 +0200
Add test for missing monitoring plugins
Change-Id: I7a281e1b79114ced338634066eb0e9fef287bd5d
---
tests/integration/omd/test_monitoring_plugins.py | 98 ++++++++++++++++++++++++
1 file changed, 98 insertions(+)
diff --git a/tests/integration/omd/test_monitoring_plugins.py
b/tests/integration/omd/test_monitoring_plugins.py
new file mode 100644
index 0000000..6fb0681
--- /dev/null
+++ b/tests/integration/omd/test_monitoring_plugins.py
@@ -0,0 +1,98 @@
+#!/usr/bin/env python
+# encoding: utf-8
+
+import pytest
+import os
+
+(a)pytest.mark.parametrize("plugin"ugin", [
+ "check_apt",
+ "check_bi_aggr",
+ "check_breeze",
+ "check_by_ssh",
+ "check_clamd",
+ "check_cluster",
+ "check_cpu_peaks",
+ "check_dhcp",
+ "check_dig",
+ "check_disk",
+ "check_disk_smb",
+ "check_dns",
+ "check_dummy",
+ "check_file_age",
+ "check_flexlm",
+ "check_form_submit",
+ "check_ftp",
+ "check_host",
+ "check_hpjd",
+ "check_http",
+ "check_icmp",
+ "check_ide_smart",
+ "check_ifoperstatus",
+ "check_ifstatus",
+ "check_imap",
+ "check_ircd",
+ "check_jabber",
+ "check_jmx4perl",
+ "check_ldap",
+ "check_ldaps",
+ "check_load",
+ "check_log",
+ "check_lql_service",
+ "check_mail",
+ "check_mailboxes",
+ "check_mail_loop",
+ "check_mailq",
+ "check_mkevents",
+ "check_mrtg",
+ "check_mrtgtraf",
+ "check_multi",
+ "check_mysql",
+ "check_mysql_health",
+ "check_mysql_query",
+ "check_nagios",
+ "check_nntp",
+ "check_nntps",
+ "check_notify_count",
+ "check_nrpe",
+ "check_nt",
+ "check_ntp",
+ "check_ntp_peer",
+ "check_ntp_time",
+ "check_nwstat",
+ "check_oracle",
+ "check_oracle_health",
+ "check_overcr",
+ "check_pgsql",
+ "check_ping",
+ "check_pop",
+ "check_procs",
+ "check_real",
+ "check_rpc",
+ "check_sensors",
+ "check_sftp",
+ "check_simap",
+ "check_smtp",
+ "check_snmp",
+ "check_spop",
+ "check_sql",
+ "check_ssh",
+ "check_ssmtp",
+ "check_swap",
+ "check_tcp",
+ "check_time",
+ "check_traceroute",
+ "check_udp",
+ "check_uniserv",
+ "check_ups",
+ "check_users",
+ "check_wave",
+ "check_webinject",
+ "negate",
+ "urlize",
+ "utils.pm",
+ "utils.sh",
+])
+def test_monitoring_plugins(site, plugin):
+ plugin_path = site.path(os.path.join("lib/nagios/plugins", plugin))
+ assert os.path.exists(plugin_path)
+ assert os.access(plugin_path, os.X_OK)