Skip to content

Instantly share code, notes, and snippets.

@betagan
Created July 3, 2015 11:11
Show Gist options
  • Save betagan/df30f9010174333863da to your computer and use it in GitHub Desktop.
Save betagan/df30f9010174333863da to your computer and use it in GitHub Desktop.
output of reproduction script error check_logfiles
$ ./test.sh
>>> cleaning up, removing my.log and my.log.gz, creating empty my.log and initialize run check_logfiles
OK - no errors or warnings|default_lines=1 default_warnings=0 default_criticals=0 default_unknowns=0
>>> append an ERROR line
>>> running check_logfiles for the first time (should and does return CRITICAL)
CRITICAL - (1 errors in check_logfiles.protocol-2015-07-03-13-09-48) - ERROR dummy |default_lines=1 default_warnings=0 default_criticals=1 default_unknowns=0
>>> performing log rotation and put one OK line in the new logfile
>>> running check_logfiles for the second time (should and does return OK)
OK - no errors or warnings|default_lines=1 default_warnings=0 default_criticals=0 default_unknowns=0
>>> append a second OK line to the logfile
>>> running check_logfiles for the third time (should return OK BUT DOES RETURN CRITICAL INSTEAD!!
CRITICAL - (1 errors in check_logfiles.protocol-2015-07-03-13-09-50) - ERROR dummy |default_lines=4 default_warnings=0 default_criticals=1 default_unknowns=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment