Is there an external command to reload the config

Marc Powell marc at ena.com
Fri Dec 7 01:02:30 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Brian Murphy
> Sent: Thursday, December 06, 2007 5:37 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Is there an external command to reload the
config
> 
> Is there an external command to reload the configuration?
> 
> Or is a /etc/init.d/nagios reload in essence the same as putting
> "RESTART_PROGRAM" in the command file?

They're equivalent. From the web interface 'Restart the Nagios Process'
link --

"This command is used to restart the Nagios process. Executing a restart
command is equivalent to sending the process a HUP signal. All
information will be flushed from memory, the configuration files will be
re-read, and Nagios will start monitoring with the new configuration
information."

>From the init script --

reload|force-reload)
	...
printf "Reloading nagios configuration..."
killproc nagios -HUP

--
Marc

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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