diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-11-14 09:46:55 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-11-14 09:46:55 +0000 |
commit | 08ed07907c7efeb8b0923066e2ff58e4d3b28a82 (patch) | |
tree | e30ab01f0f9d93632210f4d6311cde13635b34b9 | |
parent | 7788f9c7d75b31f577410fcf04d0fa21c4751b46 (diff) | |
download | sitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.gz sitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.bz2 sitesummary-08ed07907c7efeb8b0923066e2ff58e4d3b28a82.tar.xz |
Adjust LDAP check.
-rw-r--r-- | nagios-templates.cfg | 6 | ||||
-rwxr-xr-x | sitesummary-nodes | 6 |
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 |