We were having an issue with the backend API in Nagios. One of own tools was making an API call to get all of the hosts that were being monitored in Nagios. But, July 11th, one of the calls returned a JSON only contained part of the hosts.
The API call we were using is "http://<service name>/nagiosxi/api/v1/objects/hoststatus?apikey=uhtbie8r&pretty=1"
error_log only has the following error all over the place.
Code: Select all
[Mon Jul 11 10:08:04 2016] [error] [client xxx] PHP Notice: Undefined index: pretty in /usr/local/nagiosxi/html/api/includes/utils.inc.php on line 104
ssl_error_log and ssl_access_log are empty.
Also, when this API failed, we were running `service nagios restart`. Not sure if this could cause this issue, because we have more than 10 Nagios servers and this is the only one have this issue. And this issue happened twice in this Nagios server.
Does anyone have any idea about this issue?
Thanks.