Log file monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Log file monitoring

Post by gm_rajkumar »

Hi,

I have a log server which stores application logs very frequently. If any errors in my application, it will be updated with time stamps.
Sample:

[Critical] Unable to fetch the info
[Warning] Overload
[Ok] Restored

I wanted to monitor this log file and verify this message very frequently. Do we have any plugin to monitor this?
-Its a Single file and it will be overwrite. we should find the last string and it can be monitored via Nagios. Please check and confirm for this suitable plugin..


Thanks in Advance..
Regards
Raj.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Log file monitoring

Post by abrist »

There are a number of check_log plugins on the exchange. Most allow you to check for a string and alert based on what it finds. See the following links:
http://exchange.nagios.org/index.php?op ... =check_log
http://exchange.nagios.org/index.php?op ... check_logs
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked