From 7ad814017a8a9bd005edd64266b939976a018110 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 Oct 2013 12:21:29 +0000 Subject: Make nagios-check-owfs-temp work on wheezy git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@652 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-owfs-temp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nagios-check-owfs-temp') diff --git a/nagios-check-owfs-temp b/nagios-check-owfs-temp index 98af8c8..f7e938d 100755 --- a/nagios-check-owfs-temp +++ b/nagios-check-owfs-temp @@ -108,12 +108,12 @@ def show_help(parser, code=0, io=STDOUT) end ARGV.options do |opts| opts.on_tail("-h", "--help" , "Display this help screen") { show_help(opts) } - opts.on("-d", "--device=" , String, "Device ID") { |@device| } - opts.on("-n", "--name=" , String, "Human readable device specifier") { |@name| } - opts.on("-w", "--high-warn=integer" , Integer, "Upper warning limit") { |@highwarn| } - opts.on("-c", "--high-crit=integer" , Integer, "Upper critical limit") { |@highcrit| } - opts.on("-W", "--low-warn=integer" , Integer, "Lower warning limit") { |@lowwarn| } - opts.on("-C", "--low-crit=integer" , Integer, "Lower critical limit") { |@lowcrit| } + opts.on("-d", "--device=" , String, "Device ID") { |x| @device = x } + opts.on("-n", "--name=" , String, "Human readable device specifier") { |x| @name = x } + opts.on("-w", "--high-warn=integer" , Integer, "Upper warning limit") { |x| @highwarn = x } + opts.on("-c", "--high-crit=integer" , Integer, "Upper critical limit") { |x| @highcrit = x } + opts.on("-W", "--low-warn=integer" , Integer, "Lower warning limit") { |x| @lowwarn = x } + opts.on("-C", "--low-crit=integer" , Integer, "Lower critical limit") { |x| @lowcrit = x } opts.parse! end show_help(ARGV.options, 1, STDERR) if ARGV.length != 0 -- cgit v1.2.3