LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

Post by ericssonvietnam »

I am using check logfile check in order to generate alert for the critical pattern form the log file in past few days i have received the alert in Nagios with old time stamp.
Can you let me know what should i check attaching the alert generated on the Nagios.

Below is the configuration to generate critical pattern :

SSH:nagios@HNUSS2# cat AuthCri.conf
$seekfilesdir = '/export/home/nagios/logfile_basedir/tmp';
$protocolsdir = '/export/home/nagios/logfile_basedir/tmp';
$scriptpath = '/export/home/nagios/bin';
#$MACROS = { CL_DISK01 => "/dev/dsk/c0d1", CL_DISK02 => "/dev/dsk/c0d2" };

@searches = (
{
tag => 'Authcri',
warningpatterns => ['auth.crit] rebooted by'] ,
#okpatterns => ['ALARM_CLR'] ,
options => 'sticky=1800,noprotocol,report=long,allyoucaneat',
logfile => '/var/log/authlog'

}
);
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

Post by ssax »

That is likely because of your sticky=1800 option:

Code: Select all

--sticky[=<lifetime>] Errors are propagated through successive runs.
Try removing that and see if it resolves the issue.


Thank you
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Re: LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

Post by ericssonvietnam »

ssax wrote:That is likely because of your sticky=1800 option:

Code: Select all

--sticky[=<lifetime>] Errors are propagated through successive runs.
Try removing that and see if it resolves the issue.


Thank you
Should i comment out whole options line in the configuration.
As shown below :
#options => 'sticky=1800,noprotocol,report=long,allyoucaneat',
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

Post by tacolover101 »

it's hard to say if a comment will do, so test by removing it fully. (it should though.)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: LOG CHECK SENDING ALERTS OF OLD TIMESTAMP

Post by ssax »

That should be fine, give it a try and let us know if that resolves your issue.

Thank you
Locked