[mrtg] Re: Unknown SNMP var ?
Camille Bégnis
camille at neodoc.biz
Fri Nov 24 16:45:12 MET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
thanks for your answer.
Options, as I understand them are used to modify the appearance of the
graph, and do not influence the SNMP communication.
I tried following your advice, but without result I fear.
Using the debug options clearly shows the SNMP communication doesn't work:
- --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'
Thanks for your help,
Camille.
Syed Waqqas Ahmed a écrit :
> Camille,
>
> The issue is that you havent mentioned the Options correctly.. for cpu
> load and users u have to mention the gauge in options and same goes for
> the time...
>
> so check the Options attribute .. you can mention Options for each
> target sepeartly ..
>
> Hope it will help u out
>
> Regards,
>
> Waqqas
>
> */Camille Bégnis <camille at neodoc.biz>/* wrote:
>
> 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]:
>
>
> User CPU Load %
>
>
> 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]:
>
>
> Established TCP Connections
>
>
> 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
> -
> ------------------------------------------------------------------------
- -- 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
> Send instant messages to your online friends http://uk.messenger.yahoo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFFZxOHjv9P65BfOUMRAltGAKCXb+Cg265WYYba5+p8vwsYPnxQKQCgqxor
59+Hh7txcu7YShbma8yXgqw=
=nwHZ
-----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/04-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