mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
icinga host checkalive
This commit is contained in:
@@ -44,6 +44,11 @@ def buildReponseDict(status, service=None):
|
||||
"timestamp" : status.timestamp,
|
||||
"info" : status.info_text }
|
||||
|
||||
@app.route('/alive')
|
||||
def additionalDates():
|
||||
# simple location for icinga alive checks via HTTP #
|
||||
return ("", 204)
|
||||
|
||||
@app.route('/', methods=["GET", "POST"])
|
||||
def additionalDates():
|
||||
if flask.request.method == "GET":
|
||||
|
||||
Reference in New Issue
Block a user