Getting issue with check_logfile plugin
Posted: Wed Feb 07, 2018 1:28 am
I am using the below configuration file in order to generate the alert for the mentioned pattern but it is not giving the alert as mentioned threshold count.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++===
++++++++++
check interval 3 minutes
++++++++++++++++++++++++++++++++++++++++++++
let me know if i am missing anything in configuration file.let me know if you required logfile to verify the same.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++===
Code: Select all
[ericsson@euc-3-3-uc-00-0 conf]$ cat Error_code_404.conf
$seekfilesdir = '/home/ericsson/logfile_basedir/tmp';
$protocolsdir = '/home/ericsson/logfile_basedir/tmp';
$scriptpath = '/home/ericsson/bin';
#$MACROS = { CL_DISK01 => "/dev/dsk/c0d1", CL_DISK02 => "/dev/dsk/c0d2" };
@searches = (
{
tag => 'Error_code_404',
criticalpatterns => ['HTTP/1.1" 404'] ,
logfile =>'/opt/universalcache/logs/access.log',
#options => 'sticky=1800,noprotocol,report=long,allyoucaneat',
rotation => 'REDHAT',
#warningthreshold => 100,
criticalthreshold => 3500
}
);check interval 3 minutes
Code: Select all
-C "sudo /home/ericsson/bin/check_logfiles -f /home/ericsson/logfile_basedir/conf/Error_code_404.conf"
-t 60 -o StrictHostKeyChecking=no -l ericsson -Elet me know if i am missing anything in configuration file.let me know if you required logfile to verify the same.