Use Nagios API to query the components under a BPI group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ccnadmin
Posts: 2
Joined: Tue May 26, 2020 3:29 am

Use Nagios API to query the components under a BPI group

Post 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 ?
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

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

Post 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
ccnadmin
Posts: 2
Joined: Tue May 26, 2020 3:29 am

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

Post 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.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

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

Post 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
Locked