aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2012-01-31 19:26:34 +0000
committerPetter Reinholdtsen <pere@hungry.com>2012-01-31 19:26:34 +0000
commite4cf6cbf6f13020024ab9e4c8fe4bd45c7300f86 (patch)
treec7d3b88f1e0c79ed44d1137089e4da9f70c6904a
parent59cfdfe5e99d650eed446f3f562fc316424c26f3 (diff)
downloadsitesummary-e4cf6cbf6f13020024ab9e4c8fe4bd45c7300f86.tar.gz
sitesummary-e4cf6cbf6f13020024ab9e4c8fe4bd45c7300f86.tar.bz2
sitesummary-e4cf6cbf6f13020024ab9e4c8fe4bd45c7300f86.tar.xz
Typo.
-rwxr-xr-xnagios-plugins/check_etc_hosts2
-rwxr-xr-xnagios-plugins/check_etc_resolv2
2 files changed, 2 insertions, 2 deletions
diff --git a/nagios-plugins/check_etc_hosts b/nagios-plugins/check_etc_hosts
index 48cb356..e804131 100755
--- a/nagios-plugins/check_etc_hosts
+++ b/nagios-plugins/check_etc_hosts
@@ -221,9 +221,9 @@ sub check_etc_hosts {
open(HOSTS, "< /etc/hosts") || die "Unable to open /etc/hosts";
while (<HOSTS>) {
chomp;
+ next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored
s/\#.+//; # Skip comments
next if (/^\s*$/); # Skip empty lines
- next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored
print "Testing $_\n" if $debug;
diff --git a/nagios-plugins/check_etc_resolv b/nagios-plugins/check_etc_resolv
index 185cf39..15e7a11 100755
--- a/nagios-plugins/check_etc_resolv
+++ b/nagios-plugins/check_etc_resolv
@@ -100,9 +100,9 @@ sub check_etc_resolv_conf {
local $count = 0;
while (<RESOLV>) {
chomp;
+ next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored
s/\#.+//; # Skip comments
next if (/^\s*$/); # Skip empty lines
- next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored
if (/^nameserver\s+(\S+)/) {
$count++;
local ($error) = test_dns_server($1);