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.
Hello,
check-restart reports false positive when scanning zombie process:
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.