Low bandwidth threshold alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
adminskymed
Posts: 19
Joined: Tue Feb 20, 2018 5:40 am

Low bandwidth threshold alert

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Low bandwidth threshold alert

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Low bandwidth threshold alert

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
adminskymed
Posts: 19
Joined: Tue Feb 20, 2018 5:40 am

Re: Low bandwidth threshold alert

Post by adminskymed »

Hi All,

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

Alex
Locked