Page 1 of 1

nagios issue on log monitoring...

Posted: Thu Dec 26, 2013 7:16 am
by tilakraj
Hi,

We are using nagios for log monitoring using check_log plugin, but i am having an issue with the plugin right now, this plugin it checks the log each 5 minutes based on the word mentioned in the config file but it prints the same log message each and every 5 minute check, it doesn't change the state and log message it doesn't check the other lines, it retains the same log message and it sending the same log message to mail each every 5 mins.


How to solve this issue....

Re: nagios issue on log monitoring...

Posted: Thu Dec 26, 2013 9:13 am
by scottwilkerson
Can you give is the details of the command you have specified for check_log and the arguments you are sending from the service definition.

Re: nagios issue on log monitoring...

Posted: Thu Dec 26, 2013 9:51 am
by tilakraj
This is the command i configured in nagios configuration file for check logs.

/usr/local/nagios/libexec/check_log -F /srv/application/standalone/log/server.log -O /tmp/application_log -q 'Exception'

Re: nagios issue on log monitoring...

Posted: Thu Dec 26, 2013 10:36 am
by slansing
Does the plugin show you a timestamp? Is that timestamp changing? Depending on what string you are looking for, it is entirely possible that you are actually getting the same result in the logs.

Re: nagios issue on log monitoring...

Posted: Fri Dec 27, 2013 12:47 am
by tilakraj
The time stamp also not changing, this plugin it repeatedly sending same mails with same time stamp.

What i have to do in this case?

Re: nagios issue on log monitoring...

Posted: Fri Dec 27, 2013 12:50 pm
by slansing
Please share your service configuration with us, for this check, Configure > CCM > Services > Click the diskette icon next to the correct service name.