Skip to content

Instantly share code, notes, and snippets.

@mcktr
mcktr / acknowledge-host-problem.py
Last active April 2, 2019 16:39
Acknowledge host problem through Icinga 2 API using Python
#!/usr/bin/env python
import requests, json
# change localhost to your Icinga 2 API
url = 'https://localhost:5665/v1/actions/acknowledge-problem?type=Host&host='
header = {
'Accept': 'application/json'
}