Re: mrtg config question

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

 



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,
Don




Don,

We run MRTG at work to monitor our backbone routers. It's run as a cron job, every 5 minutes as root. Since it doesn't have any open network connectivity the security issues are fairly low.

If you want run MRTG as the mrtg user, your best bet would probably be to manipulate group write permissions for the related directories and set up the MRTG user in the appropriate group. We've been running MRTG as root for years and have no problems. I guess someone could rootkit mrtg and screw around, but, in our case the box is dedicated to MRTG and is tightly firewalled.

Bob...

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