Page 1 of 1

REST API to add/remove a host ?

Posted: Wed Nov 30, 2016 8:24 am
by nagmoto
Hi
I am Nagios Core 4 user. I like to understand if Nagios XI has ability to create and delete a host from external REST API call.
ie, when a openstack instance got spun up, it can trigger a REST call to Nagios XI server to add it,
once instance got deleted the Nagios server remove it from another REST call.

Re: REST API to add/remove a host ?

Posted: Wed Nov 30, 2016 10:33 am
by avandemore
Core doesn't support this functionality however there may be addon's which fulfill your needs:

https://exchange.nagios.org/directory/Addons/APIs

XI has a API capable of this builtin: XI > Help > Config Reference for details.

Re: REST API to add/remove a host ?

Posted: Wed Nov 30, 2016 6:14 pm
by nagmoto
Thanks for the answer, pls close this thread.

Re: REST API to add/remove a host ?

Posted: Thu Dec 01, 2016 10:14 am
by avandemore
Glad to help, please open a new thread or ticket if you have further issues.