Check_procs always returns OK
Posted: Mon Nov 02, 2020 8:20 am
Running Nagios 5.6.10 on RHEL 7 VMs. Using Test11 as the variable, but in our environment, it really appears as a Java process with the variable =SomeOtherProcess.
Can anyone see what may be happening to cause this to always return a 0 instead of 2?
Can anyone see what may be happening to cause this to always return a 0 instead of 2?
Code: Select all
check_ncpa.py -H HOST -t SUPERSECRETPASSWORD -M 'plugins/check_procs' -q "args=-aTest11 ' -c 1 '"
PROCS OK: 0 processes with args 'Test11' | procs=0; -c 1 ;;0;
Code: Select all
check_ncpa.py -H HOST -t SUPERSECRETPASSWORD -M 'plugins/check_procs' -q "args=-aTest11 ' -c 1:1 '"
PROCS OK: 0 processes with args 'Test11' | procs=0; -c 1 ;;0;
Code: Select all
check_ncpa.py -H HOST -t SUPERSECRETPASSWORD -M 'plugins/check_procs' -q "args=-a=Test11 ' -c 1 '"
PROCS OK: 0 processes with args 'Test11' | procs=0; -c 1 ;;0;
Code: Select all
check_ncpa.py -H HOST -t SUPERSECRETPASSWORD -M 'plugins/check_procs' -q "args=-a=Test11 ' -c 1:1 '"
PROCS OK: 0 processes with args 'Test11' | procs=0; -c 1 ;;0;