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
low bandwidth threshold alert
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: low bandwidth threshold alert
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.
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.
Re: low bandwidth threshold alert
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
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
Last edited by slansing on Mon Dec 15, 2014 10:28 am, edited 1 time in total.
Reason: Merged your posts, please edit your previous post rather than double posting.
Reason: Merged your posts, please edit your previous post rather than double posting.
Zajil NMS
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: low bandwidth threshold alert
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
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT
Re: low bandwidth threshold alert
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
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
Zajil NMS
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: low bandwidth threshold alert
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.
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.
Re: low bandwidth threshold alert
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
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
Zajil NMS
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: low bandwidth threshold alert
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
tracker.nagios.com
Re: low bandwidth threshold alert
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
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
Zajil NMS
Re: low bandwidth threshold alert
Thank you for you input. We'll go ahead and close this thread.