Monitor Apache logs
Posted: Wed Apr 09, 2014 4:29 pm
I am trying to figure out how I can get or what I need to do in order to have Nagios monitor my Apache logs (access logs primarily). I just encountered an issue where it appears log rotate had hung up and prevented anything from writing to my websites access logs. The server, SUSE (SLES) 11sp3, was rebooted after having some patches and an updated kernel. Once the system was rebooted data was writing to the access logs again. I would like to use Nagios to monitor this log file so that if nothing is writing to it an alert is generated. It sounds easy enough but not sure how to go about setting up the monitoring. I would be using Nagios XI.
If there is some other means or better method to make sure that my Apache websites are writing logs that would work as well. We use these access logs to send to WebTrends for analysis. 3 weeks worth of data is a pretty big deal so I really need to prevent this from happening in the future. I am working on root cause but having a Nagios "safety net" in place would allow me to sleep better at night.
If there is some other means or better method to make sure that my Apache websites are writing logs that would work as well. We use these access logs to send to WebTrends for analysis. 3 weeks worth of data is a pretty big deal so I really need to prevent this from happening in the future. I am working on root cause but having a Nagios "safety net" in place would allow me to sleep better at night.