mrtg config question
Don Russell
fedora at drussell.dnsalias.com
Mon Jul 10 19:03:57 UTC 2006
Don Russell wrote:
> I just installed mrtg 2.13.2 on FC5 and noticed the sample config file
> in /etc/mrtg/mrtg.cfg
>
> This file has LogDir defined as /var/lib/mrtg
>
> I suppose it doesn't really matter... but is that an error/typo?
> Shouldn't logs be kept in /var/log/... ?
>
> I was going to Bugzilla this, but thought I'd get some other opinions
> first. :-)
>
> Part 2: (The fun part) :-)
>
> I created a new userid (mrtg) and created a little script to run
> cfgmaker and indexmaker, but now I don't know how to run mrtg so it
> can produce the graphs etc in /var/www/mrtg...
>
> I suppose I could run mrtg as root... but I hate running stuff as root
> if not needed.
> Or, how can I grant write permission so the mrtg user can write to
> /var/www/mrtg, but not other apache-owned files/directories?
Thanks to all who replied.... I decided to simply add mrtg to
/etc/crontab and run it as root for now... I may revisit this later as a
general exercise. :-)
I am going to Bugzilla the placing of the log files in /var/lib
though... In reading mrtg help stuff upstream, there were references to
the log files being in /var/log... I *suspect* the rpm package using
/var/lib for the log files was just a typo.... and because it works, was
never "caught". :-)
Cheers :-)
More information about the users
mailing list