Page 1 of 1

check_snmp plugin query - reverse warning and critical?

Posted: Mon Mar 30, 2020 3:16 am
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?

Re: check_snmp plugin query - reverse warning and critical?

Posted: Mon Mar 30, 2020 8:16 am
by scottwilkerson
Yes but different format, see
https://www.nagios-plugins.org/doc/guid ... HOLDFORMAT
for THRESHOLD format and examples.

Re: check_snmp plugin query - reverse warning and critical?

Posted: Mon Mar 30, 2020 10:41 am
by Guyver1
Excellent, thank you very much :D

Re: check_snmp plugin query - reverse warning and critical?

Posted: Mon Mar 30, 2020 10:55 am
by scottwilkerson
Guyver1 wrote:Excellent, thank you very much :D
No problem

Locking thread