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.
Automatic Provisioning
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Automatic Provisioning
Last edited by srrhd on Thu Oct 20, 2011 6:27 am, edited 1 time in total.
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Automatic Provisioning
srrhd,
Have you considered using the static directory, and just bypass the frontend NagiosQL all together. For what you're doing, I think NagiosQL will just get in your way.
If you used the static directory, you could just generate the config file, then place it in the static directory and added or removed at will. Check out this doc to see if its what you were thinking:
http://assets.nagios.com/downloads/nagi ... _Files.pdf
Have you considered using the static directory, and just bypass the frontend NagiosQL all together. For what you're doing, I think NagiosQL will just get in your way.
If you used the static directory, you could just generate the config file, then place it in the static directory and added or removed at will. Check out this doc to see if its what you were thinking:
http://assets.nagios.com/downloads/nagi ... _Files.pdf
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 131
- Joined: Thu May 19, 2011 6:15 am
Re: Automatic Provisioning
Hi Nicholas,
Thanks for the tip, it's just what we needed !
Thanks for the tip, it's just what we needed !
Configuration:
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
Nagios XI 2014R2.5
manually upgraded on 64bits CentOS 6
with nothing extra, no gnome, no proxy, no SSL
Add-ons: Hypermap, Minemap, Ping Action, Traceroute Action, Network Replay, graph Explorer, Latest Alert
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am