Page 1 of 1

can I exec a sh script when alarm occured?

Posted: Tue Oct 11, 2011 8:13 pm
by faust
hi , experts,

I'm a new user of nagios, can I exec a sh script when alarm occured? I wrote the shell myself. how to do ? my negios is core

sorry I posted this in xi, but i find my negios is core.

thx
faust

Re: can I exec a sh script when alarm occured?

Posted: Wed Oct 12, 2011 1:27 pm
by mguthrie
Yes, what you're looking to do is called an event handler. Take a look at the following doc, it should explain better than I can what you're looking for.
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html