I am trying to setup the check_logfile on one of my servers.
I've configured the latest plugin from https://labs.consol.de/nagios/check_logfiles/ and tested the check_logfile plugin via the command line and received the following.
but after I setup the check_logfiles.cfg file and try to run it from the command line I get the following error.> ./check_logfiles --criticalpattern='ORA' --logfile=/srv/oracle/adm/QSYS566P/logging/MQIST.log
OK - no errors or warnings|'default_lines'=0 'default_warnings'=0 'default_criticals'=0 'default_unknowns'=0
Here what it look like in the .cfg file look like.> ./check_logfiles -f /usr/local/nagios/etc/check_logfiles.cfg
UNKNOWN - syntax error syntax error at /usr/local/nagios/etc/check_logfiles.cfg line 4, near "logfile"
Code: Select all
@searches = (
{
tag => 'ORA'
logfile => '/srv/oracle/adm/QSYS566P/logging/MQIST.log',
criticalpatterns => ['ORA']
}
)
;
Thanks,