Hi, <br><br>I installed mrtg on centos5 with 14all.cgi script. <br><br>I downloaded it from below URL. <br><br><a href="http://my14all.sourceforge.net/14all-1.1.txt" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://my14all.sourceforge.net/14all-1.1.txt</a> and copies it as
14all.cgi @ /var/www/cg-bin<br><br>I made a few changes to the script. Those changes can be seen in <span style="font-weight: bold;">BOLD</span> letteres. <br><br><br># if MRTG_lib.pm (from <span id="st" name="st" class="st">
mrtg</span>) is not in the module search path (@INC)<br># uncomment the following line and change the path appropriatly:<br>#use lib qw(/usr/local/<span id="st" name="st" class="st">mrtg</span>-2/lib/mrtg2<div id="mb_0">);
<br><span style="font-weight: bold;">use lib qw(/usr/lib/mrtg2);</span><br><br># if RRDs (rrdtool perl module) is not in the module search path (@INC)<br># uncomment the following line and change the path appropriatly<br>
# or use a LibAdd: setting in the config file<br>#use lib qw(/usr/local/rrdtool-1.0.38/lib/perl);<br><span style="font-weight: bold;">use lib qw(/usr/lib/perl5/vendor_perl/<span id="st" name="st" class="st">5</span>.8.8/i386-linux-thread-multi);
</span><br><br>### where the
<span id="st" name="st" class="st">mrtg</span>.cfg file is<br># anywhere in the filespace<br>#$cfgfile = '/home/<span id="st" name="st" class="st">mrtg</span>/<span id="st" name="st" class="st">mrtg</span>.cfg';<br>
#$cfgfile = '/etc/<span id="st" name="st" class="st">mrtg</span>/<span id="st" name="st" class="st">mrtg</span>.cfg';<br># relative to the script<br><span style="font-weight: bold;">$cfgfile = '
</span><span style="font-weight: bold;" id="st" name="st" class="st">mrtg</span><span style="font-weight: bold;">.cfg';</span><br># use this so <span id="st" name="st" class="st">14all</span>.<span id="st" name="st" class="st">
cgi</span> gets the cfgfile name from the script name<br>#(<span id="st" name="st" class="st">14all</span>.<span id="st" name="st" class="st">cgi</span> -> <span id="st" name="st" class="st">14all</span>.cfg)<br>#$cfgfile = '
<span id="st" name="st" class="st">mrtg</span>.cfg';</div><br><br>It works fine. But When this server comes up , after rebooting,
<br><br>the traffic of the First graph (i.e <font size="2">Daily' graph (5 Minute Average) goes up, both incoming and outgoing traffic go up to 50-60 Mbits per secrond. <br><br>This happened, Whenever the system comes up after a reboot.
<br><br>Any idea to solve this issue? <br><br>Unless it reboots, It works fine. <br><br>Also, I want to know, Where is this mtrg date stored? I want to back up data. If the system crashes one day, then, I will be able to retrieve it.
<br>
<br><br></font>-- <br>Thank you<br>Indunil Jayasooriya<br>