aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2011-12-24 08:32:10 +0000
committerPetter Reinholdtsen <pere@hungry.com>2011-12-24 08:32:10 +0000
commit1d32feb825442eb26e978456d7f3d6ef6463d2b8 (patch)
tree1d499f7e504360ed566ea2b0188af56ee7a566fc /sitesummary-nodes
parent75153746eb95b28a4955865ec9b5f01141ae0ddc (diff)
downloadsitesummary-1d32feb825442eb26e978456d7f3d6ef6463d2b8.tar.gz
sitesummary-1d32feb825442eb26e978456d7f3d6ef6463d2b8.tar.bz2
sitesummary-1d32feb825442eb26e978456d7f3d6ef6463d2b8.tar.xz
Make sure DNS, IMAPS and Squid checks can be tested on clients
as well as the server.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes6
1 files changed, 4 insertions, 2 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index 7438e3d..13c7594 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -236,6 +236,7 @@ sub generate_nagios_config {
my $hostid = $hostnames{$hostname};
my $address = get_dns_address($hostid);
+ my $localhostname = get_localhostname($hostid);
my $redirect = "";
my $nagiosclient = is_nagios_client($hostid);
@@ -394,8 +395,9 @@ sub generate_nagios_config {
# Check DNS server
print_nagios_service_check($remote, $hostname, "dns",
- "check_dns")
- if is_pkg_installed($hostid, "pdns-server");
+ "check_dns", $localhostname)
+ if (is_pkg_installed($hostid, "pdns-server") ||
+ is_pkg_installed($hostid, "bind9"));
# Check FTP server
print_nagios_service_check($remote, $hostname, "ftp",