[mrtg] how to use private OID in MRTG.

Xia Binhui (DOP) Xia.Binhui at movicel.co.ao
Mon Aug 30 12:21:11 CEST 2010


1.     Use cfgmaker 

 

Command :      perl cfgmaker  public at 10.2.0.100  --global "WorkDir: c:\www\mrtg" -output mrtg.cfg

 

Err:

 

at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492

Use of uninitialized value $response_community in string ne at C:/mrtg/bin\..\l

b\mrtg2/SNMP_Session.pm line 870.

SNMP Error:

Received SNMP response with unknown snmp-version field 1

SNMPv1_Session (remote host: "10.2.0.100" [10.2.0.100].161)

                  community: "public"

                 request ID: 1133695835

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 

 

2.     I program the cfg file by myself 

 

 

< !----------

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

 

              !----- >

 

 

     ERR:

 

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)

 

 

 

When I use the mibbrowse  using this OID , it is ok .

 

Thanks for your attention .

 

 

 

 

Summar & XiaBinhui

*************************

Movicel Telecomunicações S.A.

Mobile Phone: +244 912201119

E-mail: xia.binhui at movicel.co.ao <mailto:pepino.prazer at movicel.co.ao> 

Web site: www.movicel.co.ao <http://www.movicel.co.ao> 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100830/f022096a/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8608 bytes
Desc: image001.png
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20100830/f022096a/attachment-0001.png 


More information about the mrtg mailing list