diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-01-17 21:00:51 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-01-17 21:00:51 +0000 |
commit | e971d362178e2c3758c54f556d70c0b551338f96 (patch) | |
tree | 7dba46899085870c6069646e09ca2f9a71de120b | |
parent | 46a9d10631cfd3c56154e9b219c9518e4b288efc (diff) | |
download | sitesummary-e971d362178e2c3758c54f556d70c0b551338f96.tar.gz sitesummary-e971d362178e2c3758c54f556d70c0b551338f96.tar.bz2 sitesummary-e971d362178e2c3758c54f556d70c0b551338f96.tar.xz |
Insert default route check before the host checks.
-rwxr-xr-x | sitesummary-nodes | 16 |
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' }, |