Hi,
I want to monitor Process hung state in windows servers through nagios nsclient++. If process goes to hung state I want nagios to generate aletrt.
Can some one let me know way to monitor hung process on windows server ?
Monitoring Windows Process Hung state
Re: Monitoring Windows Process Hung state
Does this work for you?
If not, does this even work?
Please post the NSClient++ agent version you are running as well, you can find it listed next to NSClient++ in Programs and Features in the Control Panel.
Thank you
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -c check_process -a '"process=*" filter="hung" empty-state=ok "empty-syntax=No hung processes found"'Code: Select all
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -c check_processThank you
Re: Monitoring Windows Process Hung state
[root@lxvappnagdev001 libexec]# /usr/local/nagios/libexec/check_nrpe -H msappremprd001 -c check_process
OK: all processes are ok.|'wininit.exe state'=1;0;0 'winlogon.exe state'=1;0;0 'lsass.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'LogonUI.exe state'=1;0;0 'MsMpEng.exe state'=1;0;0 'dwm.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'rundll32.exe state'=1;0;0 'svchost.exe state'=1;0;0 'spoolsv.exe state'=1;0;0 'armonitor.exe state'=1;0;0 'aremaild.exe state'=1;0;0 'arflashd.exe state'=1;0;0 'svchost.exe state'=1;0;0 'nscp.exe state'=1;0;0 'splunkd.exe state'=1;0;0 'conhost.exe state'=1;0;0 'wrapper.exe state'=1;0;0 'conhost.exe state'=1;0;0 'tesvc.exe state'=1;0;0 'VGAuthService.exe state'=1;0;0 'ManagementAgentHost.exe state'=1;0;0 'WmiApSrv.exe state'=1;0;0 'xagt.exe state'=1;0;0 'java.exe state'=1;0;0 'wmiprvse.exe state'=1;0;0 'wmiprvse.exe state'=1;0;0 'vmtoolsd.exe state'=1;0;0 'java.exe state'=1;0;0 'conhost.exe state'=1;0;0 'java.exe state'=1;0;0 'conhost.exe state'=1;0;0 'wmi
[root@lxvappnagdev001 libexec]#
above command is working
Command that you gave me to check for hung processes is not working
[root@lxvappnagdev001 libexec]# /usr/local/nagios/libexec/check_nrpe -H hostname -c check_process -a '"process=*" filter="hung" empty-state=ok "empty-syntax=No hung processes found"'
Invalid command line: unrecognised option '"process=*" filter="hung" empty-state=ok "empty-syntax=No hung processes found"'
filter=state != 'unreadable' Filter which marks interesting items.
warning=state not in ('started') Filter which marks items which generates a warning state.
warn= Short alias for warning
critical=state = 'stopped', count = 0 Filter which marks items which generates a critical state.
crit= Short alias for critical.
ok= Filter which marks items which generates an ok state.
debug Show debugging information in the log
show-all Show details for all matches regardless of status (normally details are only showed for warnings and criticals).
empty-state=unknown Return status to use when nothing matched filter.
perf-config= Performance data generation configuration
escape-html Escape any < and > characters to prevent HTML encoding
help Show help screen (this screen)
help-pb Show help screen as a protocol buffer payload
show-default Show default values fo
[root@lxvappnagdev001 libexec]#
Versiion of nsclient aget is 0.5.1.44 in all our windows servers
OK: all processes are ok.|'wininit.exe state'=1;0;0 'winlogon.exe state'=1;0;0 'lsass.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'LogonUI.exe state'=1;0;0 'MsMpEng.exe state'=1;0;0 'dwm.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'svchost.exe state'=1;0;0 'rundll32.exe state'=1;0;0 'svchost.exe state'=1;0;0 'spoolsv.exe state'=1;0;0 'armonitor.exe state'=1;0;0 'aremaild.exe state'=1;0;0 'arflashd.exe state'=1;0;0 'svchost.exe state'=1;0;0 'nscp.exe state'=1;0;0 'splunkd.exe state'=1;0;0 'conhost.exe state'=1;0;0 'wrapper.exe state'=1;0;0 'conhost.exe state'=1;0;0 'tesvc.exe state'=1;0;0 'VGAuthService.exe state'=1;0;0 'ManagementAgentHost.exe state'=1;0;0 'WmiApSrv.exe state'=1;0;0 'xagt.exe state'=1;0;0 'java.exe state'=1;0;0 'wmiprvse.exe state'=1;0;0 'wmiprvse.exe state'=1;0;0 'vmtoolsd.exe state'=1;0;0 'java.exe state'=1;0;0 'conhost.exe state'=1;0;0 'java.exe state'=1;0;0 'conhost.exe state'=1;0;0 'wmi
[root@lxvappnagdev001 libexec]#
above command is working
Command that you gave me to check for hung processes is not working
[root@lxvappnagdev001 libexec]# /usr/local/nagios/libexec/check_nrpe -H hostname -c check_process -a '"process=*" filter="hung" empty-state=ok "empty-syntax=No hung processes found"'
Invalid command line: unrecognised option '"process=*" filter="hung" empty-state=ok "empty-syntax=No hung processes found"'
filter=state != 'unreadable' Filter which marks interesting items.
warning=state not in ('started') Filter which marks items which generates a warning state.
warn= Short alias for warning
critical=state = 'stopped', count = 0 Filter which marks items which generates a critical state.
crit= Short alias for critical.
ok= Filter which marks items which generates an ok state.
debug Show debugging information in the log
show-all Show details for all matches regardless of status (normally details are only showed for warnings and criticals).
empty-state=unknown Return status to use when nothing matched filter.
perf-config= Performance data generation configuration
escape-html Escape any < and > characters to prevent HTML encoding
help Show help screen (this screen)
help-pb Show help screen as a protocol buffer payload
show-default Show default values fo
[root@lxvappnagdev001 libexec]#
Versiion of nsclient aget is 0.5.1.44 in all our windows servers
Re: Monitoring Windows Process Hung state
Does this one work?
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H msappremprd001 -c check_process -a process=* filter="hung" empty-state=ok "empty-syntax=No hung processes found"