Page 1 of 1

Low bandwidth threshold alert

Posted: Thu Sep 26, 2019 11:04 am
by adminskymed
Hi All,

I saw an old thread about this question, without a solution, so i thought to ask it again.
Is there any way to set low traffic thresholds for interfaces?

Now I'm monitoring all interfaces using wizards (Network Switch / Router) and it uses check_rrdtraf script.
I have already tried this https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT unsuccessfully

Is there any solution or any other script to do what i need?

Thanks
Alessandro

Re: Low bandwidth threshold alert

Posted: Thu Sep 26, 2019 12:42 pm
by mbellerue
This is going to be dependent on what you're querying. Is this a server with an agent installed on it? What agent, what OS? Is it a network switch whose port you want to query? This will probably be done via SNMP.

Re: Low bandwidth threshold alert

Posted: Thu Sep 26, 2019 2:23 pm
by cdienger
I've attached a modified check_rrdtraf(remove the .txt extension) that can accept thresholds like those in https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT. Preliminary results look good, but test this in your environment first. Also note that you may need to put the thresholds in quotes, ie "~:10,~:10", so that characters are interpreted correctly.

The modifications make use of the /usr/local/nagios/libexec/utils.sh script which should be installed by default or downloaded from here if needed: https://github.com/nagios-plugins/nagio ... tils.sh.in

Re: Low bandwidth threshold alert

Posted: Fri Sep 27, 2019 10:18 am
by adminskymed
Hi All,

thank you, after the first tests the script seems to work properly, very usefull.

Alex