aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-11-14 09:46:55 +0000
committerPetter Reinholdtsen <pere@hungry.com>2011-11-14 09:46:55 +0000
commit08ed07907c7efeb8b0923066e2ff58e4d3b28a82 (patch)
treee30ab01f0f9d93632210f4d6311cde13635b34b9
parent7788f9c7d75b31f577410fcf04d0fa21c4751b46 (diff)
downloadsitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.gz
sitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.bz2
sitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.xz
Adjust LDAP check.
-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