Discussion:
[Nagios-users] Bandwidth utilization (snmp / cisco router)
Rainer
2003-07-17 23:52:16 UTC
Permalink
Hello,

I'm trying to retrieve the average bandwidth utilization (percent) on a
cisco router using snmp.
What would be the best way to do this? I've been unable to find a cisco mib
related to bandwidth percentage (only bits/sec)
According to Cisco, the only way to do is this:
http://www.cisco.com/warp/public/477/SNMP/calculate_bandwidth_snmp.html (a
formula using
ifInOctets and ifSpeed)
I know this could be done with cricket / rrdtool, but has anyone succeded
in doing this using check_snmp or some perl script with net::snmp? (ex.
check_traffic_percent with parameters for hostaddress, interface number,
community string, and warning/critical percent levels)

Thanks in advance.

Rainer Alves
Unisys Brazil
Tedman Eng
2003-07-18 04:16:04 UTC
Permalink
Look into using apan.
http://apan.sourceforge.net

The net-usage example can be extended with cisco's formula. HP Openview
also gives a similar formula to calculate bandwidth (as a percentage of the
interface's max rate). The apan plugins are written in shell script, so
should be easy to modify. If it works well, maybe contribute the changes
back to the apan project :)

Cheers
Post by Rainer
Hello,
I'm trying to retrieve the average bandwidth utilization (percent) on a
cisco router using snmp.
What would be the best way to do this? I've been unable to find a cisco mib
related to bandwidth percentage (only bits/sec)
http://www.cisco.com/warp/public/477/SNMP/calculate_bandwidth_snmp.html (a
formula using
ifInOctets and ifSpeed)
I know this could be done with cricket / rrdtool, but has anyone succeded
in doing this using check_snmp or some perl script with net::snmp? (ex.
check_traffic_percent with parameters for hostaddress, interface number,
community string, and warning/critical percent levels)
Thanks in advance.
Rainer Alves
Unisys Brazil
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
Post by Rainer
::: Messages without supporting info will risk being sent to /dev/null
Rainer
2003-07-18 20:37:09 UTC
Permalink
Hello Jeyri,

That's exactly what I was looking for, thanks.
I didn't find it earlier because it isn't included with nagios-plugins.
This one should be included at least in the contrib dir.
Adrian (the script author), just wanted to let you know that you forgot to
include the actual perl script in version 0.91b (I'm using the one from 0.90b).
By the way, your site and http://www.nagios.org/download/extras.php only
list v0.90b... are you publishing the script somewhere else? Maybe you
could share this with the rest of us, since it looks very promising.

Regards,
Rainer Alves
Unisys Brazil
Hi,
I´m using the check_traffic plugin, and this run very well.
Jeyri
Post by Rainer
Hello,
I'm trying to retrieve the average bandwidth utilization (percent) on a
cisco router using snmp.
What would be the best way to do this? I've been unable to find a cisco
mib related to bandwidth percentage (only bits/sec)
http://www.cisco.com/warp/public/477/SNMP/calculate_bandwidth_snmp.html
(a formula using
ifInOctets and ifSpeed)
I know this could be done with cricket / rrdtool, but has anyone succeded
in doing this using check_snmp or some perl script with net::snmp? (ex.
check_traffic_percent with parameters for hostaddress, interface number,
community string, and warning/critical percent levels)
Thanks in advance.
Rainer Alves
Unisys Brazil
Continue reading on narkive:
Search results for '[Nagios-users] Bandwidth utilization (snmp / cisco router)' (Questions and Answers)
4
replies
How to tell bandwidth usage?
started 2007-11-15 21:29:38 UTC
computer networking
Loading...