diff --git a/check-plugins/logfile/logfile b/check-plugins/logfile/logfile index 47e216d5..e7962cbc 100755 --- a/check-plugins/logfile/logfile +++ b/check-plugins/logfile/logfile @@ -287,7 +287,7 @@ def main(): crit_matches = [] line_counter = 0 try: - with open(args.FILENAME) as logfile: + with open(args.FILENAME, errors='ignore') as logfile: logfile.seek(offset) for line in logfile: line_counter += 1