Page 1 of 1

check_process

Posted: Thu Jan 09, 2020 12:16 pm
by rambertnala
Happy new year all folks.

I need to check a process on windows XP & Win 7 computers via checl_nrpe

But i need to receive OK if process does not exist and WARNING or CRITICAL if exist process

this is my command

chek_nrpe -H <IP_HOST> -c check_process -a process=<process.exe> ¿¿¿¿ARGS?????

Is there any way to do it???

Thanks and regards

NSClient version 0.5.1.46 installed at Win computers

Re: check_process

Posted: Thu Jan 09, 2020 5:00 pm
by mbellerue
rambertnala wrote:Happy new year all folks.
Happy new year!
I need to check a process on windows XP & Win 7 computers...
:evil: (Just kidding ;) )
But i need to receive OK if process does not exist and WARNING or CRITICAL if exist process

this is my command

chek_nrpe -H <IP_HOST> -c check_process -a process=<process.exe> ¿¿¿¿ARGS?????

Is there any way to do it???

Thanks and regards

NSClient version 0.5.1.46 installed at Win computers
Absolutely, we can do this. We'll wrap your command in the negate plugin.

Code: Select all

/usr/local/nagios/libexec/negate --ok=CRITICAL --critical=OK --substitute chek_nrpe -H <IP_HOST> -c check_process -a process=<process.exe> ¿¿¿¿ARGS?????
Give that a shot, and let me know how it goes.