Page 1 of 1

Problem with notification alerts when bw is below threshold

Posted: Thu Apr 27, 2017 1:12 pm
by digea
Hi,

We have trouble configuring notification alerts for our bandwidth monitoring services for our Cisco switches for the cases where we want to get a critical or warning alert when bandwidth goes below a threshold.

An example:

According to https://nagios-plugins.org/doc/guidelines.html, if want Nagios to trigger a warning notification when input bw goes below 62 Mbps and a critical notification when it goes further down below 50 Mbps, we have to use a check command like this:

check_xi_service_mrtgtraf!192.168.xxx.xxx_10101.rrd!62.0:,500.0!50.0:,800.0!M!!!!

This is how input/output gauges look like in this case and when input bw is ~60Mbps:

Image

Although current input bw is within the warning range, service state remains in the OK state:

Image

We've tried several different combinations of the alert tresholds, but we couldn't manage to have a state other than OK.

Are we missing something here?

Thank you in advance.

Re: Problem with notification alerts when bw is below thresh

Posted: Thu Apr 27, 2017 2:57 pm
by cdienger
Hi Digea,

I believe what you want is:

[email protected]:62.0:!50.0:!M

Give this a shot and let me know your results.

Re: Problem with notification alerts when bw is below thresh

Posted: Fri Apr 28, 2017 7:51 am
by digea
I tried what you suggested but with no success. Any suggestions on how I could possibly debug this?

Re: Problem with notification alerts when bw is below thresh

Posted: Fri Apr 28, 2017 9:54 am
by cdienger
Unfortunately after poking around this a bit more, the plugin only triggers if bandwidth exceeds a threshold. You can try using check_snmp instead. See rkennedy's post at https://support.nagios.com/forum/viewto ... =7&t=41640 for details.