Need plugin for check on log-file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
welbp00
Posts: 50
Joined: Fri Mar 08, 2019 5:48 am

Re: Need plugin for check on log-file

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need plugin for check on log-file

Post 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)
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked