Skip to content

Commit 864fe7c

Browse files
eberkutmajormoses
authored andcommitted
fix check always returning critical
found is initialized to false and no condition sets it to true, consequently the checks always exits as critical.
1 parent 2940de6 commit 864fe7c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/metrics-ipcs.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def run
6060
result = line.match(/[[:space:]]*(?<name>[a-zA-Z ]*).*(?<value>\d+)/)
6161
output "#{config[:scheme]}.#{key}.#{result[:name].strip.tr(' ', '-')}", result[:value].strip
6262
end
63+
found = true
6364
end
6465
if found
6566
ok

0 commit comments

Comments
 (0)