search logs for specific string

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

search logs for specific string

Post by fsodah »

Is it possible to run tail -f on a remote linux to search for specific error string and reported back to nagios, such as if search my logs for the last 24hours to look for specific errors or warning in mysql, Oracle, Apache... etc.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: search logs for specific string

Post by mbellerue »

For this it might be good to see if there are existing plugins that suit your needs. This one looks pretty promising, as it looks like you can specify a log file, a message, and a date/time range that you are interested in.
https://exchange.nagios.org/directory/P ... gs/details

Alternately, Nagios Log Server has the ability to receive the logs from various systems, and you can create alerts based on those logs.
https://www.nagios.com/products/nagios-log-server/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: search logs for specific string

Post by fsodah »

>>Alternately, Nagios Log Server has the ability to receive the logs from various systems, and you can create alerts based on those logs.
>>https://www.nagios.com/products/nagios-log-server/

I will buy this one next year....


>>>if there are existing plugins that suit your needs
I am still not able to figure out how i can use these plugins... need step by step implementation
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: search logs for specific string

Post by mbellerue »

Here is a guide on installing plugins in Nagios XI.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

This should have everything you need to go from downloading the plugin to having a fully functional service check.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: search logs for specific string

Post by fsodah »

Fair ... I will review it and get back to you
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: search logs for specific string

Post by mbellerue »

Okay, we will leave this thread open and wait to hear back.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked