Open vlinevych opened 8 years ago
Same behaviour here, except I'm not checking for zombies
Uchiwa dashboard shows:
Yet locally on the server if I run the same thing:
[root@devcorepptl918 bin]# check-process.rb --pattern 'puppetserver' --critical-under 1
CheckProcess OK: Found 1 matching processes; cmd /puppetserver/
Same problem - checking for zombies and D-state processes.
@vlinevich This check has a lot of different things you can check and the defaults wont be good for all of them, I am thinking that the best thing to do is to put some documentation to help people who have run into the same thing.
Anyone up for documenting this gotcha with the defaults? If not I would accept a pr with a conditional for 0.
Thanks for your report. I had the same problem and used your workaround.
I am trying to detect zombie processes and found out that check doesn't work for me:
The problem is in condition at line 289. Since
crit_under
has default value of1
, check returns CRITICAL.Workaround is to re-define default values of
crit_under
,warn_under