MRTG Must have 2 counters in order to generate a graph, even if you only want to graph one value. Try this:
Target[[target]-disk-c]: .1.3.6.1.4.1.311.1.1.3.1.1.6.1.3&.1.3.6.1.4.1.311.1.1.3.1.1.6.1.3:[EMAIL PROTECTED] rget] Also, in your options like you have NOO and NOI, saying you don't want to graph the input value (the 1st one) or the output value (the second one). Remove one of them, along with using the above target. Options[[target]-disk-c]: gauge,nopercent,noo That should do it I think, since GetIf proves that the server is responding to that OID, there doesn't seem to be an issue with SNMP on that device. HTH Eric Brander ACS Texas CHIP Account Sr. Communications Engineer - Information Systems Department 512.336.3331 Eric dot Brander at acs-inc dot com -----Original Message----- From: Chris Longton [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: [mrtg] SNMPGET error when trying to monitor Windows 2000 logical free di sk space Please help if you can I am trying to configure MRTG to monitor Logical Disk Free space on a Windows 2000 Server. I have downloaded Getif to walk my SNMP Mib files. This has given a Oid value of: .1.3.6.1.4.1.311.1.1.3.1.1.6.1.3 logdskFreeMegabytes I have entered this value into my MRTG.cfg file with the syntax that was suggested on a on the Web. Mrtg.cfg #################################################################### # MRTG CONFIG FILE - SERVER HARD DRIVE # Disk Space Remaining (MB) #################################################################### # # # #################################################################### # Search/Replace 127.0.0.1 with your IP Address # Search/Replace [target] with ServerName # Rename your logo to headerlogo.png and place in WorkDir #################################################################### WorkDir: c:\www\mrtg # IconDir: /images/ - local #ThreshDir: /NET-SONAR/thresholds #IconDir: /images/ Title[^]: Disk Statistics on system [target]: # ---------------------------------------------------------------------------- ------------- PageTop[[target]-disk-c]: <div align="center"><center> <table border="1" width="98%" height="87"> <tr> <td width="14%" height="52"><p align="center"><font face="Arial"><small><img src="headerlogo.png" alt="Header Logo" align="absmiddle" width="120" height="60"></small></font></td> <td width="76%" height="52"><p align="center"><strong><font face="Arial"><big>Free Space (MB) on Drive C: on [target]</big></font></strong></td> <td width="14%" height="52"><strong><big><p align="center"></big></strong><font face="Arial"><small><img src="headerlogo.png" alt="Header Logo" align="absmiddle" width="120" height="60"></small></font></td> </tr> <tr> <td width="13%" bgcolor="#008000"><p align="center"><input TYPE="button" VALUE="< Back " onClick="history.back()"></td> <td width="73%" bgcolor="#008000"><strong><font face="Verdana"><p align="center"></font><font color="#FFFF00" size="3" face="Verdana">WTCS Network Monitoring System</font><font face="Verdana"> </font></strong></td> <td width="14%" bgcolor="#008000"><p align="center"><input TYPE="button" VALUE=" Ahead > " onClick="history.forward()"></td> </tr> </table> <H5><font face="Arial">Capacity = 4GB, Alert Threshold = 1GB!</H5> </center></div> <P>First Partition of Single 30GB EIDE Ultra DMA 100 Seagate.</P> Background[[target]-disk-c]: #9090909 Target[[target]-disk-c]: .1.3.6.1.4.1.311.1.1.3.1.1.6.1.3:[EMAIL PROTECTED] #ThreshDesc[[target]-disk-c]: Remaining Disk (C:) Space (MBytes) on System: [target] SetEnv[[target]-disk-c]: STATURL="http://xxx.xxx.xxx.xxx/stats/servers/[target]/disk/[target]-disk-c. html" CUSTNAME="SNMP4TPC" MaxBytes[[target]-disk-c]: 4000 kMG[[target]-disk-c]: M,G Title[[target]-disk-c]: DISK Free on C: Options[[target]-disk-c]: gauge,nopercent,noo,noi Unscaled[[target]-disk-c]: dwmy # Supress[[target]-disk-c]: dwmy XSize[[target]-disk-c]: 380 YSize[[target]-disk-c]: 100 YLegend[[target]-disk-c]: DISK FREE SPACE (C) ShortLegend[[target]-disk-c] : MB Legend1[[target]-disk-c]: Disk Space Available Available in Bytes Legend2[[target]-disk-c]: Legend3[[target]-disk-c]: # Legend4[[target]-disk-c]: LegendI[[target]-disk-c]: Free:  LegendO[[target]-disk-c]: # Use ThreshMinI for minimum threshold breach notification # i.e. if under ThreshMinI, then threshunder.bat will run #ThreshMinI[[target]-disk-c]: 1000 #ThreshProgI[[target]-disk-c]: d:\NET-SONAR\thresholds\threshunder.bat #ThreshProgOKI[[target]-disk-c]: d:\NET-SONAR\thresholds\threshok.bat # Use ThreshMaxO for maximum threshold breach notification # i.e. if over ThreshMaxO, then threshover.bat will run # ThreshMaxO[[target]-disk-c]: 4000 # ThreshProgO[[target]-disk-c]: d:\NET-SONAR\thresholds\threshover.bat undertaken a process which copied a perfmon.dll and perfmon.ini to my winnt\system32 directory and also run regedit program which made the following registry edits: \Registry\Machine Software Microsoft PerformanceAgent CurrentVersion Pathname = REG_EXPAND_SZ %SystemRoot%\System32\perfmib.dll System CurrentControlSet Services SNMP Parameters ExtensionAgents MicrosoftPerformanceAgent = SOFTWARE\Microsoft\PerformanceAgent\CurrentVersion However I am still getting the following error: C:\mrtg\bin>c:\perl\bin\perl.exe mrtg mrtg.cfg SNMP Error: Received SNMP response with error code error status: noSuchName index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3) SNMPv1_Session (remote host: "192.110.2.204" [192.110.2.204].161) community: "public" request ID: -819300545 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 458 SNMPGET Problem for ifInOctets.3 ifOutOctets.3 sysUptime sysName on [EMAIL PROTECTED] at mrtg line 1607 WARNING: skipping because at least the query for ifInOctets.3 on 192.110.2.204 did not succeed ERROR: Target[192.110.2.204-disk-c][_IN_] '.1.3.6.1.4.1.311.1.1.3.1.1.6.1. $$target[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 6) line 1. ERROR: Target[192.110.2.204-disk-c][_OUT_] '.1.3.6.1.4.1.311.1.1.3.1.1.6.1. $$target[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 7) line 1. WARNING: Skipping Update of 192.110.2.204-disk-c, inlast is not defined WARNING: Skipping Update of 192.110.2.204-disk-c, outlast is not defined C:\mrtg\bin> I am still relatively inexperienced with MRTG although I have got it running monitoring all the routers in our organisation I keep reading something about an RRDtool. Would this help me or is this something else. I have tried to find the answer to this on the Internet but as yet I am struggling. Hope someone can help as it is driving me round the bend! Cheers Chris Chris Longton Senior Network Development Analyst Tel. 01925 294015 Mob. 07764 933184 IT Services Team: "It is our goal to provide exceptional customer service from an exceptional team using exceptional web applications running on an exceptional network." This email is intended solely for the addressee, is confidential and may be legally privileged. If you believe you received it in error, please delete it and notify the sender. Unless clearly stated to the contrary, any views or opinions expressed are solely those of the author and do not necessarily represent those of any of the subsidiaries or divisions of Nichols plc. Whilst every care is taken to avoid the transmission of viruses it is the responsibility of the addressee to check this communication for viruses. -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
