Re: [Nagios-users] Running a command when Nagios config changes

2010-07-15 Thread Ryan C Ash
: Wednesday, July 14, 2010 2:20 PM To: Nagios Users List Subject: [Nagios-users] Running a command when Nagios config changes 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

Re: [Nagios-users] Running a command when Nagios config changes

2010-07-15 Thread Paul M. Dubuc
Ryan C Ash wrote: Paul M. Dubuc wrote 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

Re: [Nagios-users] Running a command when Nagios config changes

2010-07-15 Thread Eric Cables
Why not use SEC (http://simple-evcorr.sourceforge.net/), or something similar, to watch the nagios.log file and match on a regexp pattern. When that pattern is seen, run the script of your choice. I assume that anytime the Nagios process is restarted a log will be generated there. -- Eric

[Nagios-users] Running a command when Nagios config changes

2010-07-14 Thread Paul M. Dubuc
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