Automatic Provisioning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Automatic Provisioning

Post by srrhd »

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.
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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Automatic Provisioning

Post by nscott »

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
Nicholas Scott
Former Nagios employee
User avatar
srrhd
Posts: 131
Joined: Thu May 19, 2011 6:15 am

Re: Automatic Provisioning

Post by srrhd »

Hi Nicholas,

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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Automatic Provisioning

Post by nscott »

Awesome, glad that works for you!
Nicholas Scott
Former Nagios employee
Locked