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
Problem check_winprocess.exe
-
- Posts: 329
- Joined: Fri Jul 24, 2015 11:04 am
Re: Problem check_winprocess.exe
Is there any reason why you are using check_winprocess?
Why don't you just define your service using check_nt, something like this?
Cheers
Pete
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
}
Pete
-
- Posts: 60
- Joined: Fri Feb 26, 2016 7:15 am
Re: Problem check_winprocess.exe
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..
I prefer hosts were able to check themselves and send info to Nagios Server
One of plugins is that..
-
- Posts: 329
- Joined: Fri Jul 24, 2015 11:04 am
Re: Problem check_winprocess.exe
Ah, OK - I didn't realise that.
Re: Problem check_winprocess.exe
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
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
-
- Posts: 60
- Joined: Fri Feb 26, 2016 7:15 am
Re: Problem check_winprocess.exe
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)"
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)"
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problem check_winprocess.exe
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
https://itefix.net/check_winprocess
I do not see any way to aggregate services into one command like you are doing
-
- Posts: 60
- Joined: Fri Feb 26, 2016 7:15 am
Re: Problem check_winprocess.exe
Hi friends.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
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
Did this resolve your question?
As @scottwilkerson said,
As @scottwilkerson said,
That seems to be the answer unless the one you posted works for you?I do not see any way to aggregate services into one command like you are doing