API call returns recordcount = 0
Posted: Tue Apr 25, 2017 6:13 am
Hi guys,
we're having a strange issue while calling /nagiosxi/api/v1/objects/hostgroup
When we're calling via curl, it returns the objects without an issue, but when calling it within a python script (w/ requests), it returns recordcount = 0 (when we have over 25).
Furthermore, when we remove objects.cache and objects.precache (which are both around 9 mb) , it works more than usual, but still returns recordcount = 0 sometimes.
We tried increasing php values (like memory_limit) to no avail.
Do you have any idea why this is happening? It is extremely strange that nagios returns recordcount = 0 for a call from a script, and recordcount = 25 when calling via curl.
Another issue we have is that /nagiosxi/api/v1/objects/service returns inconsistent results almost every run. (hosts missing, checks missing, etc)
we're having a strange issue while calling /nagiosxi/api/v1/objects/hostgroup
When we're calling via curl, it returns the objects without an issue, but when calling it within a python script (w/ requests), it returns recordcount = 0 (when we have over 25).
Furthermore, when we remove objects.cache and objects.precache (which are both around 9 mb) , it works more than usual, but still returns recordcount = 0 sometimes.
We tried increasing php values (like memory_limit) to no avail.
Do you have any idea why this is happening? It is extremely strange that nagios returns recordcount = 0 for a call from a script, and recordcount = 25 when calling via curl.
Another issue we have is that /nagiosxi/api/v1/objects/service returns inconsistent results almost every run. (hosts missing, checks missing, etc)