aboutsummaryrefslogtreecommitdiffstats
path: root/nagios-plugins/check_etc_hosts
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-plugins/check_etc_hosts')
-rwxr-xr-xnagios-plugins/check_etc_hosts2
1 files changed, 1 insertions, 1 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;