<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
"5" 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. "Target[<i>my-target</i>]:) it should have
the following format:</font>
<br>
<br><font size=2 color=#002f80 face="sans-serif"><b>
Target[</b><i>my-target-name</i><b>]:
OID1&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">
<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">
<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> Community
name = </b>public <i>--> or whatever you have it
set to. (default is usually "public")</i></font>
<br><font size=2 color=#002f80 face="sans-serif"><b>
IP Address = </b>172.20.129.2</font>
<br><font size=2 color=#002f80 face="sans-serif"><b>
SNMP Options = :::::2</b>
--> <i>only if it's using verison <b>"2c"</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&.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>
<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&.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>
<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&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>
<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&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>
<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> <H1>Cisco 887
SNR Analysis</H1></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:
</font><font size=1 face="sans-serif">Lee Todd <ltodd2@hallmark-uk.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif"><MMartin@jwpepper.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">Ian <ian@acces.co.jp>,
<mrtg@lists.oetiker.ch></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">01/18/2012 09:55 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</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. 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&.1.3.6.1.2.1.10.94.1.1.2.1.4. $target->[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&.1.3.6.1.2.1.10.94.1.1.2.1.4. $target->[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. 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: MMartin@jwpepper.com<br>
To: Lee Todd <ltodd2@hallmark-uk.com>,<br>
Cc: Ian <ian@acces.co.jp>, mrtg@lists.oetiker.ch<br>
Date: 18/01/2012 14:43<br>
Subject: Re: [mrtg] pulling snr data error<br>
<br>
<br>
<br>
Lee,<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>
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 "." 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 "2"
on the<br>
"Target[_]:" line don't use the "c" I don't think MRTG
recognizes that.<br>
<br>
So for example, you would just use version "2" like this:<br>
Target[my-target-name]:.1.3.6.1.2.1.10.<br>
94.1.1.3.1.4.12&.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 ":" colons, followed by a 2.<br>
<br>
This is from the cfgmaker man page:<br>
--snmp-options=:[<port>][:[<tmout>][:[<retr>][:[<backoff>][:<ver>]]]]<br>
Specify default SNMP options to be appended to<br>
all<br>
routers following. Individual fields can be<br>
empty.<br>
Routers following might override some or all of<br>
the<br>
options given to --snmp-options.<br>
<br>
<br>
Also, your "Target:" 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 "snmp" or "snmp-server" settings are.
There you should be able<br>
to see what the SNMP version is too.<br>
<br>
-Matt<br>
<br>
<br>
<br>
From: Lee Todd <ltodd2@hallmark-uk.com><br>
To: Ian <ian@acces.co.jp>, <mrtg@lists.oetiker.ch>,<br>
<MMartin@jwpepper.com><br>
Date: 01/18/2012 03:31 AM<br>
Subject: Re: [mrtg] pulling snr data error<br>
<br>
<br>
<br>
<br>
<br>
Ian and 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: Ian <ian@acces.co.jp><br>
To: mrtg@lists.oetiker.ch,<br>
Date: 18/01/2012 00:15<br>
Subject: Re: [mrtg] pulling snr data error<br>
Sent by: mrtg-bounces+ltodd2=hallmark-uk.com@lists.oetiker.ch<br>
<br>
<br>
<br>
> I have been trying to pull snr data from a cisco 887 router. I
got a<br>
base<br>
> cfg from the web and changed what I think is correct but when I run
it I<br>
> get the following error. Prob a really silly thing but im just
not<br>
seeing<br>
> 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. <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>