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)