<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Ballongtext Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BallongtextChar
        {mso-style-name:"Ballongtext Char";
        mso-style-priority:99;
        mso-style-link:Ballongtext;
        font-family:"Tahoma","sans-serif";}
p.ballongtext, li.ballongtext, div.ballongtext
        {mso-style-name:ballongtext;
        mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.ballongtextchar0
        {mso-style-name:ballongtextchar;
        mso-style-priority:99;
        font-family:"Tahoma","sans-serif";}
span.E-postmall22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-postmall23
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.E-postmall24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=SV link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Thanks Steve,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I change the target
and the options.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Now I have this error
in my freebsd 6.2.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'># mrtg mrtg.old2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>SNMP Error:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Received SNMP
response with error code<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> error status:
noSuchName<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> index 1 (OID:
1.3.6.1.4.1.9.9.187.1.2.4.1.1)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>SNMPv1_Session
(remote host: "1.2.3.4" [1.2.3.4].161)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
community: "public"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
request ID: 904124880<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> PDU
bufsize: 8000 bytes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
timeout: 2s<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
retries: 5<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>
backoff: 1)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> at
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 490<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>SNMPGET Problem for
1.3.6.1.4.1.9.9.187.1.2.4.1.1 1.3.6.1.4.1.9.9.187.1.2.4.1.1 sysUptime sysName
on <a href="mailto:public@1.2.3.4:::::2.:v4">public@1.2.3.4:::::2.:v4</a> only
at /usr/local/bin/mrtg line 2155<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>2007-05-29 08:01:51:
ERROR: Target[avinova-bgp-test][_IN_] ' $target->[0]{$mode} ' did not eval
into defined data<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>2007-05-29 08:01:51:
ERROR: Target[avinova-bgp-test][_OUT_] ' $target->[0]{$mode} ' did not eval
into defined data<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'># more mrtg.old2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>EnableIPv6: no<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>WorkDir:
/usr/local/www/data-dist/bgp-route<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>MaxBytes[avinova-bgp-test]:
150000<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Title[avinova-bgp-test]:
Show BGP route -- bgp-avinova.avinova.se<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Options[avinova-bgp-test]:
noo<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Target[avinova-bgp-test]:
1.3.6.1.4.1.9.9.187.1.2.4.1.1&1.3.6.1.4.1.9.9.187.1.2.4.1.1:public@1.2.3.4:::::2.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";
color:#1F497D'>Mvh / Regards</span><span lang=EN-US style='color:#1F497D'><br>
</span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";
color:black'>Jan Rockstedt / Avinova AB<o:p></o:p></span></b></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Steve Shipway
[mailto:s.shipway@auckland.ac.nz] <br>
<b>Sent:</b> Tuesday, May 29, 2007 4:18 AM<br>
<b>To:</b> Jan Rockstedt; mrtg@lists.oetiker.ch<br>
<b>Subject:</b> RE: [mrtg] Oid problem<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Looks like this is a counter32 and so will probably only be
available if you use SNMPv2 – and you wnmpwalk it with v2 to test,
too. MRTG will use v1 unless you tell it differently. Add
‘:::::2’ to the end of the Target string to force SNMPv2 and it
should be OK – see the MRTG documentation about Target definition syntax.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Your other problem is that a Target definition MUST specify EXACTLY
two OIDs, even if you do not use them both. So, use ‘Options[]:
noo’ to cuppress the second, and put something like ‘</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Target[avinova-bgp]:
1.3.6.1.4.1.9.9.187.1.2.4.1.1&1.3.6.1.4.1.9.9.187.1.2.4.1.1:public@ip-number:::::2’</span><span
lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Steve<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=3 width="100%" align=center>
</span></div>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> mrtg-bounces@lists.oetiker.ch
[mailto:mrtg-bounces@lists.oetiker.ch] <b>On Behalf Of </b>Jan Rockstedt<br>
<b>Sent:</b> Monday, 28 May 2007 21:06<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] Oid problem</span><span lang=EN-US style='font-size:
12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p>
<p class=MsoNormal><a name="msg_8e3f2eddc568427b"></a><span lang=EN-US
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi all, <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have a
cisco router and wan't to get “show ip bgp route” into mrtg. <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The oid is
1.3.6.1.4.1.9.9.187.1.2.4.1.1 <br>
#snmpwalk -c public -v2c ip-number 1.3.6.1.4.1.9.9.187.1.2.4.1.1 <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Give me: <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>SNMPv2-SMI::enterprises.9.9.187.1.2.4.1.1.81.88.9.185.1.1
= Counter32: <br>
67094 <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>My
mrtg.cfg: <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>EnableIPv6:
no <br>
WorkDir: /usr/local/www/data-dist/bgp-route <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Target[avinova-bgp]:
1.3.6.1.4.1.9.9.187.1.2.4.1.1:public@ip-number <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>MaxBytes[avinova-bgp]:
150000 <br>
Title[avinova-bgp]: Show BGP route -- bgp-avinova.avinova.se <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>But when i
run the mrtg mrtg.cfg i get this error msg: <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2007-05-25
13:06:00: ERROR: Target[avinova-bgp][_IN_] <br>
'1.3.6.1.4.1.9.9.187.1.2.4.1. $target->[0]{$mode} ' evaluated to <br>
' »468946704' instead of a number <br>
2007-05-25 13:06:00: ERROR: Target[avinova-bgp][_OUT_] <br>
'1.3.6.1.4.1.9.9.187.1.2.4.1. $target->[0]{$mode} ' evaluated to <br>
' »262879011' instead of a number <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Any
suggestion to get 67094 value into mrtg? <o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>//Jan <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:10.0pt;font-family:"Century Gothic","sans-serif"'>Mvh
/ Regards</span><span lang=EN-US><br>
</span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";
color:black'>Jan Rockstedt</span></b><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:5.0pt;font-family:"Century Gothic","sans-serif";color:black'><img
border=0 width=127 height=33 id="_x0000_i1026"
src="cid:image001.jpg@01C7A1C8.BC7FED20"></span><span lang=EN-US
style='font-size:5.0pt;font-family:"Century Gothic","sans-serif";color:black'><br>
</span><span lang=EN-US style='font-size:9.0pt;font-family:"Century Gothic","sans-serif";
color:black'><br>
+46 - 40 - 668 07 45 <br>
</span><span style='font-size:9.0pt;font-family:"Century Gothic","sans-serif";
color:black'><a href="mailto:jan.rockstedt@avinova.se"
title="mailto:jan.rockstedt@avinova.se"><span lang=EN-US>jan.rockstedt@avinova.se</span></a></span><span
lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black'><img
border=0 width=44 height=53 id="_x0000_i1025"
src="cid:image002.gif@01C7A1C8.BC7FED20"></span><span lang=EN-US
style='font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:black'><br>
IBM Certified Specialist - System i5 Administrator</span><span
lang=EN-US style='font-size:5.0pt;font-family:"Century Gothic","sans-serif";
color:black'><o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Century Gothic","sans-serif";
color:black'>Avinova AB<br>
Spångatan 37 B<br>
211 53 Malmö Sweden<br>
Tel +46-40-668 07 40<br>
Fax +46-40-668 07 55</span><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</body>
</html>