aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-11-14 10:55:04 +0000
committerPetter Reinholdtsen <pere@hungry.com>2011-11-14 10:55:04 +0000
commit13384666fd61d14235bd256d4de522084f43ed61 (patch)
treeafe1038ed6dd3e2df32a9740aa2bdde09b19a4a8 /sitesummary-nodes
parentc32f5955c5e8b5f1fa069ef037a9164b71aee63d (diff)
downloadsitesummary-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-xsitesummary-nodes4
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",