Skip to content

Commit

Permalink
Merge pull request #45 from boutetnico/master
Browse files Browse the repository at this point in the history
Fix duplicate short option in check-graphite.rb
  • Loading branch information
eheydrick authored Jan 24, 2017
2 parents 92ece38 + eb0c0f3 commit 1e30903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
- Disable filtering for handler-graphite-status.rb
### Fixed
- Error handling in graphite handlers
- Duplicate short option in check-graphite.rb

## [2.0.0] - 2016-06-21
### Added
Expand Down
4 changes: 2 additions & 2 deletions bin/check-graphite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ class Graphite < Sensu::Plugin::Check::CLI

option :acceptable_diff_percentage,
description: 'The acceptable diff from max values in percentage, used in check_function_increasing',
short: '-d ACCEPTABLE_DIFF_PERCENTAGE',
short: '-D ACCEPTABLE_DIFF_PERCENTAGE',
long: '--acceptable_diff_percentage ACCEPTABLE_DIFF_PERCENTAGE',
default: 0

option :check_function_increasing,
description: 'Check that value is increasing or equal over time (use acceptable_diff_percentage if it should allow to be lower)',
short: '-i',
long: '--check_function_decreasing',
long: '--check_function_increasing',
default: false,
boolean: true

Expand Down

0 comments on commit 1e30903

Please sign in to comment.