Page 1 of 1
low bandwidth threshold alert
Posted: Wed Nov 26, 2014 1:44 pm
by zaji_nms
Dear Expert
I went through the thread => Alerts & Notifications when Bandwidth flatlines
but there is any one using in real scenario for low bandwidth threshold or dear expert can you guide further
currently for high threshold we using as below
check_xi_service_mrtgtraf
$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$
$ARG1$ : ahm-malc-1_401.rrd
$ARG2$ : 75,75
$ARG3$ : 90,90
$ARG4$ : M
is there any way to use below Arguments to give CRITICAL alert when threshold reach very low.
$ARG7$ : 90,90
$ARG8$ : K
other wise we will configure same link for other services called
check_xi_service_lowthreshold <<< not real check-command name, me just assuming
$USER1$/check_lowbw -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$ (not real command view)
$ARG1$ : ahm-malc-1_401.rrd
$ARG2$ : 90,90
$ARG3$ : K
Regards
Re: low bandwidth threshold alert
Posted: Wed Nov 26, 2014 2:06 pm
by sreinhardt
Yes, I know of several companies monitoring external interfaces or other interfaces that should never reach zero for low thresholds. We found that the check_rrdtraff plugin does not properly evaluate thresholds, and needs a patch that has a bug submitted for it. They all use a variety of other plugins or wrapper scripts to handle this at present.
Re: low bandwidth threshold alert
Posted: Sat Dec 13, 2014 1:13 pm
by zaji_nms
Dear Sreinhardt
Postby sreinhardt ยป Thu Dec 11, 2014 7:39 pm
You have fixed Warning/Critical Threshold issue if values are in decimal...if reaching High
However me asking is there any way to use below Arguments to give CRITICAL alert when threshold (ARG7-8) reach very low.
$ARG7$ : 90,90
$ARG8$ : K
Regards
Dear Sreinhardt
The same check_rrdtraf can be modify and can be use to generate Low Bandwidth Threshold along with High Bandwidth Threshold
Regards
Re: low bandwidth threshold alert
Posted: Mon Dec 15, 2014 10:39 am
by slansing
Yes, you could do that, you would need to use some of the special check thresholds to accomplish this though, until that plugin gets patched:
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Re: low bandwidth threshold alert
Posted: Mon Dec 15, 2014 12:42 pm
by zaji_nms
Dear Slansing
me not expert that level but for NagiosXI developer, I think can be done in minutes, should do it and hope will get added in next minor release.
Regards
Re: low bandwidth threshold alert
Posted: Mon Dec 15, 2014 2:08 pm
by sreinhardt
The patch I referenced, does not resolve less than types of thresholds working. Sorry, that is probably not going to happen with this particular plugin. I would rather spend the additional time including rrd checking functionality in a C application like check_mrtgtraff. Bash has no great way of handling the logic needed, and would lead to many many issues due to a lack of fundamental tools with the script as it is now. You are more than welcome to post a bug or feature request to tracker.nagios.com for us to update the threshold settings of that plugin to properly meet the Plugins threshold guidelines, but my C changes will likely be done sooner.
Re: low bandwidth threshold alert
Posted: Tue Dec 16, 2014 4:59 am
by zaji_nms
Dear sreinhardt
Okay as you said there is bug/limitation you cannot set low bandwidth threshold, can you further enhance check_rrdtraf to generate CRITICAL alert if there is no in or no out value , I mean zero.
If 0 in/out bandwidth, give CRITICAL alert.
FYI, when any Cisco Port (Interface) in hung UP status, will not trigger any down alert but in this case there will not traffic atleast one side In or Out, and your check_rrdtraf will generate CRITICAL alert that there is no traffic....it will give great help....really great great help.
ARG7$ will set 0,0 (then you will check Low Bandwidth Threshold) better to say if ARG7=0,0 then check_rrdtraf will check for ZERO in/out value.
Regards
Re: low bandwidth threshold alert
Posted: Tue Dec 16, 2014 10:59 am
by slansing
No, because that is the same logic, you are again, trying to set a low limit to return a critical, a lower limit than your (normal) warning and critical values, and lower than your OK threshold which is below warning by default. As mentioned, feel free to put in a feature request for this at:
tracker.nagios.com
Re: low bandwidth threshold alert
Posted: Tue Dec 16, 2014 1:15 pm
by zaji_nms
Dear slansing
Okay , you can go ahead and lock this Post.
We migrated from other NMS to Nagios nearly 2 years, me was working as a end user from last 2 years but fully got involved from last 2-3 months, I found Nagios very interesting but lacking many minor features, I have reported via this forum and sure will post via tracker.
Sorry for bothering you but sure it will be good for all.
Regards
Re: low bandwidth threshold alert
Posted: Tue Dec 16, 2014 1:31 pm
by cmerchant
Thank you for you input. We'll go ahead and close this thread.