bundles/icinga2: do not send out URGENT for recovery messages
This commit is contained in:
parent
b028c20758
commit
c0c83338ad
1 changed files with 6 additions and 1 deletions
|
@ -113,9 +113,14 @@ def notify_per_ntfy():
|
||||||
else:
|
else:
|
||||||
subject = '[ICINGA] {}'.format(args.host_name)
|
subject = '[ICINGA] {}'.format(args.host_name)
|
||||||
|
|
||||||
|
if args.notification_type.lower() == 'recovery':
|
||||||
|
priority = 'default'
|
||||||
|
else:
|
||||||
|
priority = 'urgent'
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
'Title': subject,
|
'Title': subject,
|
||||||
'Priority': 'urgent',
|
'Priority': priority,
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue