Skip to content

Instantly share code, notes, and snippets.

@PeteLawrence
Last active August 3, 2018 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeteLawrence/da19eaa0077cf5f184ce8a022cc0c6f7 to your computer and use it in GitHub Desktop.
Save PeteLawrence/da19eaa0077cf5f184ce8a022cc0c6f7 to your computer and use it in GitHub Desktop.
Icinga2 API Examples
# List all service problems that haven't been acknowledged
curl -k -H 'X-HTTP-Method-Override: GET' -u username:password -X POST https://127.0.0.1:5665/v1/objects/services -d '{ "filter": "service.state !=0 && service.acknowledgement != 0" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment