Using mrtg to monitor cable modem utilization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[first time went without a subject somehow...]

Hi,

Anyone still using mrtg these days? I'm trying to set up mrtg on my
fedora25 system connected to a cable modem (35Mbit up, 5Mbit down) on
one side and a gigabit ethernet on the other and can't figure out how
to reflect that in the config file.

Maybe you have an idea for monitoring utilization using another method?

I'm trying to set it up to determine utilization, so it's important to
define the upper bound for both upload and download. Is this possible?
If I recall, isn't there a way to define input max and output max?

I've run the following cfgmaker command:

# cfgmaker --ifref=descr --ifdesc=alias -zero-speed=5000000
mysnmppass@xxxxxxxxxxxxxxxxx

Here is the ifconfig output for my system. I've also included the
generated cfgmaker output (with 'example' as my domain) below. I don't
understand why it's defined eth0 and eth1 as 125MBit when it's
connected to a bridge on a gigabit network, and why it's chosen
625kbit for br0 when I've tried to define it as 5Mbit.

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 68.111.193.42  netmask 255.255.255.248  broadcast 68.111.193.47
        inet6 fe80::ec4:7aff:fea9:18de  prefixlen 64  scopeid 0x20<link>
        ether 0c:c4:7a:a9:18:de  txqueuelen 1000  (Ethernet)
        RX packets 5891321629  bytes 2564661840218 (2.3 TiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3670532823  bytes 22827372375556 (20.7 TiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 68.111.193.44  netmask 255.255.255.248  broadcast 68.111.193.47
        ether 0c:c4:7a:a9:18:de  txqueuelen 1000  (Ethernet)

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 0c:c4:7a:a9:18:de  txqueuelen 1000  (Ethernet)
        RX packets 6303244831  bytes 2755299573703 (2.5 TiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18098110833  bytes 24060466118480 (21.8 TiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xfb120000-fb13ffff

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.1  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::ec4:7aff:fea9:18df  prefixlen 64  scopeid 0x20<link>
        ether 0c:c4:7a:a9:18:df  txqueuelen 1000  (Ethernet)
        RX packets 22104249713  bytes 13271044125506 (12.0 TiB)
        RX errors 0  dropped 0  overruns 44  frame 0
        TX packets 16730830652  bytes 3413227489426 (3.1 TiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xfb100000-fb11ffff

eth1:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 0c:c4:7a:a9:18:df  txqueuelen 1000  (Ethernet)
        device memory 0xfb100000-fb11ffff

eth1:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.100  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 0c:c4:7a:a9:18:df  txqueuelen 1000  (Ethernet)
        device memory 0xfb100000-fb11ffff

eth1:2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.6.1  netmask 255.255.255.0  broadcast 192.168.6.255
        ether 0c:c4:7a:a9:18:df  txqueuelen 1000  (Ethernet)
        device memory 0xfb100000-fb11ffff

eth1:3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.101  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 0c:c4:7a:a9:18:df  txqueuelen 1000  (Ethernet)
        device memory 0xfb100000-fb11ffff

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 55198240  bytes 9250184967 (8.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55198240  bytes 9250184967 (8.6 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:63:b9:2a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc54:ff:fe35:dd67  prefixlen 64  scopeid 0x20<link>
        ether fe:54:00:35:dd:67  txqueuelen 1000  (Ethernet)
        RX packets 174594324  bytes 160713095174 (149.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 200965168  bytes 104887504535 (97.6 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc54:ff:fe35:dd66  prefixlen 64  scopeid 0x20<link>
        ether fe:54:00:35:dd:66  txqueuelen 1000  (Ethernet)
        RX packets 16552006  bytes 139318192739 (129.7 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 30615686  bytes 3092083364 (2.8 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Here is the mrtg.cfg with the disabled interfaces and unnecessary HTML
removed. I've also included the cfgmaker snmp info below.

EnableIPv6: no
Target[orion.example.com_eth0]: \eth0:mysnmppass@xxxxxxxxxxxxxxxxx:
SetEnv[orion.example.com_eth0]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="eth0"
MaxBytes[orion.example.com_eth0]: 125000000
Title[orion.example.com_eth0]: eth0 -- orion.inside.example.com
PageTop[orion.example.com_eth0]: <h1>eth0 -- orion.inside.example.com</h1>

Target[orion.example.com_eth1]: \eth1:mysnmppass@xxxxxxxxxxxxxxxxx:
SetEnv[orion.example.com_eth1]: MRTG_INT_IP="192.168.6.1" MRTG_INT_DESCR="eth1"
MaxBytes[orion.example.com_eth1]: 125000000
Title[orion.example.com_eth1]: eth1 -- orion.inside.example.com
PageTop[orion.example.com_eth1]: <h1>eth1 -- orion.inside.example.com</h1>

Target[orion.example.com_br0]: \br0:mysnmppass@xxxxxxxxxxxxxxxxx:
SetEnv[orion.example.com_br0]: MRTG_INT_IP="68.111.193.42" MRTG_INT_DESCR="br0"
MaxBytes[orion.example.com_br0]: 625000
Title[orion.example.com_br0]: br0 -- orion.inside.example.com
PageTop[orion.example.com_br0]: <h1>br0 -- orion.inside.example.com</h1>

Target[orion.example.com_vnet0]: \vnet0:mysnmppass@xxxxxxxxxxxxxxxxx:
SetEnv[orion.example.com_vnet0]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="vnet0"
MaxBytes[orion.example.com_vnet0]: 1250000
Title[orion.example.com_vnet0]: vnet0 -- orion.inside.example.com
PageTop[orion.example.com_vnet0]: <h1>vnet0 -- orion.inside.example.com</h1>

Target[orion.example.com_vnet1]: \vnet1:mysnmppass@xxxxxxxxxxxxxxxxx:
SetEnv[orion.example.com_vnet1]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="vnet1"
MaxBytes[orion.example.com_vnet1]: 1250000
Title[orion.example.com_vnet1]: vnet1 -- orion.inside.example.com
PageTop[orion.example.com_vnet1]: <h1>vnet1 -- orion.inside.example.com</h1>

--base: Get Device Info on mysnmppass@xxxxxxxxxxxxxxxxx:
--base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.8072.3.2.10
--base: Populating confcache
--base: Get Interface Info
--base: Walking ifIndex
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifIndex = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifIndex = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifIndex = 3
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifIndex = 4
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifIndex = 5
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifIndex = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifIndex = 7
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifIndex = 8
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifIndex = 9
--base: Walking ifType
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifType = 24
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifType = 131
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifType = 6
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifType = 6
--base: Walking ifAdminStatus
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifAdminStatus = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifAdminStatus = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifAdminStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifAdminStatus = 1
--base: Walking ifOperStatus
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifOperStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifOperStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifOperStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifOperStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifOperStatus = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifOperStatus = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifOperStatus = 2
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifOperStatus = 1
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifOperStatus = 1
--base: Walking ifMtu
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifMtu = 65536
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifMtu = 1332
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifMtu = 1500
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifMtu = 1500
--base: Walking ifSpeed
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 1 -> ifSpeed = 10000000
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 2 -> ifSpeed = 1000000000
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 3 -> ifSpeed = 1000000000
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 4 -> ifSpeed = 0
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 5 -> ifSpeed = 0
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 6 -> ifSpeed = 0
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 7 -> ifSpeed = 10000000
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 8 -> ifSpeed = 10000000
--snpd:   mysnmppass@xxxxxxxxxxxxxxxxx: -> 9 -> ifSpeed = 10000000
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux