Add monitored hosts via API/script?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jred
Posts: 3
Joined: Mon Jun 04, 2012 4:21 am

Add monitored hosts via API/script?

Post by jred »

Greetings,

sales team suggested to obtain technical details from here.

I know there is bulk import, but I would like for example obtain a list of hosts (and perhaps some other data) from RedHat satellite server and then import them to Nagios automatically. So whenever a host is added, it would get monitored automatically.

I'd like to know whether it is possible to do this with Nagios XI, and how to do it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Add monitored hosts via API/script?

Post by scottwilkerson »

The only way to do this in XI would be to create the proper cfg files for the host/services and place them in the /usr/local/nagios/etc/static directory and then restart the nagios process.

These hosts will be seen and monitored in XI, but the configuration will not be managed by the CCM.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jred
Posts: 3
Joined: Mon Jun 04, 2012 4:21 am

Re: Add monitored hosts via API/script?

Post by jred »

Thanks for the info.

And probably it's not (at least officially) supported to do this via NConf or similar third party addons?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Add monitored hosts via API/script?

Post by mguthrie »

The attached doc is a preview of a new procedure that will be available with our next release (2011R3.2). Currently this method can be used to automatically add new hosts to XI and allow for use with the Core Config Manager. Once 3.2 is released, it will also support the described methods for removing hosts.
You do not have the required permissions to view the files attached to this post.
jred
Posts: 3
Joined: Mon Jun 04, 2012 4:21 am

Re: Add monitored hosts via API/script?

Post by jred »

ACK, thanks!
Locked