check_snmp plugin query - reverse warning and critical?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guyver1
Posts: 28
Joined: Tue Apr 16, 2019 4:43 am

check_snmp plugin query - reverse warning and critical?

Post by Guyver1 »

Query:
Can you set the -w and -c of check_snmp to be say -w <300 ?

Reasoning:
We are monitoring our Wireless Access Controllers via check_snmp and we want to alert when the number of AP's connected to it drop BELOW certain thresholds, this means the warning and critical counters need to work in reverse. (where normal is 316 AP's, but then a warning and a critical need to be lower than the normal, not higher)

Is this possible using my example above or another method?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp plugin query - reverse warning and critical?

Post by scottwilkerson »

Yes but different format, see
https://www.nagios-plugins.org/doc/guid ... HOLDFORMAT
for THRESHOLD format and examples.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Guyver1
Posts: 28
Joined: Tue Apr 16, 2019 4:43 am

Re: check_snmp plugin query - reverse warning and critical?

Post by Guyver1 »

Excellent, thank you very much :D
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp plugin query - reverse warning and critical?

Post by scottwilkerson »

Guyver1 wrote:Excellent, thank you very much :D
No problem

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked