Process Check Never Goes Critical
Posted: Tue Oct 12, 2021 2:36 pm
I am trying to check if either of two processes are running and if neither are to go critical. I appear to have all of the pieces but Nagios XI never sends a notification and appears to be in a warning state even though it says "CRITICAL: No processes found". It does recover with an OK state when it detects one of the two processes which is the correct behavior, I just need help with the critical status and notification. I am using the following syntax:
./check_nrpe -H $HOSTNAME$ -c check_process "top-syntax=%(list):%(count)" "detail-syntax=%(exe):%(state)" -a "filter=state='stopped' and exe eq 'MsSenseS.exe' or exe eq 'ccSvcHst.exe'"
Thank you in advance for any assistance.
./check_nrpe -H $HOSTNAME$ -c check_process "top-syntax=%(list):%(count)" "detail-syntax=%(exe):%(state)" -a "filter=state='stopped' and exe eq 'MsSenseS.exe' or exe eq 'ccSvcHst.exe'"
Thank you in advance for any assistance.