<font size=2 color=#002f80 face="sans-serif">Lee,</font>
<br>
<br><font size=2 color=#002f80 face="sans-serif">I'm sorry, what's the
&quot;5&quot; for your adding..?</font>
<br>
<br><font size=2 color=#002f80 face="sans-serif">Can you send me your Target
line directly from you cfg file?</font>
<br><font size=2 color=#002f80 face="sans-serif">Since it does work from
the command line there must be some kind of simple error or something in
the Target line we're not seeing.</font>
<br>
<br><font size=2 color=#002f80 face="sans-serif">For your Target line,
after the directive (i.e. &quot;Target[<i>my-target</i>]:) it should have
the following format:</font>
<br>
<br><font size=2 color=#002f80 face="sans-serif"><b>&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Target[</b><i>my-target-name</i><b>]:
OID1&amp;OID2:<i>communityName</i>@<i>IPaddress</i>:::::<i>2</i></b></font>
<br>
<br><font size=2 color=#002f80 face="sans-serif"><b><u>Target Line Parts</u>:</b></font>
<br><font size=2 color=#002f80 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <b>OID1</b> = .1.3.6.1.2.1.10.94.1.1.3.1.4.12</font>
<br><font size=2 color=#002f80 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <b>OID2</b> = .1.3.6.1.2.1.10.94.1.1.3.1.4.12</font>
<br><font size=2 color=#002f80 face="sans-serif"><b>&nbsp; &nbsp;Community
name = &nbsp;</b>public &nbsp; &nbsp; <i>--&gt; or whatever you have it
set to. (default is usually &quot;public&quot;)</i></font>
<br><font size=2 color=#002f80 face="sans-serif"><b>&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; IP Address = </b>172.20.129.2</font>
<br><font size=2 color=#002f80 face="sans-serif"><b>&nbsp; &nbsp; &nbsp;
&nbsp; SNMP Options = :::::2</b> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;--&gt; <i>only if it's using verison <b>&quot;2c&quot;</i></b></font>
<br>
<br>
<br><tt><font size=2><b>Target[my-target-name]:</b> .1.3.6.1.2.1.10.­94.1.1.3.1.4.12&amp;.1.3.6.1.2.1.10.94­.1.1.2.1.4.12:public@172.20.129.2:::::2</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; <b>---OR---</b></font></tt>
<br><tt><font size=2><b>Target[my-target-name]:</b> .1.3.6.1.2.1.10.­94.1.1.3.1.4.12&amp;.1.3.6.1.2.1.10.94­.1.1.2.1.4.12:public@172.20.129.2</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; <b>---OR---</b></font></tt>
<br><tt><font size=2><b>Target[my-target-name]:</b> 1.3.6.1.2.1.10.­94.1.1.3.1.4.12&amp;1.3.6.1.2.1.10.94­.1.1.2.1.4.12:public@172.20.129.2</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; <b>---OR---</b></font></tt>
<br><tt><font size=2><b>Target[my-target-name]:</b> 1.3.6.1.2.1.10.­94.1.1.3.1.4.12&amp;1.3.6.1.2.1.10.94­.1.1.2.1.4.12:public@172.20.129.2:::::2</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <b>---Rest of Target Definition---</b></font></tt>
<br><tt><font size=2><br>
<b>Title[my-target-name]: </b>Cisco 887 SNR Analysis<br>
<b>PNGTitle[my-target-name]:</b> Cisco 887 SNR Analysis<br>
<b>Legend1[my-target-name]:</b> Average<br>
<b>Legend2[my-target-name]:</b><br>
<b>Legend3[my-target-name]:</b> Maximum<br>
<b>Legend4[my-target-name]:</b><br>
<b>LegendI[my-target-name]:</b> Local SNR:<br>
<b>LegendO[my-target-name]:</b> Remote SNR:</font></tt>
<br><tt><font size=2><b>YLegend[my-target-name]:</b> SNR Value</font></tt>
<br><tt><font size=2><b>Background[my-target-name]:</b> #ffffff<br>
<b>WithPeak[my-target-name]:</b> wmy<br>
<b>MaxBytes[my-target-name]:</b> 200000<br>
<b>Options[my-target-name]:</b> gauge,nopercent<br>
<b>ShortLegend[my-target-name]:</b> dB</font></tt>
<br><tt><font size=2><b>PageTop[my-target-name]:</b> &lt;H1&gt;Cisco 887
SNR Analysis&lt;/H1&gt;</font></tt>
<br>
<br>
<br><font size=2 color=#002f80 face="sans-serif">Thanks,</font>
<br><font size=2 color=#002f80 face="sans-serif">Matt</font>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Lee Todd &lt;ltodd2@hallmark-uk.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">&lt;MMartin@jwpepper.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Ian &lt;ian@acces.co.jp&gt;,
&lt;mrtg@lists.oetiker.ch&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">01/18/2012 09:55 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [mrtg] pulling
snr data error</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2><br>
<br>
Matt<br>
<br>
Tried removing the . and adding the 5 : at the end. &nbsp;All I get now
when<br>
running it is<br>
<br>
env LANG=C /usr/bin/mrtg /etc/mrtg/test.cfg<br>
2012-01-18 14:49:14: ERROR: Target[gauge32][_IN_] '.1.3.6.1.2.1.10.­<br>
94.1.1.3.1.4.12&amp;.1.3.6.1.2.1.10.94­.1.1.2.1.4. $target-&gt;[0]{$mode}
' (kill):<br>
Unrecognized character \xC2 at (eval 17) line 1.<br>
2012-01-18 14:49:14: ERROR: Target[gauge32][_OUT_] '.1.3.6.1.2.1.10.­<br>
94.1.1.3.1.4.12&amp;.1.3.6.1.2.1.10.94­.1.1.2.1.4. $target-&gt;[0]{$mode}
' (kill):<br>
Unrecognized character \xC2 at (eval 18) line 1.<br>
<br>
<br>
SNMP must be working because the mrtg graphs even through contain no data<br>
do have the systems host name at the top with the uptime so it is<br>
communicating.<br>
<br>
The spaces must be some strange formatting issue. &nbsp;I have noticed
that to<br>
edit the cfg I have to open them from my workstation using gedit since
vim<br>
and nano do very strange things when I move the cursor across the OID<br>
numbers.<br>
<br>
I have got this working in NagiosXI but that is just a demo we have and<br>
expires in 2 days so want to do it in mrtg and in time rrd.<br>
<br>
Lee<br>
<br>
<br>
From: &nbsp; &nbsp; &nbsp; MMartin@jwpepper.com<br>
To: &nbsp; &nbsp; &nbsp; &nbsp; Lee Todd &lt;ltodd2@hallmark-uk.com&gt;,<br>
Cc: &nbsp; &nbsp; &nbsp; &nbsp; Ian &lt;ian@acces.co.jp&gt;, mrtg@lists.oetiker.ch<br>
Date: &nbsp; &nbsp; &nbsp; 18/01/2012 14:43<br>
Subject: &nbsp; &nbsp;Re: [mrtg] pulling snr data error<br>
<br>
<br>
<br>
Lee,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&quot;do you get a good answer from this query?<br>
 &nbsp; &nbsp; &nbsp; snmpget -c test -v 1 172.20.129.2 .1.3.6.1.2.1.10.­
