nagios issue on log monitoring...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tilakraj
Posts: 4
Joined: Tue Jan 29, 2013 1:49 am

nagios issue on log monitoring...

Post 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....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios issue on log monitoring...

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tilakraj
Posts: 4
Joined: Tue Jan 29, 2013 1:49 am

Re: nagios issue on log monitoring...

Post 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'
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios issue on log monitoring...

Post 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.
tilakraj
Posts: 4
Joined: Tue Jan 29, 2013 1:49 am

Re: nagios issue on log monitoring...

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios issue on log monitoring...

Post 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.
Locked