bundles/icinga2: add notification support via ntfy
This commit is contained in:
parent
25aabad865
commit
b3e490720e
5 changed files with 81 additions and 36 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue