Is it possible to monitor zombie processes with snmp?
I am trying to find the correct syntax to monitor a process to ensure that it doesn't exceed 100 processes.
So the logic would be that from 1-99 processes it is ok but above 100 processes send me a notification.
I've been playing around with this plugin but not getting the desired result as I am not understanding how the threshold work.
/usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <IP> -C public --v2c -r -n <service> -w '0' -c '0'
Much appreciate any help.
Nagios XI SNMP Check for zombie processes
Re: Nagios XI SNMP Check for zombie processes
The plugin requires ranges, not single values.
This should return CRITICAL if the number of processes is above 99. If you also wanted to get the WARNINGs, you would need to tweak the warning threshold. Let us know if this helped. Thank you!
Try running:-w, --warn=MIN[,MAX]
Number of process that will cause a warning
-1 for no warning, MAX must be >0. Ex : -w-1,50
-c, --critical=MIN[,MAX]
number of process that will cause an error (
-1 for no critical, MAX must be >0. Ex : -c-1,50
Code: Select all
/usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <IP> -C public --v2c -r -n <service> -w '1,99' -c '1,99'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI SNMP Check for zombie processes
Thank you lmiltchev. The duality was a bit confusing. You can close this.
Re: Nagios XI SNMP Check for zombie processes
I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!