I am looking for a plugin I can use to monitor a custom logfile for a specific string. Sounds easy enough and I know there are a few well known plugins which can do this but the complicated part is that I need Nagios to alert me every time it does NOT find that specific string for a certain amount of minutes. Lets say if it can't find that string for 10 minutes, give a warning. If it can't find that string for 15 minutes, give a critical message.
I played around with the "check_last_logs.pl" and "check_timed_logs.pl" scripts but it gave me Piece.pm errors and am looking for something a little easier to configure.
Any help will be greatly appreciated.
Logfile Alert When String Unavailable
Re: Logfile Alert When String Unavailable
Honestly, you should check out Nagios Log Server. It does exactly this. The free version can handle 500Mb / day of logs. Otherwise, I assume you're going to have to write your own plugin/wrapper script for XI.
Former Nagios Employee.
me.
me.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Logfile Alert When String Unavailable
Nagios Log Server is the best option.
However if you can't use that, try:
https://labs.consol.de/nagios/check_logfiles/index.html
However if you can't use that, try:
https://labs.consol.de/nagios/check_logfiles/index.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.