diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-10-28 12:21:29 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-10-28 12:21:29 +0000 |
commit | 7ad814017a8a9bd005edd64266b939976a018110 (patch) | |
tree | 8f21f45c75dd369db2d429445b8a364290d00a94 /nagios-check-owfs-temp | |
parent | c184ebc092de5d462ec286203f2cac9f238a29e2 (diff) |
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
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 |