Hi,
Is there any plugin/command for searching a logfile for a specific pattern?
I have a log file on a server, I would like to monitor this log file if there are any lines in this file containing a string like "error" .
Thank you.
Check file content
Re: Check file content
Take a look and see if check_logfiles will work for you - https://labs.consol.de/nagios/check_logfiles/
Otherwise, another product we have is Nagios Log Server, which is meant to store data and do just what you're looking for.
Otherwise, another product we have is Nagios Log Server, which is meant to store data and do just what you're looking for.
Former Nagios Employee
-
kaiserclaw
- Posts: 15
- Joined: Thu Dec 10, 2015 5:30 am
Re: Check file content
Thank you.
Isn't check_logfile a local check on server? What about another host/client?
Isn't check_logfile a local check on server? What about another host/client?
Re: Check file content
You can run plugins on remote machines by using NRPE:kaiserclaw wrote:Isn't check_logfile a local check on server? What about another host/client?
https://support.nagios.com/kb/article.php?id=515
Former Nagios employee