aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsitesummary-nodes16
1 files changed, 8 insertions, 8 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index cb44a30..5853f1b 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -192,14 +192,6 @@ sub generate_nagios_config {
##################### $hostname #######################
EOF
- print_nagios_host_check($hostname, $address)
- unless (exists $hosts{$hostname});
- $hosts{$hostname} = $address;
-
- # first, check ping to see if the other checks should be performed
- print_nagios_service_check(0, $hostname, "ping",
- "check_ping", "100.0,20%!500.0,60%");
-
# Also check default route host
if (defined $defaultroute && !exists $hosts{$defaultroute}) {
print_nagios_host_check($defaultroute, $defaultroute);
@@ -208,6 +200,14 @@ EOF
"check_ping", "100.0,20%!500.0,60%");
}
+ print_nagios_host_check($hostname, $address)
+ unless (exists $hosts{$hostname});
+ $hosts{$hostname} = $address;
+
+ # first, check ping to see if the other checks should be performed
+ print_nagios_service_check(0, $hostname, "ping",
+ "check_ping", "100.0,20%!500.0,60%");
+
my %tcpservices =
(
139 => { name => 'samba', package => 'samba' },