archieve.json Query not returning correct output
Posted: Wed Dec 11, 2019 3:27 am
Hi Team,
I am Running the archieve.json API to get the alert list for a specific hostgroup but its offering me all the alerts for that time period specified .
I want only alertlist for the hosts of that particular hostgroup .
API i am using :
http://<mynagios server ip>/nagios/cgi-bin/archivejson.cgi?query=alertlist&hostgroup=AMS&servicestates=critical&starttime=1575942375&endtime= 1576028775
I am running the query wrong ?
I am Running the archieve.json API to get the alert list for a specific hostgroup but its offering me all the alerts for that time period specified .
I want only alertlist for the hosts of that particular hostgroup .
API i am using :
http://<mynagios server ip>/nagios/cgi-bin/archivejson.cgi?query=alertlist&hostgroup=AMS&servicestates=critical&starttime=1575942375&endtime= 1576028775
I am running the query wrong ?