diff options
Diffstat (limited to 'nagios-check-owfs-temp')
-rwxr-xr-x | nagios-check-owfs-temp | 12 |
1 files changed, 6 insertions, 6 deletions
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=<ow device>" , String, "Device ID") { |@device| } - opts.on("-n", "--name=<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=<ow device>" , String, "Device ID") { |x| @device = x } + opts.on("-n", "--name=<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 |