[mrtg] OIDs query not working from mrtg but working from command line
Toto Capuccino
shoktai at gmail.com
Mon Jun 4 17:50:48 CEST 2007
Hi
I just installed mrtg and i am reading the doc.
I would like to create a graph of CPU utilization of Windows 2003 server.
I have a simple OID to query:
1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108
It works from the command line
snmpget -v 1 -c press at nyKey 10.2.1.3
1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108
SNMPv2-SMI::enterprises.9600.1.1.5.1.5.6.95.84.111.116.97.108 = Gauge32: 0
So i have started writing my cfg file
Target[10.2.1.3]:
1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108&1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108:press\@nyKey
@10.2.1.3
Title[10.2.1.3]: Cpu Utilzation for nlamssv03
MaxBytes[10.2.1.3]: 100
It doesn't work.
I get this error :
env LANG=C /usr/bin/mrtg test2.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.4.1.9600.1.1.5.6.95.84.111.116.97.108)
SNMPv1_Session (remote host: "10.2.1.3" [10.2.1.3].161)
community: "press at nyKey"
request ID: 1534273303
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for 1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108
1.3.6.1.4.1.9600.1.1.5.6.95.84.111.116.97.108 sysUptime sysName on
press at nyKey@10.2.1.3::::::v4only
at /usr/bin/mrtg line 2043
2007-06-04 17:12:59: ERROR: Target[10.2.1.3][_IN_] ' $target->[1]{$mode} '
did not eval into defined data
2007-06-04 17:12:59: ERROR: Target[10.2.1.3][_OUT_] ' $target->[1]{$mode} '
did not eval into defined data
I have also tried with another OIDs loading 2 MIBS
1.3.6.1.2.1.25.3.3.1.2.1
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.25.3.3.1.2.1)
SNMPv1_Session (remote host: "10.2.1.3" [10.2.1.3].161)
community: "press at nyKey"
request ID: 707258015
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.2.1.25.3.3.1.2.1 .1.3.6.1.2.1.25.3.3.1.2.1
sysUptime sysName on press at nyKey@10.2.1.3::::::v4only
at /usr/bin/mrtg line 2043
2007-06-04 17:16:10: ERROR: Target[10.2.1.3][_IN_] '( $target->[1]{$mode}
) \ 1' (warn): (Missing operator before \?)
2007-06-04 17:16:10: ERROR: Target[10.2.1.3][_OUT_] '( $target->[1]{$mode}
) \ 1' (warn): (Missing operator before \?)
Can you help?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070604/ad04d19a/attachment-0001.html
More information about the mrtg
mailing list