Check_logfile help
Posted: Wed Jan 30, 2019 1:22 pm
Hello,
I've installed and implement the check_logfile plugin, but I am having issue with the .cfg file. The logfile I want to monitor is MQIST.log and I would like it to alert when this error is generated in the log file "[ERR-04704] No inspection step found"
Here is my current .cfg file:
Currently if I leave it configured this way I get multiple alerts from whenever the word error or anything in that string is generated in the log file. Also if if I try to put the [] around ERR-04704 I get an error. Could someone help me so that it alerts on the correct message.
Thanks
Matt
I've installed and implement the check_logfile plugin, but I am having issue with the .cfg file. The logfile I want to monitor is MQIST.log and I would like it to alert when this error is generated in the log file "[ERR-04704] No inspection step found"
Here is my current .cfg file:
Code: Select all
@searches = (
{
tag => 'ERR-04704',
logfile => '/srv/oracle/adm/QSYS566P/logging/MQIST.log',
criticalpatterns => [ 'ERR-04704 No inspection step found']
},
);
Thanks
Matt