API not returning pretty JSON
Posted: Wed Sep 30, 2020 9:39 am
I am attempting to pull in the hoststatus via API and get hostnames of servers where the active_checks_enabled=0.
I used to be able to run the following:
curl -XGET -k -s https://SERVER/nagiosxi/api/v1/objects/hoststatus?apikey=KEY&active_checks_enabled=0&pretty=1 | grep \"host_name\":
Now, I just get an unformed response for the curl command. Did something change in how Nagios responds to a curl?
Running RHEL 7.8 VM's and Nagios XI 5.7.3
I used to be able to run the following:
curl -XGET -k -s https://SERVER/nagiosxi/api/v1/objects/hoststatus?apikey=KEY&active_checks_enabled=0&pretty=1 | grep \"host_name\":
Now, I just get an unformed response for the curl command. Did something change in how Nagios responds to a curl?
Running RHEL 7.8 VM's and Nagios XI 5.7.3