Skip to content

Commit

Permalink
Merge pull request #107 from iramello/master
Browse files Browse the repository at this point in the history
Fixed failed comparison of Fixnum with True
  • Loading branch information
aphyr committed Feb 13, 2015
2 parents 655d5e0 + e563318 commit 2030221
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/riemann-dir-files-count
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Riemann::Tools::DirFilesCount

opt :directory, "", :default => '/var/log'
opt :service_prefix, "The first part of the service name, before the directory path", :default => "dir-files-count"
opt :warning, "Dir files number warning threshold"
opt :critical, "Dir files number critical threshold"
opt :warning, "Dir files number warning threshold", :type => Integer
opt :critical, "Dir files number critical threshold", :type => Integer
opt :alert_on_missing, "Send a critical metric if the directory is missing?", :default => true

def initialize
Expand Down
4 changes: 2 additions & 2 deletions bin/riemann-dir-space
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Riemann::Tools::DirSpace

opt :directory, "", :default => '/var/log'
opt :service_prefix, "The first part of the service name, before the directory path", :default => "dir-space"
opt :warning, "Dir space warning threshold (in bytes)"
opt :critical, "Dir space critical threshold (in bytes)"
opt :warning, "Dir space warning threshold (in bytes)", :type => Integer
opt :critical, "Dir space critical threshold (in bytes)", :type => Integer
opt :alert_on_missing, "Send a critical metric if the directory is missing?", :default => true

def initialize
Expand Down

0 comments on commit 2030221

Please sign in to comment.