Logfile Alert When String Unavailable

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
johnslippers
Posts: 1
Joined: Wed May 11, 2016 8:21 am

Logfile Alert When String Unavailable

Post by johnslippers »

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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logfile Alert When String Unavailable

Post by hsmith »

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Logfile Alert When String Unavailable

Post by Box293 »

Nagios Log Server is the best option.

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