I am monitoring a process and I need to get notified when the number decreases from 1 to 0, what would I have to do to set the SNMP alert to only notify when it reaches 0 instead of stating the system is critical when the number is one.
check_xi_service_snmp! -p 161 -o prCount.2 -C public -P 2c -m UCD-SNMP-MIB -w 0 -c 0
Changing the notification to when the number decreases.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Changing the notification to when the number decreses.
Per the threshold guidelines, try the following:
All I added as a colon : after the 0's
Code: Select all
check_xi_service_snmp! -p 161 -o prCount.2 -C public -P 2c -m UCD-SNMP-MIB -w 1: -c 1:Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Changing the notification to when the number decreases.
Thank you that worked!
Re: Changing the notification to when the number decreases.
We'll go ahead and close this thread. Thanks.