[mrtg] Re: anybody knows this problem?

Anson Rinesmith arinesmith at bigrivertelephone.com
Fri Oct 14 16:41:30 MEST 2005


I would check the file and directory permissions of where you have your
config files. MRTG creates a temp file in that same directory when it is
running. Assume you have myconfig.cfg, the file will look something like
myconfig.cfg_l_87659 or some other number. Be sure user mrtg has permissions
on all the files and the directory.

---
Anson Rinesmith

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Tao Yaoning
Sent: Thursday, October 13, 2005 9:00 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] anybody knows this problem?

Hello everybody
I use mrtg to monitor the traffic. It's the lastest version. I run MRTG as
Daemon mode. When I login as root, it works OK, only I need to do is to
change the web files' ownership. Becuase I run in root, so all the file
created by MRTG belong to root.root. but when MRTG try to update the data,
it use MRTG privilege and don't have permission to edit these files.
 So I think I can run MRTG under user mrtg, but I get an error messages, it
told me that that user mrtg didn't have permission to create the temperately
lock in /usr/local/mrtg/bin/mrtg file 1640 line.
I check the /usr/local/mrtg/bin/mrtg file, in 1640 it's like this
 open(LOCK,">$template_lock")*******************
 Anybody can give me an idea?
 Thanks

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list