can I exec a sh script when alarm occured?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
faust
Posts: 7
Joined: Tue Oct 11, 2011 3:17 am

can I exec a sh script when alarm occured?

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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
Locked