improve message formating

This commit is contained in:
Yannik Schmidt
2020-06-11 00:20:10 +02:00
parent 74b9b548ec
commit 2064bf2d86

View File

@@ -29,7 +29,7 @@ if __name__ == "__main__":
serviceName = args.e
if args.u:
serviceName = args.u
message = "*{service} {state} on {host}*\n{output}\Icingaweb: {url}".format(
message = "*{service} {state} on {host}*\n{output}\n**Icingaweb**: [{url}]({url})".format(
service=serviceName, state=args.s, host=args.l, output=args.o, url=args.i)
# create and send request #