Skip to content

False positive on Zombie Process #3

@sdupille

Description

@sdupille

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions