Page 1 of 1

Use Nagios API to query the components under a BPI group

Posted: Wed Jan 05, 2022 7:48 am
by ccnadmin
Understand that the a API for querying the BPI information
nagiosxi/api/v1/objects/bpi?
The result is a list of the BPI Groups, Host Groups and Service Groups, however there is no information of which Host Groups and Service Groups are under which BPI Group.
Is there a way or other API to get these information ?

Re: Use Nagios API to query the components under a BPI group

Posted: Wed Jan 05, 2022 1:08 pm
by pbroste
Hello @ccnadmin

Thanks for reaching out and you are correct that the BPI data can be exported via the api with:

curl -XGET "http://nagiosxi_ip/nagiosxi/api/v1/objects/bpi?apikey=<apikey>&pretty=1"

However, the option to pull data with Host or Sevice Groups within BPI is not available. I see that this feature has been requested and will add a bump to it.

Thanks,
Perry

Re: Use Nagios API to query the components under a BPI group

Posted: Thu Jan 06, 2022 7:50 pm
by ccnadmin
Hi Perry,

Thank you for the fast response.
Hopefully the request will be answered soon as this will be a great help for company's Management to view the status of their monitored systems without accessing to the Nagios XI system.

Re: Use Nagios API to query the components under a BPI group

Posted: Fri Jan 07, 2022 12:13 pm
by pbroste
Hello @ccnadmin

We have put in a feature request for this on your behalf, and here is the Nagios Change Log for your reference.

Thanks,
Perry