aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nagios-templates.cfg6
-rwxr-xr-xsitesummary-nodes6
2 files changed, 9 insertions, 3 deletions
diff --git a/nagios-templates.cfg b/nagios-templates.cfg
index 36f59d6..251b903 100644
--- a/nagios-templates.cfg
+++ b/nagios-templates.cfg
@@ -224,6 +224,12 @@ define command{
}
define command{
+ command_name check_ldap
+ command_line /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b '$ARG1$'
+}
+
+
+define command{
command_name check_kernel_status
command_line /usr/bin/perl /usr/lib/sitesummary/nagios-plugins/check_kernel_status
}
diff --git a/sitesummary-nodes b/sitesummary-nodes
index 29b1e2e..d596321 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -304,7 +304,7 @@ sub generate_nagios_config {
my %tcpservices =
(
139 => { name => 'samba', package => 'samba' },
- 389 => { name => 'ldap', package => 'slapd' },
+# 389 => { name => 'ldap', package => 'slapd' },
4949 => { name => 'munin', package => 'munin-node' },
);
@@ -485,8 +485,8 @@ sub generate_nagios_config {
# check LDAP and LDAPS using the protocol, module present in
# nagios-plugins-basic
- print_nagios_service_check($remote, $hostname, "ldap",
- "check_ldap", "''")
+ print_nagios_service_check(0, $hostname, "ldap",
+ "check_ldap", "''");
if is_pkg_installed($hostid, "slapd");
# Check Squid web proxy