Nagios XI API current_state not equal to 0
Posted: Fri Feb 28, 2020 2:14 am
Hi,
I found that it is possible to filter ther services and hosts in the API call hoststatus and servicestatus by current_state = <<state number>>
is it possible to filter by a negation? I would need to retrieve all services or hosts where the status is different from OK.
if that is not possible where are all the status codes documented for reference?
regards
Luca
I found that it is possible to filter ther services and hosts in the API call hoststatus and servicestatus by current_state = <<state number>>
is it possible to filter by a negation? I would need to retrieve all services or hosts where the status is different from OK.
if that is not possible where are all the status codes documented for reference?
regards
Luca