Hi,
We have instrumented the monitoring for the windows process which has the argument in Nagios XI, however the status is showing unknown instead of critical in Nagios if the process stop/killed or not available on server.
We have added below mentioned argument in commandline even though status is unknown.
"crit=count <=0"
Could you please help me to resolve this issue.
Thanks & Regards,
Avinash
Unknown status for windows process with argument
Re: Unknown status for windows process with argument
Please provide the full command so we can verify the plugin and other arguments provided.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Unknown status for windows process with argument
Hi Cdienger,
Please find below the full command.
check_nrpe!check_process!-a process="cmd.exe" "filter=command_line like 'runCISAgent.py'" "crit=count <=0"
Thanks & Regards,
Avinash Mane
Please find below the full command.
check_nrpe!check_process!-a process="cmd.exe" "filter=command_line like 'runCISAgent.py'" "crit=count <=0"
Thanks & Regards,
Avinash Mane
Re: Unknown status for windows process with argument
You can pass a empty-state arguement to the check to tell it what to return if the filter doens't match anything. For example:
./check_nrpe -H remote_ip -c check_process -a process="cmd.exe" "filter=command_line like 'runCISAgent.py'" empty-state='critical'
Note that the message returned will still say UNKNOWN, but the return value will be critical(2). YOu can see this by running the following immediately after running the check on the command line:
echo $?
https://docs.nsclient.org/reference/win ... ss_options
./check_nrpe -H remote_ip -c check_process -a process="cmd.exe" "filter=command_line like 'runCISAgent.py'" empty-state='critical'
Note that the message returned will still say UNKNOWN, but the return value will be critical(2). YOu can see this by running the following immediately after running the check on the command line:
echo $?
https://docs.nsclient.org/reference/win ... ss_options
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.