How to find a host in downtime in icinga2 using api or from mysql database. I have tried using below api, but its not displaying there.

curl -H 'Cache-Control: no-cache' -k  -u root:icinga 'https://localhost:5665/v1/objects/hosts?host=hostanme.com'

I'm using downtime_depth attribute, although I'm not 100% sure about it.

curl -k -s
    'https://localhost:5665/v1/objects/hosts?filter=host.downtime_depth!=0' | \
python -mjson.tool`

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.