[mrtg] MRTG Graphs

Mohamed Sangey msangey at cats-net.com
Tue Dec 7 13:42:02 CET 2010


Dear Respected Friends,

 

We are really stuck, we need to create MRTG graphs from ET/BWMGR. Please
assist urgently.

 

http://www.etinc.com/index.php?page=bandwidth-manager-manual-v41.htm#snmp

SNMP and MRTG with ET/BWMGR 

The -stats function described above is the most efficient way to gather
statistical information for a rule, but the information cannot be exported
to be read by an SNMP manager such as MRTG. In order to be able to export
the statistical info to an SNMP gathering device, you must create an
interface associated with the rule that can be read by SNMP.

To create a statistical interface, use the "-statsdevice devname" syntax (or
add a stats device in the GUI). The interface name must be 8 characters or
less and end with a number. Suppose that you have a customer named General
Dynamics and their IP address is 178.35.1.8. You could create a statistical
interface with the following:

bwmgr em0 -addr 178.35.1.8 -statsdevice gendyn0

This would create the interface gendyn0 and store all of the traffic
information for this IP address crossing em0 into this interface. You could
then track/chart gendyn0 with an SNMP package such as MRTG.

Notes on SNMP 

Note that SNMP only reports interfaces that exist at the time that the SNMP
daemon is first run. This implies that interfaces created with the bwmgr
function must either be created BEFORE running snmpd or that you much kill
and restart SNMP after creating interfaces. Also note that sending a HUP
signal to SNMP does NOT cause it to recognize new interfaces.

Note that the ET/BWMGR only counts actual IP data (including the IP headers)
for its statistics. Ethernet interfaces include the ethernet header (14
bytes). While this is arguably correct for determining bandwidth used on the
LAN itself, the ethernet header is not tranmitted by a router so it should
not be included in router or internet related statistics. This discrepency
may be noticable when using MRTG to map both physical interface statistics
and also interface-specific statistics reported by ET/BWMGR. The numbers for
ET/BWMGR will be lower because they do not include the hardware header
counts.

Viewing Bandwidth Statistics 

You can alternatively view stats on the interface with the CLI using the
following syntax: 

bwmgr em0 stats [rule]

where rule is an optional parameter which can be either the rule name or
number. 

Changing the Statistical Period 

You can change the statistical period described above with the following
command:

bwmgr setperiod value

where value is the new period. So, to set the period to 1 minute, you would
use the following:

bwmgr setperiod 60

Note that the statistical period is the same as the burst period, so if you
are using bursting its likely that its more important to use a period to
conform to your bursting requirements than statistical viewing.

 

 

 Mohamed Sangey

 NOC Technical Engineer

logo

Support : (+255) 0653-635212 / 0754-986875

Mobile : (+255) 653 - 270002

Chatting: Skype - mohamedsangey

                 MSN - mohamedsangey at hotmail.com

                 Yahoo - mohdsangey at yahoo.com

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20101207/56154276/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2093 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20101207/56154276/attachment-0001.gif 


More information about the mrtg mailing list