diff options
Diffstat (limited to 'nagios-plugins/check_etc_resolv')
-rwxr-xr-x | nagios-plugins/check_etc_resolv | 2 |
1 files changed, 1 insertions, 1 deletions
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); |