Changing the notification to when the number decreases.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
henryg
Posts: 8
Joined: Mon Dec 15, 2014 3:34 pm

Changing the notification to when the number decreases.

Post by henryg »

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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Changing the notification to when the number decreses.

Post by sreinhardt »

Per the threshold guidelines, try the following:

Code: Select all

check_xi_service_snmp! -p 161 -o prCount.2 -C public -P 2c -m UCD-SNMP-MIB -w 1: -c 1:
All I added as a colon : after the 0's
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.
henryg
Posts: 8
Joined: Mon Dec 15, 2014 3:34 pm

Re: Changing the notification to when the number decreases.

Post by henryg »

Thank you that worked!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Changing the notification to when the number decreases.

Post by cmerchant »

We'll go ahead and close this thread. Thanks.
Locked