Page 1 of 1
Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 10:14 am
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
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 10:33 am
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
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 10:38 am
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..
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 10:45 am
by neworderfac33
Ah, OK - I didn't realise that.
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 11:07 am
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
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 11:40 am
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)"
Re: Problem check_winprocess.exe
Posted: Wed Sep 27, 2017 12:58 pm
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
Re: Problem check_winprocess.exe
Posted: Thu Sep 28, 2017 3:05 am
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.
Re: Problem check_winprocess.exe
Posted: Thu Sep 28, 2017 9:59 am
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?