Rest API Service Status Issue
Posted: Thu Jun 02, 2016 2:33 pm
Hello,
I'm having an issue accessing the Rest API 'GET objects/servicestatus'. When I try the following command:there is an expected delay and then no output to my file. Curiously when getting data from the Rest API for other sources like objects/hoststatus I get the expected JSON output, it just seems that servicestatus is the only one I can't get output from.
My only guess as to why this would be is the fact that the Nagios server I'm getting this data from has close to 10000 service checks so I might be running into some kind of limitation of the API. Hopefully that's not the case though. Anyone out there run into something similar?
Mod Edit: Please wrap long outputs/inputs in
I'm having an issue accessing the Rest API 'GET objects/servicestatus'. When I try the following command:
Code: Select all
curl -XGET "http://*********/nagiosxi/api/v1/objects/servicestatus?apikey=ahussqm24eq5khp5v8fmivbege75g7onnmjhh9jikbn7re9qmnf8lnj35o7isu9j&pretty=1 > nagios_servicestatusMy only guess as to why this would be is the fact that the Nagios server I'm getting this data from has close to 10000 service checks so I might be running into some kind of limitation of the API. Hopefully that's not the case though. Anyone out there run into something similar?
Mod Edit: Please wrap long outputs/inputs in
Code: Select all
or [icode] tags.[/color]