Nagios plugin to regularly reload Nagios
David Knecht
david.knecht at anyweb.ch
Wed Apr 2 15:26:56 CEST 2008
Hi all
I am trying to regularly reload Nagios to activate automatically
generated Nagios configuration files.
A shell script such as the one on
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=9
might be executed as a cron job to accomplish this.
However, I'd like to run this script as a normal Nagios plugin to keep
all the tasks configured at the same place. When Nagios executes this
plugin, Nagios does get restarted but the plugin does not get
rescheduled after "normal_check_interval" minutes. It gets rescheduled
after ~"max_service_check_spread"/2 minutes instead...
Only the "Nagios reload" plugin is scheduled this way. Any other plugins
are scheduled correctly (that is, they retain scheduling information
since "use_retained_scheduling_info" is set to "1")
I have run the tests on Nagios 3.0.1, 3.0, 3.0rc3 and 2.11.
Anyway: How can I correctly reload Nagios using a Nagios plugin? Is
there any method besides the above to regularly reload Nagios
non-interactively? Is there possibly any other way to regularly activate
Nagios configuration files non-interactively?
Thanks, David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3303 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080402/8999f9c2/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
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