[mrtg] customize OID problem

xia binhui cz.binhui at gmail.com
Thu Sep 16 10:30:11 CEST 2010


is there any one can help me  ?

thanks




2010/9/10 xia binhui <cz.binhui at gmail.com>

> thanks to Steve Shipway .
>
> On your MRTG server, you say you can use a mibbrowse utility?
> ----------   yes , there is response from 10.2.0.100 .
>
> but i found that the OID is not correct , because after i analyzed the
> packet between MRTG server and 10.2.0.100 server ,  the value about this OID
> is NULL .
>
> after i changed the OID ,  the value is not NULL from "captured packet "  ,
> it is correct  , but MRTG is also not working well .
>
>
> new cfgfile is below :
>
> -----------------------------------------------------------------------
>  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
> WorkDir: c:\Inetpub\wwwroot\PDSN
> ######################################################################
> # System:
> # Description:
> # Contact:
> # Location:
> ######################################################################
>
> Target[10.2.0.100]:
> 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:public at 10.2.0.100:
> ::::2
> LegendI[10.2.0.100]: Total de usuários
> LegendO[10.2.0.100]: Usuários activos
> Legend1[10.2.0.100]: Total usuários PDSN16K
> Legend2[10.2.0.100]: Usuários activos PDSN16K
> ShortLegend[10.2.0.100]:users
> YLegend[10.2.0.100]:users
> MaxBytes[10.2.0.100]: 15000
> Title[10.2.0.100]: ZTE PDSN
>
>
> -------------------------------------------------------------------------------
>
> the information is that after i run mrtg cfgfile  :
>
>
> 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: "public"
>                   request ID: 2143957165
>
>                  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 public at 10.2.0.100:::::2:v4only
>  at mrtg line 2202
> 2010-09-10 08:42:00: ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode}
> ' did
>
>  not eval into defined data
> 2010-09-10 08:42:00: ERROR: Target[10.2.0.100][_OUT_] ' $target->[0]{$mode}
> ' di
>
> d not eval into defined data
> 2010-09-10 08:42:00, Rateup WARNING: C:/mrtg/bin\rateup Can't remove
> 10.2.0.100.
> old updating log file
>
> 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: "public"
>                   request ID: 2143957166
>
>                  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 public at 10.2.0.100:::::2:v4only
>  at mrtg line 2202
> 2010-09-10 08:47:00: ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode}
> ' did
>
>  not eval into defined data
> 2010-09-10 08:47:00: ERROR: Target[10.2.0.100][_OUT_] ' $target->[0]{$mode}
> ' di
>
> d not eval into defined data
>
> thanks for your attention .
>
>
>
>
>
>
>
> 2010/9/9 Steve Shipway <s.shipway at auckland.ac.nz>
>
>   MRTG (and cfgmaker) are unable to use SNMP to query this OID.
>>
>>
>>
>> Either your community string is wrong, or you have a firewall or ACL
>> blocking you from talking to this server, or the OID is wrong.
>>
>>
>>
>> On your MRTG server, you say you can use a mibbrowse utility?  Try to use
>> something simple like snmpwalk to verify you can talk to the server.  If you
>> can, then check that this is EXACTLY the correct OID – sometimes there is a
>> trailing .0 suffix that is not displayed.
>>
>>
>>
>> You are using SNMPv2 – check this is supported, maybe the device only has
>> this OID in SNMPv1?  Maybe you are testing with SNMPv1 but MRTG is using
>> SNMPv2c?
>>
>>
>>
>> Steve
>>
>>
>>  ------------------------------
>>
>> *Steve Shipway*
>>
>> ITS Unix Services Design Lead
>>
>> University of Auckland
>>
>> Floor 2, 58 Symonds Street
>>
>> *09 3737599 ext 86487*
>>
>> P Please consider the environment before printing this e-mail
>>
>> * *
>>
>>
>>
>> *From:* mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [mailto:
>> mrtg-bounces+s.shipway <mrtg-bounces%2Bs.shipway>=auckland.ac.nz@
>> lists.oetiker.ch] *On Behalf Of *xia binhui
>> *Sent:* Thursday, 9 September 2010 9:13 p.m.
>> *To:* mrtg at lists.oetiker.ch
>> *Subject:* [mrtg] customize OID problem
>>
>>
>>
>>
>>
>> Dear all ,
>>
>>
>>
>> when i tried to use the following cfgfile, but it failed ,  can anyone
>> help me ?
>>
>>
>>
>> < !----------
>>
>> RunAsDaemon: yes
>>
>> Interval: 5
>>
>> WorkDir: C:\inetpub\wwwroot\PDSN
>>
>>
>>
>> # Options[_]: growright, bits, nopercent
>>
>>
>>
>> # Para calculo, cada 64Kbps = 8000
>>
>>
>>
>> EnableIPv6: no
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> #################################### MOVINET
>> ##################################################
>>
>>
>>
>> ### Usuários Activos ###
>>
>>
>>
>> Target[Movinet_Users]:
>> 1.3.6.1.4.1.3902.7.222.3.5.1.3&1.3.6.1.4.1.3902.7.222.3.5.1.3:public at 10.2.0.100:
>> ::::2
>>
>> YLegend[Movinet_Users]: Usuários
>>
>> ShortLegend[Movinet_Users]: Usuários
>>
>> MaxBytes[Movinet_Users]: 15000
>>
>> Options[Movinet_Users]: nopercent, gauge, unknaszero, growright
>>
>> Legend1[Movinet_Users]:  Total de Usuários Conectados
>>
>> LegendI[Movinet_Users]:
>>
>> LegendO[Movinet_Users]:  Movinet Total
>>
>> Title[Movinet_Users]: Total de Usuários Conectados (TODO PAIS)
>>
>> PageTop[Movinet_Users]: <H1>  Total de Usuários Conectados</H1>
>>
>> WithPeak[Movinet_Users]: ymw
>>
>>
>>
>>               !----- >
>>
>>
>>
>>
>>
>>      ERROR:
>>
>>
>>
>> C:\mrtg\bin>perl mrtg mrtg.cfg
>>
>> Daemonizing MRTG ...
>>
>> Do Not close this window. Or MRTG will die
>>
>> SNMP Error:
>>
>> Received SNMP response with error code
>>
>>   error status: genErr
>>
>>   index 1 (OID: 1.3.6.1.4.1.3902.7.222.3.5.1.3)
>>
>> SNMPv2c_Session (remote host: "10.2.0.100" [10.2.0.100].161)
>>
>>                    community: "public"
>>
>>                   request ID: 433882435
>>
>>                  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.3.6.1.4.1.3902.7.222.3.5.1.3
>>
>> sysUptime sysName on public at 10.2.0.100:::::2:v4only  at mrtg line 2202
>>
>> 2010-08-30 11:02:40: ERROR: Target[movinet_users][_IN_] '
>> $target->[0]{$mode} '
>>
>> did not eval into defined data
>>
>> 2010-08-30 11:02:40: ERROR: Target[movinet_users][_OUT_] '
>> $target->[0]{$mode} '
>>
>>  did not eval into defined data
>>
>> Terminating on signal SIGINT(2)
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100916/186c834e/attachment-0001.htm 


More information about the mrtg mailing list