Page 1 of 1

Capture information from the server when it gets an alert?

Posted: Fri Oct 30, 2015 2:25 pm
by dpasacritacrown
Hey, is there any way I can setup Nagios to capture some information from the server when a service or host sends out an alert? An example is this: We're like Nagios to do something similar to capturing the current server-status apache page when it detects a high Response Time for the site. Is there any way this can be done?

Re: Capture information from the server when it gets an aler

Posted: Fri Oct 30, 2015 2:28 pm
by hsmith
You're going to want to read up on event handlers. They can be very powerful when implemented properly.

Re: Capture information from the server when it gets an aler

Posted: Fri Nov 06, 2015 3:39 pm
by dpasacritacrown
Thanks! After reading up on event handlers I managed to get it to run a script I created to pull the server status page every time it got an alert. Thanks for pointing me in the right direction!

Re: Capture information from the server when it gets an aler

Posted: Sun Nov 08, 2015 12:23 am
by tmcdonald
Glad to hear it's working! Are we alright to close up the thread?