[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I'm trying to produce a simple MTRG graph that trends the increase in
log file entries over the course of a 24 hour period.  I want to be able
to see the time periods which added the most lines.  The problem is the
the graph only shows at most 1 or 2, even though there might be 200
entries added to the the logfile every hour.  What am I missing?

--- mrtg.cfg ----
WorkDir: /var/www/html/
Title[stats]: Log Entries
PageTop[stats]: <h1>Log Entries</h1>
Target[stats]: `/home/scripts/line-count.sh`
MaxBytes[stats]: 10000
Suppress[stats]: ymw
Options[stats]:growright,nobanner,nolegend,noinfo,integer,nopercent
YLegend[stats]: entries
-----------------------

--- line-count.sh ----
#!/bin/sh
/usr/bin/wc -l /var/log/messages | awk '{ print $1 }'
echo 0
echo ""
echo ""
----------------------

Tia,

-Jim P.





</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00438.html">[ale] ntfs only accessible by root</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00440.html">[ale] ntfs only accessible by root</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00464.html">[ale] [[email protected]: An Illustrated Guide to IPSec]</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00444.html">[ale] OT:  Geek Squad to repaint cars in CA</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00439"><strong>Date</strong></a></li>
<li><a href="threads.html#00439"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>