check_process

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

check_process

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: check_process

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

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked