[mrtg] Trouble with MRTG 2.9.2

Seth D. Mattinen sethm at roller.reno.nv.us
Mon Oct 23 08:17:36 MEST 2000


(Sensitive information has been changed to '*' while preserving the general
format.)

The config file excerpts below were produced with no changes to the output
file, except for adding a proper WorkDir. They were created as:

bin/cfgmaker --descint --ifref=descr --output=etc/test.cfg ***$**@@***-****

Apparently MRTG 2.9.2 doesn't like SNMP community names with a @ in them, as
is being used in this router. It's producing this error:


Bareword "Serial1" not allowed while "strict subs" in use at (eval 11) line
1.
Global symbol "$**" requires explicit package name at (eval 11) line 1.
Array found where operator expected at (eval 11) line 1, at end of line
        (Missing operator before ?)
Bareword found where operator expected at (eval 11) line 1, near "@@***"
        (Missing operator before ***?)
Bareword "***" not allowed while "strict subs" in use at (eval 11) line 1.
ERROR: Target[@***-****_serial1_0] eval warning: syntax error at (eval 11)
line 1, near "0:"


Now, if you go in to the config file and comment out the first occurrence,
then it will start without errors. The community name being used is similar
to "public@". So it'll show up in the config file as "public@@router", and
needs to be changed to "public\@@router" to work.

The above problem sort of has a workaround, but this one doesn't. The
following problem is showing up a lot of times in the generated config
files:


### Interface 66 >> Descr: 'ATM2/0.17-atm subif' | Name: '' | Ip: '' | Eth:
'' ###
### The following interface is commented out because:
### * got 'Received SNMP response with error code
###       error status: noSuchName
###       index 1 (OID: 1.3.6.1.2.1.2.2.1.10.66)
###     SNMPv1_Session (remote host: "***-****" [***.***.**.***].161
###                       community: "***$**@"
###                      request ID: 181349994
###                     PDU bufsize: 8000 bytes
###                         timeout: 2s
###                         retries: 5
###                         backoff: 1)' from interface when trying to query
#
# Target[@***-****_ATM2_0.17-atm_subif]: \ATM2/0.17-atm\ subif:***$**@@
***-****
# MaxBytes[@***-****_ATM2_0.17-atm_subif]: 5088000
# Title[@ ***-****_ATM2_0.17-atm_subif]: ATM Sub Interface -- ***-****
# PageTop[@***-****_ATM2_0.17-atm_subif]: <H1>ATM Sub Interface --
***-****</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>***********</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>***************</TD></TR>
#    <TR><TD>Description:</TD><TD>ATM2/0.17-atm subif ****** </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ATM Sub Interface (***)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>5088.0 kBytes/s</TD></TR>
#  </TABLE>


If I uncomment those lines, it produces the SNMP error when attempting to
run. Neither of the above problems are present in MRTG 2.8.12, which is
currently in use the monitor the same equipment, including the same ATM sub
interface that 2.9.2 won't touch.

Any ideas or pointers?

--
Seth D. Mattinen  sethm at roller.reno.nv.us  http://roller.reno.nv.us/
PGP Key: http://seth.mattinen.org/pgp.php
Thou shalt not annoy. Thou shalt not be easily annoyed.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list