Problem check_winprocess.exe

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

Problem check_winprocess.exe

Post by rambertnala »

Hi friends.

I need help. I am trying to receive via NRDS status of three process

I am using check_winprocess.exe v 1.6 but I can not get real info.

I execute

check_winprocess.exe --filter "imagename eq smss.exe","imagename eq lsass.exe","imagename eq csrss.exe" --compare ne --critical 3

and I always get CRITICAL but processes are OK

I am testing locally
Picture attached

Thanks and regards
Attachments
Error.JPG
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem check_winprocess.exe

Post by neworderfac33 »

Is there any reason why you are using check_winprocess?

Why don't you just define your service using check_nt, something like this?

Code: Select all

define service{
   use                      generic-service
   host_name                99.99.99.99
   hostgroup_name           MYHOSTGROUP
   service_description      Process Alerting - SMSS.EXE
   check_command            check_nt!PROCSTATE! -p 12489 -d SHOWALL -l smss.exe
   }
Cheers

Pete
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Problem check_winprocess.exe

Post by rambertnala »

I am trying to configure my hosts with Nagios Remote Data Sender , this way i don't have to call via NRPE every 5 minutes.

I prefer hosts were able to check themselves and send info to Nagios Server

One of plugins is that..
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Problem check_winprocess.exe

Post by neworderfac33 »

Ah, OK - I didn't realise that.
kyang

Re: Problem check_winprocess.exe

Post by kyang »

Hey @rambertnala,

Could you post your config.ini file for NRDS of where you have this command defined?

I found a post related to this example check_winprocess.exe

https://support.nagios.com/forum/viewto ... =6&t=41043
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Problem check_winprocess.exe

Post by rambertnala »

Hi.

I have read that post yesterday...but he only chek one process cmd.exe

I need to check 3 or more process but i don't want to create one command for every process...

My config ini


command[Procesos] = $PLUGIN_DIR$\check_winprocess.exe --filter "imagename eq smss.exe","imagename eq lsass.exe","imagename eq csrss.exe" --compare ne --critical 3
command[Carga CPU] = $PLUGIN_DIR$\check_cpu.ps1 -w 70 -c 90
command[Espacio en Disco] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 97.5 -c 99.5
command[Log Eventos] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[Uso Memoria] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[Uso Memoria Fisica] = $PLUGIN_DIR$\check_pdm.exe --memory pagefile -w 80 -c 95
command[Servicio NSClient] = $PLUGIN_DIR$\service_nrpe_nt.exe "NSClient++ (x86)"
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem check_winprocess.exe

Post by scottwilkerson »

The only available options for that plugin are described on this page
https://itefix.net/check_winprocess

I do not see any way to aggregate services into one command like you are doing
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Problem check_winprocess.exe

Post by rambertnala »

scottwilkerson wrote:The only available options for that plugin are described on this page
https://itefix.net/check_winprocess

I do not see any way to aggregate services into one command like you are doing
Hi friends.

I have visited url, i have downloaded last version and this is which Readme.txt says:


check_winprocess.exe --filter "imagename eq A.EXE","imagename eq B.EXE","imagename eq C.EXE" --compare ne --critical 3

Checks if there exists A.EXE, B.EXE and C.EXE processes, returns CRITICAL
if the number of processes is not 3.
kyang

Re: Problem check_winprocess.exe

Post by kyang »

Did this resolve your question?

As @scottwilkerson said,
I do not see any way to aggregate services into one command like you are doing
That seems to be the answer unless the one you posted works for you?
Locked