bundles/icinga2: only include service_name in sms if it actually is a service
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
54219928e4
commit
9cace7dace
1 changed files with 2 additions and 2 deletions
|
@ -60,9 +60,9 @@ def log_to_syslog(message):
|
|||
|
||||
def notify_per_sms():
|
||||
message = {
|
||||
'message': 'ICINGA: {host}/{service} is {state}: {output}'.format(
|
||||
'message': 'ICINGA: {host}{service} is {state}: {output}'.format(
|
||||
host=args.host_name,
|
||||
service=args.service_name,
|
||||
service=('/'+args.service_name if args.service_name else ''),
|
||||
state=args.state.upper(),
|
||||
output=args.output
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue