bundles/icinga2: do not send out URGENT for recovery messages

This commit is contained in:
Franzi 2024-04-02 15:06:52 +02:00
parent b028c20758
commit c0c83338ad
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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: