[mrtg] how to bgp count update?

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

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.
. bgpPeerInUpdates
. bgpPeerOutUpdates

2) Snmpwalk results.

[mrtg at hostname mrtg]$ snmpwalk -v 2c -c public
SNMPv2-SMI::mib- = Counter32: 556
SNMPv2-SMI::mib- = Counter32: 1374
SNMPv2-SMI::mib- = Counter32: 45250
SNMPv2-SMI::mib- = Counter32: 1732890
SNMPv2-SMI::mib- = Counter32: 0
SNMPv2-SMI::mib- = Counter32: 6
SNMPv2-SMI::mib- = Counter32: 5
SNMPv2-SMI::mib- = 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
#Options[_]: bits,growright
Options[_]: gauge, nopercent, growright
Ysize[gw1]: 300
Ytics[gw1]: 15
language: korean
Forks: 20
Target[gw1]: at
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