I'm attempting to export the last month of data from a service, but I've run into two API elements that function inconsistently:
- The step parameter does not seem to work at longer lengths of time (such as 1 month), but I can't find anything in the documentation about this. Instead, it seems to force the step to 7200, and can't be overridden, as far as I can find. (If I have to iterate through each day, I can, but it would be nice to know how it's supposed to work.)
- The outputtype parameter seems to be partially ignored, and only JSON-formatted output is returned, even though the headers still tag the output as XML.
Code: Select all
https://NAGIOS/Nagiosxi/api/v1/objects/rrdexport?apikey=KEY&host_name=HOST&service_description=SERVICE&outputtype=xml&step=600&start=1532686900
Nagios version: 5.5.1
OS: CentOS 6.6