<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=855262720-09062010><FONT color=#0000ff
size=2 face=Arial>Wow you're good!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=855262720-09062010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=855262720-09062010><FONT color=#0000ff
size=2 face=Arial>forcing it to SNMPv1 worked - thanks</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Karyn Stump [mailto:karyn@calarts.edu]
<BR><B>Sent:</B> Wednesday, June 09, 2010 4:22 PM<BR><B>To:</B> Gordon,
Bruce<BR><B>Subject:</B> Re: [mrtg] ifNumbers Not Working for Low Speed
Interfaces When MRTG Parallelized<BR></FONT><BR></DIV>
<DIV></DIV>Is it able to pull the uptime of the affected device in either case
?<BR><BR>Have you tried "Target[$]: :<community>@<device>:::::1~"
just to see what happens ?<BR><BR>
<DIV class=gmail_quote>On Wed, Jun 9, 2010 at 1:02 PM, Gordon, Bruce <SPAN
dir=ltr><<A
href="mailto:Bruce.Gordon@nrc-cnrc.gc.ca">Bruce.Gordon@nrc-cnrc.gc.ca</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>Same
graphs all the time - those not using SNMPv2 counters</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>running
MRTG from the command line against the individual config
works</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>running
MRTG from the script does not</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 face=Arial>running
MRTG from the script using cron does not</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us align=left>
<HR>
<FONT size=2 face=Tahoma><B>From:</B> Karyn Stump [mailto:<A
href="mailto:karyn@calarts.edu" target=_blank>karyn@calarts.edu</A>]
<BR><B>Sent:</B> Wednesday, June 09, 2010 3:53 PM<BR><B>To:</B> Gordon,
Bruce<BR><B>Subject:</B> Re: [mrtg] ifNumbers Not Working for Low Speed
Interfaces When MRTG Parallelized<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>Same graphs all the time ? Different graphs at different times ?
Can you tell what is not being interpolated correctly from the errors you are
getting ? Check your environment. Usually if you can run a script from the
command line and then not from cron (for example) it is just a difference in
the environment.<BR><BR>
<DIV class=gmail_quote>On Wed, Jun 9, 2010 at 7:18 AM, Gordon, Bruce <SPAN
dir=ltr><<A href="mailto:Bruce.Gordon@nrc-cnrc.gc.ca"
target=_blank>Bruce.Gordon@nrc-cnrc.gc.ca</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Hello,<BR><BR>We've been using MRTG on Linux for years.
Since one of our sysadmins updated our MRTG to 2.16.2 we have noticed
that some of our graphs are breaking.<BR><BR>We manually roll our own
configs which we then run from a script that reads in a file that contains
subdirectory names and the subdirectories contains the config file.
The script runs mrtg against that cfg file in the background. A
"wait" command at the end of the shell script. In this manner we are
able to parallelize the execution of the configs (one per device) so one
unresponsive device (some can have hundreds of interfaces) does not wrap the
monitoring interval.<BR><BR>I know it's old-school and RRD would solve all
our problems but ... It works. Or it did.<BR><BR>Now the majority of
the devices polled have SNMP ver2 counters so we tend to put them at the
head of the file with a "Target[$]:
:<community>@<device>:::::2~" string then reset the Target
string to "Target[$]: :<community>@<device>~" before the
sections dealing with i/fs with non v2 counters.<BR><BR>What we now get
is:<BR><BR>2010-06-08 15:13:27: WARNING: Can not determine ifNumber for
<community>@<device> ref: 'Name' key:
'Et1/1'<BR>2010-06-08 15:13:27: WARNING: Can not determine ifNumber for
<community>@<device> ref: 'Ip' key:
'192.168.1.1<BR>2010-06-08 15:13:28: ERROR: Target[et1_1][_IN_] '
$target->[5]{$mode} ' did not eval into defined data<BR>2010-06-08
15:13:28: ERROR: Target[et1_1][_OUT_] ' $target->[5]{$mode} ' did not
eval into defined data<BR>2010-06-08 15:13:28: ERROR: Target[tu1][_IN_] '
$target->[6]{$mode} ' did not eval into defined data<BR>2010-06-08
15:13:28: ERROR: Target[tu1][_OUT_] ' $target->[6]{$mode} ' did not eval
into defined data<BR><BR>When running the script.<BR><BR>The weird thing is
when we run mrtg directly against the target (i.e. "mrtg mrtg.cfg") we get
no error - i.e. it determines the ifNumber<BR><BR>Any ideas? (Other than
spanking the
sysadmin)<BR><BR>Regards,<BR><BR>Bruce<BR>_______________________________________________<BR>mrtg
mailing list<BR><A href="mailto:mrtg@lists.oetiker.ch"
target=_blank>mrtg@lists.oetiker.ch</A><BR><A
href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg"
target=_blank>https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</A><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Karyn Stump<BR>Manager, Network and Server
Operations<BR>California Institute of the
Arts<BR><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>--
<BR>Karyn Stump<BR>Manager, Network and Server Operations<BR>California
Institute of the Arts<BR><BR></BODY></HTML>