NCPA not alerting on no process running
Posted: Fri Sep 14, 2018 6:49 am
Hi,
I used NCPA to look to see if a process is running and it works just fine if the process is running, plus it gives me a lot more information than a check by ssh check_procs would, so that is great
the problem comes that when a process is not running, it still says ok and i can't figure out the correct arguments
I tried -w 0 -c 0. i even tried spelling it out, and it still says ok
[nagios@nagxi01 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H 10.xxx.xxx.62 -t 'tokenname' -P 5693 -M 'processes' -q 'name=mongodb-mms-monitoring-agent' --warning=0 --critical=0
OK: Process count for processes named mongodb-mms-monitoring-agent was 0 | 'process_count'=0;0;0;
I don't want to go back to check_procs because of the extro info, can you help with the arguments?
I used NCPA to look to see if a process is running and it works just fine if the process is running, plus it gives me a lot more information than a check by ssh check_procs would, so that is great
the problem comes that when a process is not running, it still says ok and i can't figure out the correct arguments
I tried -w 0 -c 0. i even tried spelling it out, and it still says ok
[nagios@nagxi01 ~]$ /usr/local/nagios/libexec/check_ncpa.py -H 10.xxx.xxx.62 -t 'tokenname' -P 5693 -M 'processes' -q 'name=mongodb-mms-monitoring-agent' --warning=0 --critical=0
OK: Process count for processes named mongodb-mms-monitoring-agent was 0 | 'process_count'=0;0;0;
I don't want to go back to check_procs because of the extro info, can you help with the arguments?