Unknown status for windows process with argument

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Unknown status for windows process with argument

Post by amane »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unknown status for windows process with argument

Post by cdienger »

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.
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

Re: Unknown status for windows process with argument

Post by amane »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Unknown status for windows process with argument

Post by cdienger »

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked