Hello Team
We would like to gather all the critical status services from about 3700 service that we are currently monitoring over 400 hosts
Can you advise what filters we can add to the REST API call to the nagiosxi server so that we don't get all the running 3700 servicestatus.
http://X.X.X.X/nagiosxi/api/v1/objects/ ... x&pretty=1"
Thanks,
Insurity
NagiosXI API servicestatus gather only Critical Status
Re: NagiosXI API servicestatus gather only Critical Status
You could add "¤t_state=2" at the end of the URL, e.g.
This should display only the services that are in Critical state.
Code: Select all
http://x.x.x.x/nagiosxi/api/v1/objects/servicestatus?apikey=xxxx&pretty=1¤t_state=2Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI API servicestatus gather only Critical Status
Thanks this exactly what we were looking for
Case will be closed
Insurity
Case will be closed
Insurity