Check_logfiles and criticalthreshold parameter
Posted: Fri Nov 13, 2015 11:29 am
Hello,
I use check_logfiles with succes two trap CRITICAL message in my log file. Now i want to insert a criticalthreshold in my config file, but it doesn't look to work fine. CRITICAL appears at 1 criticalpatterns reached : i want 5 patterns reached.
here his my config file without criticalthreshold :
@searches = (
{
tag => 'file_linux_stat',
logfile => '$MY_LOGDIR$/$MY_LOGFILE$',
criticalpatterns => ['file different!!'],
okpatterns => 'files ok!',
options => 'noprotocol,noperfdata,report=long,sticky'
}
)
I have pre and post script also
I want a criticalthreshold=5 ant retention of CRITICAL status until "files ok!" appears in log file.
Thanks a lot
Bye
I use check_logfiles with succes two trap CRITICAL message in my log file. Now i want to insert a criticalthreshold in my config file, but it doesn't look to work fine. CRITICAL appears at 1 criticalpatterns reached : i want 5 patterns reached.
here his my config file without criticalthreshold :
@searches = (
{
tag => 'file_linux_stat',
logfile => '$MY_LOGDIR$/$MY_LOGFILE$',
criticalpatterns => ['file different!!'],
okpatterns => 'files ok!',
options => 'noprotocol,noperfdata,report=long,sticky'
}
)
I have pre and post script also
I want a criticalthreshold=5 ant retention of CRITICAL status until "files ok!" appears in log file.
Thanks a lot
Bye