Skip to content
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

False positive on Zombie Process #3

Open
sdupille opened this issue Feb 25, 2018 · 0 comments
Open

False positive on Zombie Process #3

sdupille opened this issue Feb 25, 2018 · 0 comments

Comments

@sdupille
Copy link

sdupille commented Feb 25, 2018

Hello,

check-restart reports false positive when scanning zombie process:

# lsop
   pid    jid stat command
 73194      0  err -
# ps auxw | grep 73194
root    73194   0,0  0,0     0     0  -  Z    17:59           0:00,05 <defunct>
# /usr/local/libexec/nagios/check_restart
WARN:        1 process(es) have to be restarted
# echo $?
1

The Nagios check sees a line returned by lsop (with err status) and thinks that a restart is required.
The nagios check script should inspect the return code of lsop instead if the stdout ouput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant