bundles/icinga2: add notification support via ntfy

This commit is contained in:
Franzi 2023-04-09 17:32:36 +02:00
parent 25aabad865
commit b3e490720e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 81 additions and 36 deletions

View file

@ -37,3 +37,11 @@ def join_faults(faults, by=' '):
lambda o: by.join([i.value for i in o]),
o=result,
)
def dict_as_json(json):
return Fault(
'dict_as_json',
lambda o: metadata_to_json(o) + '\n',
o=json
)