thanks to Steve and *Lyle Giese firstly .* ** *re-state my issue :* ** My cfg file : ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RunAsDaemon: yes Interval: 5 WorkDir: C:\Inetpub\wwwroot\PDSN Options[_]: growright, bits, nopercent # Para calculo, cada 64Kbps = 8000 EnableIPv6: no
# to get bits instead of bytes and graphs growing to the right Options[_]: growright, nopercent, gauge, unknaszero EnableIPv6: no LoadMibs: c:\mrtg\ZTE-CN-PDSN-PMIRP-MIB ###################################################################### # System: # Description: # Contact: # Location: ###################################################################### Target[PDSN]: 1.3.6.1.4.1.3902.7.222.3.5.1.3.1&1.3.6.1.4.1.3902.7.222.3.5.1.3.1:[email protected]: ::::2 ShortLegend[PDSN]:users YLegend[PDSN]:users MaxBytes[PDSN]: 15000 Title[PDSN]: ZTE PDSN PageTop[PDSN]: <h1>Usuarios Cunene</h1> ** ** ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// after i run the command : perl mrtg PDSN.cfg ------------------------------------------------------------------------------------------------------------------------ ** C:\mrtg\bin>perl mrtg PDSN.cfg Daemonizing MRTG ... Do Not close this window. Or MRTG will die SNMP Error: Received SNMP response with error code error status: 19 index 3 (OID: 1.3.6.1.2.1.1.3.0) SNMPv2c_Session (remote host: "10.2.0.100" [10.2.0.100].161) community: "MVCSNMP_MNG_RO" request ID: 1604618615 PDU bufsize: 8000 bytes timeout: 2s retries: 5 backoff: 1) at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492 SNMPGET Problem for 1.3.6.1.4.1.3902.7.222.3.5.1.3.1 1.3.6.1.4.1.3902.7.222.3.5. 1.3.1 sysUptime sysName on [email protected]:::::2:v4only at mrtg line 2202 2010-10-05 09:38:14: ERROR: Target[pdsn][_IN_] ' $target->[0]{$mode} ' did not e val into defined data 2010-10-05 09:38:14: ERROR: Target[pdsn][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data 2010-10-05 09:38:14, Rateup WARNING: C:/mrtg/bin\rateup could not read the prima ry log file for pdsn 2010-10-05 09:38:14, Rateup WARNING: C:/mrtg/bin\rateup The backup log file for pdsn was invalid as well 2010-10-05 09:38:14, Rateup WARNING: C:/mrtg/bin\rateup Can't remove pdsn.old up dating log file 2010-10-05 09:38:14, Rateup WARNING: C:/mrtg/bin\rateup Can't rename pdsn.log to pdsn.old updating log file Terminating on signal SIGINT(2) ** ------------------------------------------------------------------------------------------------------------------------ a. when i used another snmp application , i found that when i used 'get- next' , it was ok . when i used 'get' , it gave me Generic Error for this OID . b. after i captured the snmp packets , i found that : 1. there was snmp error ,Snmp error Status: Unkown (19) , Error Index :3 . 2. after i run the perl mrtg cfg , from the captured packets, * 192.168.4.40 (mrtg server)-----> 10.2.0.100 (target server)* SNMP : Version:2C(1) Community : MVCSNMP_MNG_RO PDU type: GET (0) Request ID: 0x5fa48977 Error Status: No Error (0) Error Index: 0 Object identifier 1: 1.3.6.1.4.1.3902.7.222.3.5.1.3.1 Value: Null Object identifier 2: 1.3.6.1.4.1.3902.7.222.3.5.1.3.1 Value: Null Object identifier 3: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysuptime.0) Value: Null Object identifier 4: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysuptime.0) Value: Null * 10.2.0.100 ---> 192.168.4.40* ** SNMP : Version:2C(1) Community : MVCSNMP_MNG_RO PDU type: Response (0) Request ID: 0x5fa48977 Error Status: Unknow (19) Error Index: 3 Object identifier 1: 1.3.6.1.4.1.3902.7.222.3.5.1.3.1 Value: 5135 Object identifier 2: 1.3.6.1.4.1.3902.7.222.3.5.1.3.1 Value: 5135 Object identifier 3: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysuptime.0) Value: NOSUCHOBJECT Object identifier 4: 1.3.6.1.2.1.1.3.0 (SNMPv2-MIB::sysuptime.0) Value: NOSUCHOBJECT this is what i did . many thanks. 2010/9/16 Steve Shipway <[email protected]> > Try adding a .0 suffix to the OIDs? This can often solve the issue as > some programs suppress this on display. > > The MRTG error is saying that it is unable to retrieve the OID, and the > 'undefined data' message is because the value is now undefined because it > could not be retrieved. > > Steve > > *Steve Shipway* > University of Auckland ITS > *UNIX Systems Design Lead* > [email protected] > Ph: +64 9 373 7599 ext 86487 > ** > ------------------------------ > *From:* xia binhui [[email protected]] > *Sent:* Thursday, 16 September 2010 9:19 p.m. > *To:* Steve Shipway; [email protected] > *Subject:* Re: [mrtg] customize OID problem > > 10.2.0.100 is window 2003 server , and there is one applicaiton that > enable snmp-agent . > > i can use other MIB Browser application to get the information using the > same OID , > > so OID is correct and snmp version is correct , i think . > > if is it possible that the target name is wrong because of snmp-agent ? > > the error is : "ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode} ' > did not eval into defined data " > > and what does it mean about defined data , where i can find the defined > data ? > > waiting ... > > thanks . > > > > > >
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
