I'm using native mode. There is the default Fedora cron script that cleans up /var/log, but I don't have any program that goes and deletes .log files in /home/adam/public_html/mrtg. Here is a listing of the directory:
[r...@missioncontrol mrtg]# ls -l total 176 -rw-r--r-- 1 root root 2207 2009-06-05 06:15 localhost_10.1.3.1-day.png -rw-r--r-- 1 root root 8993 2009-06-05 06:15 localhost_10.1.3.1.html -rw-r--r-- 1 root root 1633 2009-06-05 05:25 localhost_10.1.3.1-month.png -rw-r--r-- 1 root root 50202 2009-06-05 06:15 localhost_10.1.3.1.old -rw-r--r-- 1 root root 1779 2009-06-05 06:10 localhost_10.1.3.1-week.png -rw-r--r-- 1 root root 1991 2009-06-04 18:10 localhost_10.1.3.1-year.png -rw-r--r-- 1 root root 2534 2009-06-05 06:15 localhost_68.209.223.242-day.png -rw-r--r-- 1 root root 6808 2009-06-05 06:15 localhost_68.209.223.242.html -rw-r--r-- 1 root root 1588 2009-06-05 05:40 localhost_68.209.223.242-month.png -rw-r--r-- 1 root root 49936 2009-06-05 06:15 localhost_68.209.223.242.old -rw-r--r-- 1 root root 1874 2009-06-05 06:00 localhost_68.209.223.242-week.png -rw-r--r-- 1 root root 1748 2009-06-04 18:10 localhost_68.209.223.242-year.png -rw-r--r-- 1 root root 538 2009-04-30 15:18 mrtg-l.png -rw-r--r-- 1 root root 414 2009-04-30 15:18 mrtg-m.png -rw-r--r-- 1 root root 1759 2009-04-30 15:18 mrtg-r.png Steve Shipway wrote: > Looks like you have something automatically deleting your log files. Are you > using native mode (.log) or RRDtool mode (.rrd)? Some people have > badly-written 'reaper' programs that on a daily basis go through the > filesystem deleting all .log files... > > Steve > > ________________________________________ > From: [email protected] [[email protected]] On Behalf > Of Adam Williams [[email protected]] > Sent: Friday, 5 June 2009 2:28 a.m. > To: [email protected] > Subject: [mrtg] MRTG resets all graphs daily, why? > > At http://www.squeezer.net/mrtg/localhost_68.209.223.242.html you will > see that all graphs are reseting daily (the weekly, monthly, and yearly > graphs are only showing one day of data). How can I fix this so that > the weekly, monthly, and yearly graphs display the correct data? I am > running MRTG 2.16.2 on Fedora 10 i386. /etc/mrtg/mrtg.cfg was created with: > > /usr/bin/cfgmaker --output=/etc/mrtg/mrtg.cfg --global "workdir: > /home/adam/public_html/mrtg" -ifref=ip --global "options[_]: > growright,bits" craz33...@localhost > > and in /etc/crontab I have: 0-59/5 * * * * root env LANG=C > /usr/bin/mrtg /etc/mrtg/mrtg.cfg > > > > _______________________________________________ > mrtg mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/mrtg > _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
