[mrtg] how to bgp count update?

amakusa amakusa at gmail.com
Wed Dec 26 06:18:57 CET 2007


Hi.
Christmas is a whisper entertain?
Using graphs mrtg bgp count trying to create a problem with the question.
I am very Clumsy English translator needs to be used. Awkward sentences
and patience, please.


1) MIB values that follows.
.1.3.6.1.2.1.15.3.1.10 bgpPeerInUpdates
.1.3.6.1.2.1.15.3.1.11 bgpPeerOutUpdates


2) Snmpwalk results.

[mrtg at hostname mrtg]$ snmpwalk -v 2c -c public 172.30.0.10
.1.3.6.1.2.1.15.3.1.10
SNMPv2-SMI::mib-2.15.3.1.10.172.30.0.10 = Counter32: 556
SNMPv2-SMI::mib-2.15.3.1.10.172.30.0.19 = Counter32: 1374
SNMPv2-SMI::mib-2.15.3.1.10.172.30.1.2 = Counter32: 45250
SNMPv2-SMI::mib-2.15.3.1.10.203.192.165.188 = Counter32: 1732890
SNMPv2-SMI::mib-2.15.3.1.10.203.248.249.146 = Counter32: 0
SNMPv2-SMI::mib-2.15.3.1.10.211.233.24.155 = Counter32: 6
SNMPv2-SMI::mib-2.15.3.1.10.211.233.55.54 = Counter32: 5
SNMPv2-SMI::mib-2.15.3.1.10.211.233.95.206 = Counter32: 181


3) Randomly created keonpigeuipnida (crude.)

[mrtg at hostname mrtg]$ cat /home/mrtg/cfg/test.cfg
LoadMIBs: /usr/share/snmp/mibs/BGP4-MIB.my
WorkDir: /data/rrd/pps/
PathAdd: /usr/local/rrdtool/bin
logformat:rrdtool
#Options[_]: bits,growright
Options[_]: gauge, nopercent, growright
Ysize[gw1]: 300
Ytics[gw1]: 15
RunAsDaemon:no
Interval:5
language: korean
Forks: 20
Target[gw1]:
1.3.6.1.2.1.15.3.1.10.1&1.1.3.6.1.2.1.15.3.1.11.1:public at 172.30.0.10:::::2
Directory[gw1]: gw1
MaxBytes[gw1]: 2000000
Title[gw1]: test1
PageTop[gw1]: <H1>BGP Count for gw1</H1>


4) Mrtg execution results

[mrtg at hostname mrtg]$ /usr/local/mrtg/bin/mrtg /home/mrtg/cfg/test.cfg
ERROR: Target[gw1][_IN_] ' $target->[0]{$mode} ' did not eval into
defined data
ERROR: Target[gw1][_OUT_] ' $target->[0]{$mode} ' did not eval into
defined data

5) Snmpwalk to run config files to the [Target] evaluated by the end of
the field, the same format that you need.
Multiline result is that values are run snmpwalk [Target], it should be
a plus?
If you need to know that the grammar.

Mrtg part of the Multi Target Syntax document read, but we were unable
to get an answer.

Help asking you a favor.



More information about the mrtg mailing list