Ok guys, thats a help, i managed to get rid of all errors but still i dont retrive values for OIDs. Here is 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:[EMAIL PROTECTED] @10.2.1.3:::::1 Title[10.2.1.3]: Cpu Utilzation for nla03 MaxBytes[10.2.1.3]: 100 AbsMax[10.2.1.3]: 100 PageTop[10.2.1.3]: CPU Utilization <h1>Cpu Utilization for Server</h1> Options[10.2.1.3]: gauge,growright,nopercent, noo YLegend[10.2.1.3]: CPU Utilization ShortLegend[10.2.1.3]: % LegendI[10.2.1.3]: CPU Utilization (percentage) 
SingleRequest: Yes NoMib2: Yes LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt ,/usr/share/snmp/mibs/TCP-MIB.txt Workdir: /var/www/rem-servers I have tried OID supplied by Bob with no luck. When i run mrtg i dont get any error but if on the monitored server i increase cpu utilization it is not showing up on the graph.
From the command line everything works fine though:
snmpget -v 1 -c [EMAIL PROTECTED] 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: 9 snmpget -v 1 -c [EMAIL PROTECTED] 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: 33 I have ran mrtg with logging option and get : can't locate Socket6.pm in @INC 2007-06-04 19:41:54 -- Can't locate Socket6.pm in @INC (@INC contains: /usr/bin/../lib/mrtg2 /usr/bin /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl5/SNMP_Session.pm line 138. Any ideas? Thanks. 2007/6/4, Bob Grabbe <[EMAIL PROTECTED]>:
This is the paragraph I'm using, it does work on Server 2003. There is a difference in the oid's for 2000 and 2003, I think. I do see a difference between your oid and mine. I don't know if that's it, though. Target[Server-cpu]:.1.3.6.1.4.1.311.1.1.3.1.1.33.9.0&.1.3.6.1.4.1.311.1.1.3.1.1.33.9.0: [EMAIL PROTECTED] AbsMax[Server-cpu]: 100 MaxBytes[Server-cpu]: 100 Title[Server-cpu]: CPU Utilization (average) PageTop[Server-cpu]: CPU Utilization <h1>Cpu Utilization for Server</h1> Options[Server-cpu]: gauge,growright,nopercent, noo YLegend[Server-cpu]: CPU Utilization ShortLegend[Server-cpu]: % LegendI[Server-cpu]: CPU Utilization (percentage)  Bob Grabbe Michigan Proteome Consortium University of Michigan [EMAIL PROTECTED] _____________________________________________________________ If we knew what we were doing, it wouldn't be called research, would it ? --Albert Einstien *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Toto Capuccino *Sent:* Monday, June 04, 2007 11:51 AM *To:* [email protected] *Subject:* [mrtg] OIDs query not working from mrtg but working from command line 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 [EMAIL PROTECTED] 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:[EMAIL PROTECTED] @ 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: "[EMAIL PROTECTED]" 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 [EMAIL PROTECTED]@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: "[EMAIL PROTECTED]" 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 [EMAIL PROTECTED]@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
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
