Capture information from the server when it gets an alert?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dpasacritacrown
Posts: 24
Joined: Tue Oct 13, 2015 12:57 pm

Capture information from the server when it gets an alert?

Post 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?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

You're going to want to read up on event handlers. They can be very powerful when implemented properly.
Former Nagios Employee.
me.
dpasacritacrown
Posts: 24
Joined: Tue Oct 13, 2015 12:57 pm

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

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Glad to hear it's working! Are we alright to close up the thread?
Former Nagios employee
Locked