Reverse warning range

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Reverse warning range

Post by BanditBBS »

Ok, I am pretty sure I've done this before, but am just having one heck of a mental meltdown, LOL.

I want to do this command:

Code: Select all

./check_snmp -H 10.6.255.251 -o ciscoMemoryPoolFree.1 -C xxxxxxx -P 2c -w 100000000 -C 90000000
The response is this:

Code: Select all

SNMP CRITICAL - *100971264* | CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree.1=100971264
Since this is checking FREE memory, I need the W and C values counting down, not up, know what I mean? I need more coffee, I just can't think of a better way to phrase this today.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Reverse warning range

Post by BanditBBS »

I think I figured it out.

Code: Select all

./check_snmp -H 10.6.255.251 -o ciscoMemoryPoolFree.1 -C xxxxxxx -P 2c -w 100000000: -C 90000000:
Putting the colons after the values seems to make it do < instead of >

Is that correct?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Reverse warning range

Post by sreinhardt »

I believe you are correct! Having the : after the number should be result < critical value, per the plugin guidelines.
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.
Locked