I’d like to query the Icinga2 REST API for all services (or hosts) where the last_check time was more than X minutes ago. Is it possible to use service.last_check or host.last_check in the /v1/objects/services or /v1/objects/hosts endpoint?
I’ve tried some variations of the following and get 404s:
Can you post the output of the service object you’re trying to get without the filter? and also your code for however you’re making the API call (curl/python code/etc)?
I did like that. Is in php.
I can hold all the services with hosts, but just from the current day not for exemple yesterday. Do you know how I could do that?