I am interested to find Historical data of my services with "objects/cpexport".
For the PING service, the API is returning the expected data.
Code: Select all
curl -XGET "https://10.115.xxx.xxx/nagiosxi/api/v1/objects/cpexport?apikey=**************************&pretty=1&host_name=localhost&service_description=PING&track=rta"Code: Select all
curl -XGET "https://10.115.xxx.xxx/nagiosxi/api/v1/objects/cpexport?apikey=**************************&pretty=1&host_name=localhost&service_description=CPUStats&track=rta"
{
"dmax": null,
"dmean": null,
"emax": null,
"emean": null,
"error": "Error reading file '\/usr\/local\/nagios\/share\/perfdata\/localhost\/CPUStats.xml': failed to load external entity \"\/usr\/local\/nagios\/share\/perfdata\/localhost\/CPUStats.xml\"",
"integrity": 0,
"data": {
"historical": [
],
"predicted": [
]
},
"name": "localhost_CPUStats_rta"
}Please suggest.