Page 2 of 2

Re: Need plugin for check on log-file

Posted: Thu Jun 13, 2019 8:13 am
by welbp00
scottwilkerson wrote:Looks like you are missing a - on each argument

Code: Select all

./check_logfiles --logfile=/tmp/testlog --criticalpattern 'FAILURE'
Makes no difference:

-bash-4.2# ./check_logfiles --logfile=/tmp/testlog --warningpattern 'FAILURE'
OK - no errors or warnings|'default_lines'=0 'default_warnings'=0 'default_criticals'=0 'default_unknowns'=0
-bash-4.2# ./check_logfiles --logfile=/tmp/testlog --criticalpattern 'FAILURE'
OK - no errors or warnings|'default_lines'=0 'default_warnings'=0 'default_criticals'=0 'default_unknowns'=0

Re: Need plugin for check on log-file

Posted: Thu Jun 13, 2019 11:55 am
by scottwilkerson
I tried this like you did but could not make it work either.

You will likely want to reach out to the plugin author (we are not the authors of this plugin)