Automatic Provisioning
Posted: Wed Oct 19, 2011 6:32 am
Hi,
We are trying to automate the NagiosXI provisioning from our information system. Adding hosts and services works perfectly. (If someone need to know how, just copy your new configuration files into /usr/local/nagios/etc/import and then run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh)
Now the question that comes up is how the automate the deletion of hosts or services ? Do you have a script that could do that ?
If no, the solution would be to update the configuration file to set REGISTER to 0. But then we will need to manually delete them from the web interface and as human action often means mistake or forgottenness, i would prefer something more efficient.
Thanks.
We are trying to automate the NagiosXI provisioning from our information system. Adding hosts and services works perfectly. (If someone need to know how, just copy your new configuration files into /usr/local/nagios/etc/import and then run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh)
Now the question that comes up is how the automate the deletion of hosts or services ? Do you have a script that could do that ?
If no, the solution would be to update the configuration file to set REGISTER to 0. But then we will need to manually delete them from the web interface and as human action often means mistake or forgottenness, i would prefer something more efficient.
Thanks.