[mrtg] Unknown SNMP var ?

Camille Bégnis camille at neodoc.biz
Wed Nov 22 10:56:53 MET 2006


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

I had installed a MRTG on a Mandriva server more than a year ago, and
all went well. I tried recently with the exact same configuration on a
new server, and I miserably failed so I'm afraid I need your assistance.

I have written a minimal /var/www/html/mrtg/mrtg.cfg (below) and when I
run mrtg I get:

- ------------------------------------------------------------------------
# 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


I'm stuck. Any hint welcome.

Have a nice day,

Camille.



- ------------------------------------------------------------------------
### 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

iD8DBQFFZB7ljv9P65BfOUMRAgo4AJ9Ny58mbzMXQW44fIQci9A9HEEVQQCfbNU6
UiUo/giTWaG/m13kv6YNfqM=
=fcd7
-----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/03-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