Skip to content

Commit

Permalink
fix check always returning critical
Browse files Browse the repository at this point in the history
found is initialized to false and no condition sets it to true, consequently the checks always exits as critical.
  • Loading branch information
eberkut authored and majormoses committed May 7, 2019
1 parent 2940de6 commit 864fe7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/metrics-ipcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def run
result = line.match(/[[:space:]]*(?<name>[a-zA-Z ]*).*(?<value>\d+)/)
output "#{config[:scheme]}.#{key}.#{result[:name].strip.tr(' ', '-')}", result[:value].strip
end
found = true
end
if found
ok
Expand Down

0 comments on commit 864fe7c

Please sign in to comment.