bin/check-mongodb-metric.rb in sensu-plugins-mongodb-1.4.1 vs bin/check-mongodb-metric.rb in sensu-plugins-mongodb-2.0.0
- old
+ new
@@ -93,10 +93,11 @@
default: false
option :metric,
description: 'Name of the metric to check',
long: '--metric METRIC',
- short: '-m METRIC'
+ short: '-m METRIC',
+ required: true
option :warn,
description: 'Warn if values are above this threshold',
short: '-w WARN',
proc: proc(&:to_i),