-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check-process.rb: wrong behaviour if desired process count = 0 #22
Comments
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
The text was updated successfully, but these errors were encountered: