Running a command when Nagios config changes

Paul M. Dubuc work at paul.dubuc.org
Wed Jul 14 21:20:08 CEST 2010


I would like to have some way of running a command only when Nagios is 
started, or is restarted from the "Process Commands" menu, or any time Nagios 
reloads its configuration files.  Is there a way to do this?  I thought about 
writing it as a localhost service plugin that simply does nothing if

$LASTSERVICECHECK$ > $PROCESSSTARTTIME$

but that doesn't seem optimal.  It this the best solution?  It would be nice 
if I could write it as an event handler, but events are only for host or 
service state changes.  This is a Nagios process state change.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list