<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mike Gideon wrote:
<blockquote
cite="mid:DF09AD870C03E34282E88D241388E8164B4545@nsmail2.newstarfresh.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {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:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
<div class="Section1">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">Thanks
Lyle,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">I
did “cfgmaker --output
/var/www/mrtg/192.191.191.21.cfg <a moz-do-not-send="true"
href="mailto:public@192.191.191.21">public@192.191.191.21</a></span><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">”</span><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
and
got the cfg file. When I run indexmaker on it “indexmaker
/var/www/mrtg/192.191.191.21.cfg > /var/www/mrtg/index2.html”<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">I
get a page, but that has problems. It looks like it tried
to create a graph for each interface it found. It looks as if it tried
to
create a page /var/www/mrtg/192.191.191.21_3.html, and
192.191.191.21_6.html
etc etc, but there aren’t any 192.191.191.21_#.html files anywhere. The
hyperlink looks right <a class="moz-txt-link-freetext" href="http://myserver/mrtg/">http://myserver/mrtg/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">192.191.191.21_3.html.
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">Does
it appear like I still don’t have the cfgmaker
right or is it something with indexmaker?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></p>
</div>
</div>
</div>
</blockquote>
Are there # symbols at the front of those lines in the config files?<br>
<blockquote
cite="mid:DF09AD870C03E34282E88D241388E8164B4545@nsmail2.newstarfresh.com"
type="cite">
<div class="Section1">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">What
is a good way to organize many devices? I was
thinking of building a cfg directory under the mrtg. It looks like each
device
will have many associated html files and that could get complicated.
Then
perhaps one master page with a link to all the individual pages I’ve
made
with indexmaker. What did you do?<o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></b></p>
</div>
</div>
</div>
</blockquote>
No, use rrdtool and Routers2.cgi and stop rebuilding those .png files
every 5 minutes. Huge waste of CPU cycles and severely limits the
number of devices you can monitor using mrtg.<br>
<br>
Lyle<br>
<br>
<blockquote
cite="mid:DF09AD870C03E34282E88D241388E8164B4545@nsmail2.newstarfresh.com"
type="cite">
<div class="Section1">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"><br>
<b>Subject:</b> Re: [mrtg] Can't add any devices with cfgmaker<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Mike Gideon wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">I just installed
MRTG on
Ubuntu. </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">It seems to be
working
fine. I added my local linux with</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Cfgmaker
public@localhost
> /etc/mrtg.cfg</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">That is running
just fine,
updating every 5 minutes like it is supposed to. I want to add more
devices now but I get an error. I try </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Cfgmaker <a
moz-do-not-send="true" href="mailto:public@192.191.191.21">public@192.191.191.21</a>
>
/etc/mrtgtry2.cfg</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">It runs a bit
then tells me</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">--base: Get
Device Info on <a moz-do-not-send="true"
href="mailto:public@/etc/mrtgtry2.cfg:">public@/etc/mrtgtry2.cfg:</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Error:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> can't resolve
"/etc/mrtgtry2.cfg" to IP address</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> at
/usr/share/perl5/SNMP_util.pm line 426</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">SNMPWALK Problem
for <a moz-do-not-send="true"
href="mailto:public@/etc/mrtgtry2.cfg::::::v4only">public@/etc/mrtgtry2.cfg::::::v4only</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> at
/usr/bin/cfgmaker
line 861</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">WARNING: Skipping
<a moz-do-not-send="true" href="mailto:public@/etc/mrtgtry2.cfg:">public@/etc/mrtgtry2.cfg:</a>
as no
info could be retrieved</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">I can run
snmpwalk and get
info back:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">snmpwalk -Os -c
public -v 1
192.191.191.21 system</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysDescr.0 =
STRING: ProCurve
J4899A Switch 2650, revision H.10.83, ROM H.08.02
(/sw/code/build/fish(mkfs))</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysObjectID.0 =
OID:
enterprises.11.2.3.7.11.29</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysUpTime.0 =
Timeticks:
(1094649276) 126 days, 16:41:32.76</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysContact.0 =
STRING: </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysName.0 =
STRING: ProCurve
2650</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysLocation.0 =
STRING:
Server Room</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">sysServices.0 =
INTEGER: 74</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Cfgmaker seems to
want to
replace the IP addr of the device with the –output. </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Am I doing
something simple
wrong?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;">Thanks in advance.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt;"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><span
style="font-size: 12pt; font-family: "Times New Roman","serif";">Try:<br>
<br>
cfgmaker <a moz-do-not-send="true" href="mailto:public@192.191.191.21">public@192.191.191.21</a>
-output=/etc/mrtgtry2.cfg<br>
<br>
cfgmaker thinks the second part is a second device to poll.<br>
<br>
Lyle Giese<br>
LCR Computer Services, Inc.<o:p></o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>