94.1.1.3.1.4.12<br>
 &nbsp; &nbsp; &nbsp; snmpget -c test -v 1 172.20.129.2 .1.3.6.1.2.1.10.­
94.1.1.2.1.4.12&quot;<br>
<br>
I'm assuming that the space between the 10 and 94 is just is typo. But<br>
anyway there's is a few things I would try.<br>
<br>
First try removing the &quot;.&quot; that starts out the OID. That might
help. But<br>
most likely that's not the problem.<br>
Also, in you cfg file for the device. When you do version &quot;2&quot;
on the<br>
&quot;Target[_]:&quot; line don't use the &quot;c&quot; I don't think MRTG
recognizes that.<br>
<br>
So for example, you would just use version &quot;2&quot; like this:<br>
Target[my-target-name]:.1.3.6.1.2.1.10.­<br>
94.1.1.3.1.4.12&amp;.1.3.6.1.2.1.10.94­.1.1.2.1.4.12:test@172.20.129.2:::::2<br>
It should end with 5 &quot;:&quot; colons, followed by a 2.<br>
<br>
This is from the cfgmaker man page:<br>
 --snmp-options=:[&lt;port&gt;][:[&lt;tmout&gt;][:[&lt;retr&gt;][:[&lt;backoff&gt;][:&lt;ver&gt;]]]]<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;Specify default SNMP options to be appended to<br>
