<div>10.2.0.100 is window 2003 server , and there is one applicaiton that enable snmp-agent .</div>
<div> </div>
<div>i can use other MIB Browser application to get the information using the same OID ,</div>
<div> </div>
<div>so OID is correct and snmp version is correct , i think .</div>
<div> </div>
<div>if is it possible that the target name is wrong because of snmp-agent ?</div>
<div> </div>
<div>the error is : "ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode} ' did not eval into defined data "</div>
<div> </div>
<div>and what does it mean about defined data , where i can find the defined data ?</div>
<div> </div>
<div>waiting ...</div>
<div> </div>
<div>thanks .</div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">2010/9/10 xia binhui <span dir="ltr"><<a href="mailto:cz.binhui@gmail.com">cz.binhui@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>thanks to Steve Shipway .</div>
<div> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">On your MRTG server, you say you can use a mibbrowse utility? ---------- yes , there is response from 10.2.0.100 .</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"></span> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">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 .</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"></span> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">after i changed the OID , the value is not NULL from "captured packet " , it is correct , but MRTG is also not working well .</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"></span> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"></span> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">new cfgfile is below :</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"></span> </div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">-----------------------------------------------------------------------</span></div>
<div class="im">
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">RunAsDaemon: yes<br>Interval: 5<br>WorkDir: C:\inetpub\wwwroot\PDSN</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">Options[_]: growright, bits, nopercent</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt"># Para calculo, cada 64Kbps = 8000</span></div>
<div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">EnableIPv6: no</span></div></div><span style="COLOR: #1f497d; FONT-SIZE: 11pt">
<div><br># to get bits instead of bytes and graphs growing to the right<br>Options[_]: growright, nopercent, gauge, unknaszero</div>
<div>EnableIPv6: no
<div class="im"><br>LoadMibs: c:\mrtg\ZTE-CN-PDSN-PMIRP-MIB<br></div>WorkDir: c:\Inetpub\wwwroot\PDSN</div>
<div>######################################################################<br># System: <br># Description: <br># Contact: <br># Location: <br>######################################################################</div>
<div><br>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@10.2.0.100:::::2<br>LegendI[10.2.0.100]: Total de usuários<br>LegendO[10.2.0.100]: Usuários activos<br>Legend1[10.2.0.100]: Total usuários PDSN16K<br>
Legend2[10.2.0.100]: Usuários activos PDSN16K<br>ShortLegend[10.2.0.100]:users<br>YLegend[10.2.0.100]:users<br>MaxBytes[10.2.0.100]: 15000<br>Title[10.2.0.100]: ZTE PDSN </div>
<div> </div>
<div>-------------------------------------------------------------------------------</div>
<div> </div>
<div>the information is that after i run mrtg cfgfile :</div>
<div> </div>
<div> </div>
<div>C:\mrtg\bin>perl mrtg PDSN.cfg
<div class="im"><br>Daemonizing MRTG ...<br>Do Not close this window. Or MRTG will die<br>SNMP Error:<br>Received SNMP response with error code<br></div> error status: 19<br> index 3 (OID: 1.3.6.1.2.1.1.3.0)
<div class="im"><br>SNMPv2c_Session (remote host: "10.2.0.100" [10.2.0.100].161)<br> community: "public"<br></div> request ID: 2143957165
<div class="im"><br> PDU bufsize: 8000 bytes<br> timeout: 2s<br> retries: 5<br> backoff: 1)<br> at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492<br>
</div>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.<br>1.3.1 sysUptime sysName on <a href="mailto:public@10.2.0.100:::::2:v4only" target="_blank">public@10.2.0.100:::::2:v4only</a><br> at mrtg line 2202<br>
2010-09-10 08:42:00: ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode} ' did
<div class="im"><br> not eval into defined data<br></div>2010-09-10 08:42:00: ERROR: Target[10.2.0.100][_OUT_] ' $target->[0]{$mode} ' di
<div class="im"><br>d not eval into defined data<br></div>2010-09-10 08:42:00, Rateup WARNING: C:/mrtg/bin\rateup Can't remove 10.2.0.100.<br>old updating log file
<div class="im"><br>SNMP Error:<br>Received SNMP response with error code<br></div> error status: 19<br> index 3 (OID: 1.3.6.1.2.1.1.3.0)
<div class="im"><br>SNMPv2c_Session (remote host: "10.2.0.100" [10.2.0.100].161)<br> community: "public"<br></div> request ID: 2143957166
<div class="im"><br> PDU bufsize: 8000 bytes<br> timeout: 2s<br> retries: 5<br> backoff: 1)<br> at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492<br>
</div>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.<br>1.3.1 sysUptime sysName on <a href="mailto:public@10.2.0.100:::::2:v4only" target="_blank">public@10.2.0.100:::::2:v4only</a><br> at mrtg line 2202<br>
2010-09-10 08:47:00: ERROR: Target[10.2.0.100][_IN_] ' $target->[0]{$mode} ' did
<div class="im"><br> not eval into defined data<br></div>2010-09-10 08:47:00: ERROR: Target[10.2.0.100][_OUT_] ' $target->[0]{$mode} ' di
<div class="im"><br>d not eval into defined data<br></div></div>
<div><br>thanks for your attention .</div></span>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">2010/9/9 Steve Shipway <span dir="ltr"><<a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a>></span>
<div>
<div></div>
<div class="h5"><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-NZ" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">MRTG (and cfgmaker) are unable to use SNMP to query this OID.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">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.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">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.</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">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?</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt">Steve</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<div style="TEXT-ALIGN: center" class="MsoNormal" align="center"><span style="COLOR: #1f497d; FONT-SIZE: 11pt" lang="EN-US">
<hr align="center" size="2" width="100%">
</span></div>
<p class="MsoNormal"><b><span style="COLOR: #1f497d; FONT-SIZE: 11pt">Steve Shipway</span></b></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">ITS Unix Services Design Lead</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">University of Auckland</span></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 10pt">Floor 2, 58 Symonds Street</span></p>
<p class="MsoNormal"><i><span style="COLOR: #1f497d; FONT-SIZE: 10pt">09 3737599 ext 86487</span></i></p>
<p class="MsoNormal"><span style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 18pt" lang="EN-GB">P</span><span style="COLOR: blue; FONT-SIZE: 11pt" lang="EN-GB"> </span><span style="COLOR: green; FONT-SIZE: 10pt" lang="EN-GB">Please consider the environment before printing this e-mail</span><span style="COLOR: blue; FONT-SIZE: 11pt" lang="EN-GB"> </span><span style="COLOR: navy; FONT-SIZE: 7.5pt" lang="EN-GB"></span></p>
<p class="MsoNormal"><i><span style="COLOR: #1f497d; FONT-SIZE: 10pt"> </span></i></p>
<p class="MsoNormal"><span style="COLOR: #1f497d; FONT-SIZE: 11pt"> </span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0cm; PADDING-LEFT: 4pt; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm">
<div>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<p class="MsoNormal"><b><span style="FONT-SIZE: 10pt" lang="EN-US">From:</span></b><span style="FONT-SIZE: 10pt" lang="EN-US"> mrtg-bounces+s.shipway=<a href="http://auckland.ac.nz/" target="_blank">auckland.ac.nz</a>@<a href="http://lists.oetiker.ch/" target="_blank">lists.oetiker.ch</a> [mailto:<a href="mailto:mrtg-bounces%2Bs.shipway" target="_blank">mrtg-bounces+s.shipway</a>=<a href="http://auckland.ac.nz/" target="_blank">auckland.ac.nz</a>@<a href="http://lists.oetiker.ch/" target="_blank">lists.oetiker.ch</a>] <b>On Behalf Of </b>xia binhui<br>
<b>Sent:</b> Thursday, 9 September 2010 9:13 p.m.<br><b>To:</b> <a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a><br><b>Subject:</b> [mrtg] customize OID problem</span></p></div></div>
<div>
<div></div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"> </p></div>
<div>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">Dear all ,</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"> </p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">when i tried to use the following cfgfile, but it failed , can anyone help me ?</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"> </p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">< !----------</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">RunAsDaemon: yes</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">Interval: 5</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">WorkDir: C:\inetpub\wwwroot\PDSN</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"># Options[_]: growright, bits, nopercent</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"># Para calculo, cada 64Kbps = 8000</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">EnableIPv6: no</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">#################################### MOVINET ##################################################</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">### Usuários Activos ###</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">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@10.2.0.100:::::2</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">YLegend[Movinet_Users]: Usuários</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">ShortLegend[Movinet_Users]: Usuários</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">MaxBytes[Movinet_Users]: 15000 </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">Options[Movinet_Users]: nopercent, gauge, unknaszero, growright</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">Legend1[Movinet_Users]: Total de Usuários Conectados</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">LegendI[Movinet_Users]: </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">LegendO[Movinet_Users]: Movinet Total </span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">Title[Movinet_Users]: Total de Usuários Conectados (TODO PAIS)</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">PageTop[Movinet_Users]: <H1> Total de Usuários Conectados</H1></span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US">WithPeak[Movinet_Users]: ymw</span></p>
<p style="MARGIN-BOTTOM: 0pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> !----- ></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> ERROR:</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">C:\mrtg\bin>perl mrtg mrtg.cfg</span></p>
<p class="MsoNormal"><span lang="EN-US">Daemonizing MRTG ...</span></p>
<p class="MsoNormal"><span lang="EN-US">Do Not close this window. Or MRTG will die</span></p>
<p class="MsoNormal"><span lang="EN-US">SNMP Error:</span></p>
<p class="MsoNormal"><span lang="EN-US">Received SNMP response with error code</span></p>
<p class="MsoNormal"><span lang="EN-US"> error status: genErr</span></p>
<p class="MsoNormal"><span lang="EN-US"> index 1 (OID: 1.3.6.1.4.1.3902.7.222.3.5.1.3)</span></p>
<p class="MsoNormal"><span lang="EN-US">SNMPv2c_Session (remote host: "10.2.0.100" [10.2.0.100].161)</span></p>
<p class="MsoNormal"><span lang="EN-US"> community: "public"</span></p>
<p class="MsoNormal"><span lang="EN-US"> request ID: 433882435</span></p>
<p class="MsoNormal"><span lang="EN-US"> PDU bufsize: 8000 bytes</span></p>
<p class="MsoNormal"><span lang="EN-US"> timeout: 2s</span></p>
<p class="MsoNormal"><span lang="EN-US"> retries: 5</span></p>
<p class="MsoNormal"><span lang="EN-US"> backoff: 1)</span></p>
<p class="MsoNormal"><span lang="EN-US"> at C:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492</span></p>
<p class="MsoNormal"><span lang="EN-US">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</span></p>
<p class="MsoNormal"><span lang="EN-US">sysUptime sysName on </span><span lang="EN-US"><a href="mailto:public@10.2.0.100:::::2:v4only" target="_blank"><span>public@10.2.0.100:::::2:v4only</span></a></span><span lang="EN-US"> at mrtg line 2202</span></p>
<p class="MsoNormal"><span lang="EN-US">2010-08-30 11:02:40: ERROR: Target[movinet_users][_IN_] ' $target->[0]{$mode} '</span></p>
<p class="MsoNormal"><span lang="EN-US">did not eval into defined data</span></p>
<p class="MsoNormal"><span lang="EN-US">2010-08-30 11:02:40: ERROR: Target[movinet_users][_OUT_] ' $target->[0]{$mode} '</span></p>
<p class="MsoNormal"><span lang="EN-US"> did not eval into defined data</span></p>
<p class="MsoNormal"><span lang="EN-US">Terminating on signal SIGINT(2)</span></p></div></div></div></div></div></div></blockquote></div></div></div><br></blockquote></div><br>