From 7345a878e92db789eb54e36e285ae7834cec78a9 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Thu, 5 Dec 2013 18:06:13 -0500 Subject: [PATCH] Add "client" string to Nagios integration. (imported from commit 0e42d297b5be668da9b28c9970621a1f9a4229ca) --- integrations/nagios/nagios-notify-zulip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integrations/nagios/nagios-notify-zulip b/integrations/nagios/nagios-notify-zulip index 0e92e40..2f4e48a 100755 --- a/integrations/nagios/nagios-notify-zulip +++ b/integrations/nagios/nagios-notify-zulip @@ -2,6 +2,7 @@ import optparse import zulip +VERSION = "0.9" # Nagios passes the notification details as command line options. # In Nagios, "output" means "first line of output", and "long # output" means "other lines of output". @@ -14,7 +15,7 @@ for opt in ('type', 'host', 'service', 'state'): parser.add_option('--' + opt) (opts, args) = parser.parse_args() -client = zulip.Client(config_file=opts.config) +client = zulip.Client(config_file=opts.config, client="nagios " + VERSION) msg = dict(type='stream', to=opts.stream)