aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
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",