diff options
Diffstat (limited to 'nagios-plugins/check_etc_resolv')
| -rwxr-xr-x | nagios-plugins/check_etc_resolv | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/nagios-plugins/check_etc_resolv b/nagios-plugins/check_etc_resolv index 15e7a11..e94b72e 100755 --- a/nagios-plugins/check_etc_resolv +++ b/nagios-plugins/check_etc_resolv @@ -100,7 +100,10 @@ sub check_etc_resolv_conf {      local $count = 0;      while (<RESOLV>) {          chomp; -        next if (/# NAGIOSIGNORE$/); # Skip lines marked to be ignored +        if (/# NAGIOSIGNORE$/) { # Skip lines marked to be ignored +            $count++ if (m/^nameserver\s+/); # Count ignored nameservers +            next; +        }          s/\#.+//;          # Skip comments          next if (/^\s*$/); # Skip empty lines          if (/^nameserver\s+(\S+)/) { | 
