|
List Info
Thread: SNMP communication problem
|
|
| SNMP communication problem |

|
2006-12-07 17:26:38 |
-----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 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 localhost
RouterUptime[localhost.cpu]: public 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 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
iD8DBQFFeE7Njv9P65BfOUMRAuV1AJ9t4jRYOswkW7E9Y4sb6jd417EolACg
n44s
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 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
|
|
| SNMP communication problem |

|
2006-12-07 22:28:08 |
On Thu, 2006-12-07 at 18:26 +0100, Camille Bégnis wrote:
> To sumup: ssCpuRawUser.0 can get queried OK through
snmpget but results
> in an error when used inside mrtg. You'll find details
below.
> debug log:
> -
------------------------------------------------------------
-
> - - --snpo: SNMPGet from public 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
ssCpuRawUser.0 is not an OID known to mrtg. You will need
to use
LoadMibs:
with the name of the mib file that defines ssCpuRawUser
--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.c
om
--
Unsubscribe mailto:mrtg-request 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
|
|
| SNMP communication problem |

|
2006-12-08 07:43:01 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel J McDonald a écrit :
> On Thu, 2006-12-07 at 18:26 +0100, Camille Bégnis
wrote:
>
>> To sumup: ssCpuRawUser.0 can get queried OK through
snmpget but results
>> in an error when used inside mrtg. You'll find
details below.
>
>> debug log:
>> -
------------------------------------------------------------
-
>> - - --snpo: SNMPGet from public 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
>
> ssCpuRawUser.0 is not an OID known to mrtg. You will
need to use
> LoadMibs:
> with the name of the mib file that defines ssCpuRawUser
Yes I did that:
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
(The full config is in my initial message)
I checked the file is readable and actually contains the
OID:
# grep ssCpuRawUser /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
ssCpuRawUser OBJECT-TYPE
I'm really lost...
Camille.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFFeReFjv9P65BfOUMRApKGAJ4s5taRnUhwxAOBK3/LuanXd1EL/gCg
oZVN
siR/6xoyXCDHXoLWZNZ1VtA=
=+J6z
-----END PGP SIGNATURE-----
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Size: 488 bytes
-- URL : http://lists
.ee.ethz.ch/p/06-camille.vcf
--
Unsubscribe mailto:mrtg-request 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
|
|
| SNMP communication problem |

|
2006-12-08 12:50:47 |
On Fri, 2006-12-08 at 08:43 +0100, Camille Bégnis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Daniel J McDonald a écrit :
> > On Thu, 2006-12-07 at 18:26 +0100, Camille Bégnis
wrote:
> >> Unknown SNMP var ssCpuRawIdle.0
> >> at /usr/bin/mrtg line 2035
> >
> > ssCpuRawUser.0 is not an OID known to mrtg. You
will need to use
> > LoadMibs:
> > with the name of the mib file that defines
ssCpuRawUser
>
> Yes I did that:
> LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
>
> (The full config is in my initial message)
>
> I checked the file is readable and actually contains
the OID:
>
> # grep ssCpuRawUser
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
> ssCpuRawUser OBJECT-TYPE
>
>
> I'm really lost...
UCD-SNMP-MIB has two imports:
IMPORTS
OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY,
Integer32, Opaque, enterprises, Counter32
FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString, TruthValue
FROM SNMPv2-TC;
You may want to try importing those two files. Import them
before the
mib you want to use. The perl snmp_utils module does not
follow import
references for you, unlike the net-snmp tools written in C.
I've never needed to include those two files, but I almost
always have
to include the CISCO-SMI and CISCO-TC mibs...
--
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
Austin Energy
http://www.austinenergy.c
om
--
Unsubscribe mailto:mrtg-request 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
|
|
| SNMP communication problem |

|
2006-12-08 14:01:38 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Daniel,
Thanks for your answer, I tried two possibilities:
LoadMIBs:
/usr/share/snmp/mibs/SNMPv2-SMI.txt,/usr/share/snmp/mibs/SNM
Pv2-TC.txt,/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
LoadMIBs:
/usr/share/snmp/mibs/SNMPv2-SMI.txt,/usr/share/snmp/mibs/SNM
Pv2-TC.txt
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
To no avail...
Camille.
Daniel J McDonald a écrit :
> On Fri, 2006-12-08 at 08:43 +0100, Camille Bégnis
wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Daniel J McDonald a écrit :
>>> On Thu, 2006-12-07 at 18:26 +0100, Camille
Bégnis wrote:
>
>>>> Unknown SNMP var ssCpuRawIdle.0
>>>> at /usr/bin/mrtg line 2035
>>> ssCpuRawUser.0 is not an OID known to mrtg.
You will need to use
>>> LoadMibs:
>>> with the name of the mib file that defines
ssCpuRawUser
>> Yes I did that:
>> LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
>>
>> (The full config is in my initial message)
>>
>> I checked the file is readable and actually
contains the OID:
>>
>> # grep ssCpuRawUser
/usr/share/snmp/mibs/UCD-SNMP-MIB.txt
>> ssCpuRawUser OBJECT-TYPE
>>
>>
>> I'm really lost...
>
> UCD-SNMP-MIB has two imports:
> IMPORTS
> OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY,
> Integer32, Opaque, enterprises, Counter32
> FROM SNMPv2-SMI
>
> TEXTUAL-CONVENTION, DisplayString, TruthValue
> FROM SNMPv2-TC;
>
>
> You may want to try importing those two files. Import
them before the
> mib you want to use. The perl snmp_utils module does
not follow import
> references for you, unlike the net-snmp tools written
in C.
>
> I've never needed to include those two files, but I
almost always have
> to include the CISCO-SMI and CISCO-TC mibs...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org
iD8DBQFFeXBCjv9P65BfOUMRAi+cAJ9sPXHsKmgQbZ/c9HGa2ADFJfGt2ACg
jGef
lAuJZ2aqJDjw+ANZ/qV3sVo=
=RBoB
-----END PGP SIGNATURE-----
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Size: 488 bytes
-- URL : http://lists
.ee.ethz.ch/p/07-camille.vcf
--
Unsubscribe mailto:mrtg-request 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
|
|
[1-5]
|
|