<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="http://www.w3.org/TR/REC-html40"
xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (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>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
p
        {mso-style-priority:99;}
p.MSOACETATE
        {mso-style-priority:99;}
li.MSOACETATE
        {mso-style-priority:99;}
div.MSOACETATE
        {mso-style-priority:99;}
span.BALLONGTEXTCHAR
        {mso-style-priority:99;}
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {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";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:Tahoma;}
span.BallongtextChar
        {font-family:Tahoma;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
p.Ballongtext, li.Ballongtext, div.Ballongtext
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@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=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;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></font><font size=2 face=Arial><span lang=SV
style='font-size:10.0pt;font-family:Arial'>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></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Steve<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></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'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;font-family:
"Times New Roman"'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
mrtg-bounces@lists.oetiker.ch [mailto:mrtg-bounces@lists.oetiker.ch] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jan Rockstedt<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, 28 May 2007 21:06<br>
<b><span style='font-weight:bold'>To:</span></b> mrtg@lists.oetiker.ch<br>
<b><span style='font-weight:bold'>Subject:</span></b> [mrtg] Oid problem</span></font><font
size=3 face="Times New Roman"><span lang=EN-US style='font-size:12.0pt;
font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><a name="msg_8e3f2eddc568427b"></a><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;font-family:Arial'>Hi all, <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>I
have a cisco router and wan't to get “show ip bgp route” into mrtg.
<o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>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></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=SV style='font-size:10.0pt;font-family:Arial'>Give
me: <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>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></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>My
mrtg.cfg: <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>EnableIPv6:
no <br>
WorkDir: /usr/local/www/data-dist/bgp-route <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=SV style='font-size:10.0pt;font-family:Arial'>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></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=SV style='font-size:10.0pt;font-family:Arial'>MaxBytes[avinova-bgp]:
150000 <br>
Title[avinova-bgp]: Show BGP route -- bgp-avinova.avinova.se <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>But
when i run the mrtg mrtg.cfg i get this error msg: <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>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></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>Any
suggestion to get 67094 value into mrtg? <o:p></o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'>//Jan
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Calibri><span lang=EN-US style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face="Century Gothic"><span lang=EN-US style='font-size:10.0pt;
font-family:"Century Gothic"'>Mvh / Regards</span></font><span lang=EN-US><br>
</span><b><font size=2 color=black face="Century Gothic"><span lang=EN-US
style='font-size:10.0pt;font-family:"Century Gothic";color:black;font-weight:
bold'>Jan Rockstedt</span></font></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'><font
size=1 color=black face="Century Gothic"><span lang=SV style='font-size:5.0pt;
font-family:"Century Gothic";color:black'><img width=127 height=33
id="_x0000_i1026" src="cid:image003.jpg@01C7A1FC.239FBC50"></span></font><font
size=1 color=black face="Century Gothic"><span lang=EN-US style='font-size:
5.0pt;font-family:"Century Gothic";color:black'><br>
</span></font><font size=1 color=black face="Century Gothic"><span lang=EN-US
style='font-size:9.0pt;font-family:"Century Gothic";color:black'><br>
+46 - 40 - 668 07 45 <br>
</span></font><font size=1 color=black face="Century Gothic"><span lang=SV
style='font-size:9.0pt;font-family:"Century Gothic";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></font><span lang=EN-US><o:p></o:p></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=1 color=black face="Century Gothic"><span lang=SV style='font-size:9.0pt;
font-family:"Century Gothic";color:black'><img border=0 width=44 height=53
id="_x0000_i1025" src="cid:image004.gif@01C7A1FC.239FBC50"></span></font><font
size=1 color=black face="Century Gothic"><span lang=EN-US style='font-size:
9.0pt;font-family:"Century Gothic";color:black'><br>
IBM Certified Specialist - System i5 Administrator</span></font><font
size=1 color=black face="Century Gothic"><span lang=EN-US style='font-size:
5.0pt;font-family:"Century Gothic";color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=1 color=black face="Century Gothic"><span
lang=SV style='font-size:9.0pt;font-family:"Century Gothic";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></font><span lang=SV><o:p></o:p></span></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=SV style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=SV style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</body>
</html>