search logs for specific string
search logs for specific string
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.
Re: search logs for specific string
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/
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: search logs for specific string
>>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
>>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
Re: search logs for specific string
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.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: search logs for specific string
Fair ... I will review it and get back to you
Re: search logs for specific string
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!