: 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
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
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
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