Re: mrtg config question

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

 



On Fri, 2006-07-07 at 22:25 -0700, 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

There's a few things that do that, too (htdig, webalizer, etc.).  It
seem odd to me, as well, they are logs, not libraries.  I suppose you
might bugzilla it, on that point (that they're really in the wrong
place).  In other distros, that sort of thing would get a package
dropped.

> 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...

When I installed it, you configured it just the once.  And it already
had created a CRON entry that ran every five minutes.

> I suppose I could run mrtg as root... but I hate running stuff as root 
> if not needed.

Don't know if it is needed, that might depend on what you're polling for
information.  I left it as-is.  Mine is just producing results for
traffic through my router, the only variable is the amount of data, no
address interpretation is involved, so I can't see how it can be
exploited.

> Or, how can I grant write permission so the mrtg user can write to 
> /var/www/mrtg, but not other apache-owned files/directories?

Change the ownership of that directory to the same as mrtg.

-- 
(Currently running FC4, occasionally trying FC5.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux