Intermittent issue with NagiosXI API calls
Posted: Thu Oct 31, 2019 1:29 am
* As per company requirement, we need to send NagiosXI events into another centralised tool
* We use custom API adaptor to pull the events from NagiosXI via API call.
Links used custom API adaptor to pull the services and hoststatus calls as below.
https://<nagiosxi-ip>/nagiosxi/api/v1/objects/hoststatus?apikey=<APIKEYforuseraccount>&pretty=1
https://<nagiosxi-ip>/nagiosxi/api/v1/objects/servicestatus?apikey=<APIKEYforuseraccount>&pretty=1
* We extract the all the services and host status from NagiosXI server
* Noticed intermittently, that some of the fields are NOT having values while retrieving the data
Fields that have this issue are
display_name
state_type
* Can you please advise if there is known issue within NagiosXI while retrieving data in prettyJSON format or JSON format ?
* How can we check from NagiosXI logs that a query is made and what information was passed on to API call ?
* Any logs or details needed from NagiosXI to investigate further ?
* We use custom API adaptor to pull the events from NagiosXI via API call.
Links used custom API adaptor to pull the services and hoststatus calls as below.
https://<nagiosxi-ip>/nagiosxi/api/v1/objects/hoststatus?apikey=<APIKEYforuseraccount>&pretty=1
https://<nagiosxi-ip>/nagiosxi/api/v1/objects/servicestatus?apikey=<APIKEYforuseraccount>&pretty=1
* We extract the all the services and host status from NagiosXI server
* Noticed intermittently, that some of the fields are NOT having values while retrieving the data
Fields that have this issue are
display_name
state_type
* Can you please advise if there is known issue within NagiosXI while retrieving data in prettyJSON format or JSON format ?
* How can we check from NagiosXI logs that a query is made and what information was passed on to API call ?
* Any logs or details needed from NagiosXI to investigate further ?