Use your automation to create a new text config file
Copy those configs to the /usr/local/nagios/etc/import directory
Run: /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
At the moment we don't have a way to do this through the web api.
Thanks for your reply, mguthrie. That seems to work, but I noticed that reconfigure_nagios.sh actually restarts the server. As this solution will potentially be monitoring thousands of servers, we would prefer to update the configuration without taking down Nagios. Is there a way to update the configuration on the fly (whether by updating a database, or sending a SIGHUP signal)?
You can't apply any configuration changes in Nagios without restarting application. This is the normal process to make a change to the monitoring configuration.
(I'm going to move this thread to the Nagios xi General Forum, it will get more viewing traffic).
I need something like the question dhruvaps posted. I use Nagios to monitor the network, but i need to take some action when the network has a fault.
For example: The Nagios sends data to the database when the network status changes. Or The nagios activates another system with wsdl.
Is this possible?'
Thanks
Last edited by gabriel.giordano on Thu Aug 25, 2011 9:19 am, edited 1 time in total.
Use your automation to create a new text config file
Copy those configs to the /usr/local/nagios/etc/import directory
Run: /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
At the moment we don't have a way to do this through the web api.