icinga: fix logic error, do not send sms for service problems

This commit is contained in:
Franzi 2024-09-03 21:09:17 +02:00
parent bfbbffe22c
commit 319dc8ad21
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -199,7 +199,7 @@ if __name__ == '__main__':
notify_per_mail()
if args.sms:
if args.service_name:
if not args.service_name:
notify_per_sms()
if CONFIG['ntfy']['user']:
notify_per_ntfy()