all<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;routers following. &nbsp;Individual fields can be<br>
empty.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; Routers following might override some or all of<br>
the<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; options given to --snmp-options.<br>
<br>
<br>
Also, your &quot;Target:&quot; name should be a unique name for each separate<br>
device/interface or you can think of it as for each separate graph. Because<br>
MRTG will use the target name as the filename for the RRD file.<br>
<br>
One other thing you might try would be to telnet to the router and check<br>
out what the &quot;snmp&quot; or &quot;snmp-server&quot; settings are.
There you should be able<br>
to see what the SNMP version is too.<br>
<br>
-Matt<br>
<br>
<br>
<br>
From: &nbsp; &nbsp; &nbsp; &nbsp;Lee Todd &lt;ltodd2@hallmark-uk.com&gt;<br>
To: &nbsp; &nbsp; &nbsp; &nbsp;Ian &lt;ian@acces.co.jp&gt;, &lt;mrtg@lists.oetiker.ch&gt;,<br>
&lt;MMartin@jwpepper.com&gt;<br>
Date: &nbsp; &nbsp; &nbsp; &nbsp;01/18/2012 03:31 AM<br>
Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [mrtg] pulling snr data error<br>
<br>
<br>
<br>
<br>
<br>
Ian and &nbsp;Matt<br>
<br>
I can run snmpget and below is what I get from it<br>
<br>
snmpget -t 1 -r 5 -m '' -v 2c -c test<br>
172.20.129.16:161 .1.3.6.1.2.1.10.94.1.1.2.1.4.12<br>
iso.3.6.1.2.1.10.94.1.1.2.1.4.12 = Gauge32: 72<br>
<br>
snmpget -t 1 -r 5 -m '' -v 2c -c test<br>
172.20.129.16:161 .1.3.6.1.2.1.10.94.1.1.3.1.4.12<br>
iso.3.6.1.2.1.10.94.1.1.3.1.4.12 = Gauge32: 58<br>
<br>
I have tried using -v 2c and -v 1 and both work<br>
<br>
<br>
<br>
From: &nbsp; &nbsp; &nbsp; Ian &lt;ian@acces.co.jp&gt;<br>
To: &nbsp; &nbsp; &nbsp; &nbsp; mrtg@lists.oetiker.ch,<br>
Date: &nbsp; &nbsp; &nbsp; 18/01/2012 00:15<br>
Subject: &nbsp; &nbsp;Re: [mrtg] pulling snr data error<br>
Sent by: &nbsp; &nbsp;mrtg-bounces+ltodd2=hallmark-uk.com@lists.oetiker.ch<br>
<br>
<br>
<br>
&gt; I have been trying to pull snr data from a cisco 887 router. &nbsp;I
got a<br>
base<br>
&gt; cfg from the web and changed what I think is correct but when I run
it I<br>
&gt; get the following error. &nbsp;Prob a really silly thing but im just
not<br>
seeing<br>
&gt; it.<br>
<br>
do you get a good answer from this query?<br>
snmpget -c test -v 1 172.20.129.2 .1.3.6.1.2.1.10.­ 94.1.1.3.1.4.12<br>
snmpget -c test -v 1 172.20.129.2 .1.3.6.1.2.1.10.­ 94.1.1.2.1.4.12<br>
<br>
<br>
_______________________________________________<br>
mrtg mailing list<br>
mrtg@lists.oetiker.ch<br>
</font></tt><a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg"><tt><font size=2>https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</font></tt></a><tt><font size=2><br>
<br>
<br>
<br>
Registered Office: Bingley Road, Bradford, BD9 6SD<br>
<br>
Registered in England no. 03414540<br>
<br>
<br>
<br>
The information contained in this e-mail and any accompanying documents<br>
<br>
may contain information that is confidential or otherwise protected from<br>
<br>
disclosure. If you are not the intended recipient of this message, or if<br>
<br>
this message has been addressed to you in error, please immediately<br>
<br>
alert the sender by reply e-mail and then delete this message, including<br>
<br>
any attachments. Any dissemination, distribution or other use of the<br>
<br>
contents of this message by anyone other than the intended recipient is<br>
<br>
strictly prohibited.<br>
<br>
<br>
<br>
Unless specifically stated in this e mail, the agreement and content<br>
<br>
of this correspondence is subject to contract.<br>
<br>
No contract is implied by this correspondence, unless specifically<br>
<br>
stated as a contract (purchase order or sales order)<br>
<br>
<br>
<br>
Think of the environment; please don't print this e-mail unless you<br>
<br>
really need to<br>
<br>
<br>
<br>
<br>
Registered Office: Bingley Road, Bradford, BD9 6SD<br>
<br>
Registered in England no. 03414540<br>
<br>
<br>
<br>
The information contained in this e-mail and any accompanying documents<br>
<br>
may contain information that is confidential or otherwise protected from<br>
<br>
disclosure. If you are not the intended recipient of this message, or if<br>
<br>
this message has been addressed to you in error, please immediately<br>
<br>
alert the sender by reply e-mail and then delete this message, including<br>
<br>
any attachments. Any dissemination, distribution or other use of the<br>
<br>
contents of this message by anyone other than the intended recipient is<br>
<br>
strictly prohibited.<br>
<br>
<br>
<br>
Unless specifically stated in this e mail, the agreement and content <br>
<br>
of this correspondence is subject to contract. &nbsp;<br>
<br>
No contract is implied by this correspondence, unless specifically <br>
<br>
stated as a contract (purchase order or sales order)<br>
<br>
<br>
<br>
Think of the environment; please don't print this e-mail unless you<br>
<br>
really need to<br>
<br>
</font></tt>
<br>