Page 1 of 1

max speed for bandwidth utilization

Posted: Mon Jan 03, 2011 4:20 pm
by lamin
I am monitoring the bandwidth utilization of every interface in each router. During the configuration nagiosxi shows you the max speed of each interface, however I am not seeing those numbers in mysql. Do you have any idea?

Re: max speed for bandwidth utilization

Posted: Wed Jan 05, 2011 10:45 am
by tonyyarusso
By that do you mean the theoretical maximum (eg. 1 Gbps), or the highest it's actually been (eg. 637 Mbps)?

Re: max speed for bandwidth utilization

Posted: Wed Jan 05, 2011 3:51 pm
by lamin
Yeap!

Re: max speed for bandwidth utilization

Posted: Wed Jan 05, 2011 4:54 pm
by tonyyarusso
That would be the ifSpeed returned by SNMP, OID 1.3.6.1.2.1.2.2.1.5

Re: max speed for bandwidth utilization

Posted: Thu Jan 06, 2011 9:06 am
by lamin
I really did not get it. Is the max speed store in the database?

Re: max speed for bandwidth utilization

Posted: Thu Jan 06, 2011 1:58 pm
by mguthrie
The max speed for each port is retrieved from your switch, I'm not sure where exactly it's stored. You could check /var/www/mrtg/mrtg.cfg and see if it's stored in there.

Re: max speed for bandwidth utilization

Posted: Thu Jan 06, 2011 4:44 pm
by lamin
It is not there and I really need it in order to perform some percentage bandwidth utilization of each interfaces.

Re: max speed for bandwidth utilization

Posted: Thu Jan 06, 2011 4:56 pm
by tonyyarusso
If it's not stored, you can always fetch again yourself - http://php.net/manual/en/function.snmpget.php