diff --git a/nagios/check_apache_access_log.pl b/nagios/check_apache_access_log.pl index 8dbf74f..f4c7ac6 100755 --- a/nagios/check_apache_access_log.pl +++ b/nagios/check_apache_access_log.pl @@ -79,7 +79,7 @@ sub print_from_offset { while () { if ($_ =~ /^([[:xdigit:].:]+) (.+) (.+) (\[[[:alnum:]\/:]+ \+[[:digit:]]{4}\]) (".*") ([[:digit:]]{3}) ([[:digit:]]+) "(.*)" "(.*)"$/) { #We ignore some IP address - next if ($1 eq '::1' or $1 eq '127.0.0.1' or $1 eq '2a01:e35:2ef3:b360::abac:22' or $1 eq '192.168.0.34'); + next if ($1 eq '::1' or $1 eq '127.0.0.1'); if ($6 >= 200 && $6 < 300) { ++$outputCpt{'2XX'};