diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-11-14 10:55:04 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-11-14 10:55:04 +0000 |
commit | 13384666fd61d14235bd256d4de522084f43ed61 (patch) | |
tree | afe1038ed6dd3e2df32a9740aa2bdde09b19a4a8 /sitesummary-nodes | |
parent | c32f5955c5e8b5f1fa069ef037a9164b71aee63d (diff) | |
download | sitesummary-13384666fd61d14235bd256d4de522084f43ed61.tar.gz sitesummary-13384666fd61d14235bd256d4de522084f43ed61.tar.bz2 sitesummary-13384666fd61d14235bd256d4de522084f43ed61.tar.xz |
Improve LDAP server check, not only checking if the TCP port is
listening, but also check if the server will reply to searches for
the root DSE.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-x | sitesummary-nodes | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes index 2ff9e37..e99ab05 100755 --- a/sitesummary-nodes +++ b/sitesummary-nodes @@ -304,7 +304,6 @@ sub generate_nagios_config { my %tcpservices = ( 139 => { name => 'samba', package => 'samba' }, - 389 => { name => 'ldap', package => 'slapd' }, 4949 => { name => 'munin', package => 'munin-node' }, ); @@ -485,6 +484,9 @@ sub generate_nagios_config { # check LDAP and LDAPS using the protocol, module present in # nagios-plugins-basic + print_nagios_service_check(0, $hostname, "ldap root DSE", + "check_ldap_root") + if is_pkg_installed($hostid, "slapd"); # Check Squid web proxy print_nagios_service_check($remote, $hostname, "squid", |