Adding host & services while Nagios daemon is running

Sergio Guzman sergio at gridshield.net
Sat Apr 21 09:27:31 CEST 2007


On Apr 20, 2007, at 11:50 AM, Sebastian Ganame wrote:

> So, what I would need is to add new hosts (and maybe new services)  
> to be monitored while Nagios is running.

What about using the HUP signal to nagios?

Modify the configuration, check for errors using nagios -s nagios.cfg.
then
kill -HUP `cat /your/nagios.pid`


That will reload the configuration, adding or removing services or  
hosts to the current nagios instance.

-- 
Sergio Guzmán
San José, Costa Rica
Tel: (506) 258-5757
http://www.gridshield.net/
Gridshield: Protección y Monitoreo de Redes


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070421/f406bfa3/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list