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?
Add monitored hosts via API/script?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Add monitored hosts via API/script?
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.
These hosts will be seen and monitored in XI, but the configuration will not be managed by the CCM.
Re: Add monitored hosts via API/script?
Thanks for the info.
And probably it's not (at least officially) supported to do this via NConf or similar third party addons?
And probably it's not (at least officially) supported to do this via NConf or similar third party addons?
Re: Add monitored hosts via API/script?
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.
Re: Add monitored hosts via API/script?
ACK, thanks!