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....
nagios issue on log monitoring...
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagios issue on log monitoring...
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...
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'
/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...
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...
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?
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...
Please share your service configuration with us, for this check, Configure > CCM > Services > Click the diskette icon next to the correct service name.