From e4cf6cbf6f13020024ab9e4c8fe4bd45c7300f86 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 31 Jan 2012 19:26:34 +0000 Subject: Typo. --- nagios-plugins/check_etc_hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nagios-plugins/check_etc_hosts') 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 () { 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; -- cgit v1.2.3