[mrtg] SNMP communication problem

Camille Bégnis camille at neodoc.biz
Thu Dec 7 18:26:38 MET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,

sorry to bother you again with that but I can't get ti sorted.

To sumup: ssCpuRawUser.0 can get queried OK through snmpget but results
in an error when used inside mrtg. You'll find details below.

Thanks,

Camille.

P.S. Congrats for the award!



debug log:
- -------------------------------------------------------------
- - --snpo: SNMPGet from public at localhost --
ssCpuRawUser.0,ssCpuRawIdle.0,sysUptime,sysName
Unknown SNMP var ssCpuRawUser.0
 at /usr/bin/mrtg line 2035
Unknown SNMP var ssCpuRawIdle.0
 at /usr/bin/mrtg line 2035
- - --snpo: SNMPfound -- '2 days, 23:32:01', 'Neruda.calenco.com', 'undef',
'undef'
- -------------------------------------------------------------



- ------------------------------------------------------------------------
# env LANG=C /usr/bin/mrtg /var/www/html/mrtg/mrtg.cfg
Unknown SNMP var ssCpuRawUser.0
 at /usr/bin/mrtg line 2035
Unknown SNMP var ssCpuRawIdle.0
 at /usr/bin/mrtg line 2035
Wednesday, 22 November 2006 at 10:51: WARNING: Expected a number but got
'17:53:58'
Wednesday, 22 November 2006 at 10:51: WARNING: Expected a number but got
'Neruda.calenco.com'
Wednesday, 22 November 2006 at 10:51: ERROR: Target[localhost.cpu][_IN_]
' $target->[0]{$mode} ' did not eval into defined data
Wednesday, 22 November 2006 at 10:51: ERROR:
Target[localhost.cpu][_OUT_] ' $target->[0]{$mode} ' did not eval into
defined data
- - ------------------------------------------------------------------------

However:
 * the Target[server.estabcons] graphics are generated OK

 * I checked: # ll /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
- - -rw-r--r-- 1 root root 35242 Aug 15 21:51
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
# grep ssCpuRawUser /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
ssCpuRawUser OBJECT-TYPE

 * I checked: $ snmpget -v1 -c public localhost ssCpuRawUser.0
UCD-SNMP-MIB::ssCpuRawUser.0 967624


- - ------------------------------------------------------------------------
### Global Config Options

LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
WorkDir: /var/www/html/mrtg

### Global Defaults

EnableIPv6: no

Target[localhost.cpu]: ssCpuRawUser.0&ssCpuRawIdle.0:public at localhost
RouterUptime[localhost.cpu]: public at 127.0.0.1
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: CPU LOAD
PageTop[localhost.cpu]: <H1>User CPU Load %</H1>
Unscaled[localhost.cpu]: ymwd
ShortLegend[localhost.cpu]: %
YLegend[localhost.cpu]: CPU Utilization
Legend1[localhost.cpu]: User CPU in % (Load)
Legend2[localhost.cpu]: Idle CPU in % (Load)
#Legend3[localhost.cpu]:
#Legend4[localhost.cpu]:
LegendI[localhost.cpu]: User
LegendO[localhost.cpu]: Idle
Options[localhost.cpu]: growright,nopercent

# Established TCP Connections

Target[server.estabcons]: tcpCurrEstab.0&tcpCurrEstab.0:public at localhost
Title[server.estabcons]: Currently Established TCP Connections
PageTop[server.estabcons]: <H1>Established TCP Connections</H1>
MaxBytes[server.estabcons]: 10000000000
ShortLegend[server.estabcons]:
YLegend[server.estabcons]: Connections
LegendI[server.estabcons]: In
LegendO[server.estabcons]:
Legend1[server.estabcons]: Established connections
Legend2[server.estabcons]:
Options[server.estabcons]: growright,nopercent,gauge
- - ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFFeE7Njv9P65BfOUMRAuV1AJ9t4jRYOswkW7E9Y4sb6jd417EolACgn44s
pWXkjPq1BC4k/g6An3xwG6U=
=hvgm
-----END PGP SIGNATURE-----


-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Size: 473 bytes
-- URL : http://lists.ee.ethz.ch/p/05-camille.vcf


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



More information about the mrtg mailing list