[mrtg] Re: Can't write .tmp files as --user mrtg after upgrade

Tim Sheets TSheets at illinois.net
Mon Mar 8 04:10:29 MET 2004


Thanks for the response.  I have double-checked things, and added a logdir directive to both the "master" config file and the included one as well (have tried running the included file independantly for troubleshooting).

Here is the relevant information from my master, included file, and directory permissions
:
[tsheets at tntux mrtg]$ cat master-pps.cfg
Interval: 5
Refresh: 300
RunAsDaemon: yes
LogDir: /var/log/mrtg
WorkDir: /var/www/html/mrtg/pps
Options[_]: growright,nopercent
WithPeak[_]: wmy
IconDir: /images

Include: /home/mrtg/rtc-vi-pps.cfg


[tsheets at tntux mrtg]$ more rtc-vi-pps.cfg

### Global Defaults

LogDir: /var/log/mrtg
EnableIPv6: no
Options[_]: nopercent,growright
WithPeak[_]: wmy
Directory[_]: rtc-vi
WorkDir: /var/www/html/mrtg/pps
<snip rest of config file>

[root at tntux mrtg]# ls -l /var/log |grep mrtg
drwxrwsr-x    5 root     mrtg         4096 Mar  7 20:58 mrtg

[root at tntux mrtg]# ls -l /var/log/mrtg
drwxrwsr-x    2 root     mrtg         4096 Mar  7 21:02 master-pps
drwxrwsr-x    2 root     mrtg         4096 Mar  7 20:58 rtc-vi-pps

I have also logged in as the user 'mrtg' and can create files in the /var/log/mrtg/ directory (as well as the workdir).

Any other thoughts on why this doesn't work as the user 'mrtg' as it did before under version 2.9.29??

Thanks for all your help.

Tim

-----Original Message-----
From:	Takumi Yamane [mailto:yamtak at b-session.com]
Sent:	Fri 3/5/2004 6:19 PM
To:	mrtg at list.ee.ethz.ch
Cc:	
Subject:	[mrtg] Re: Can't write .tmp files as --user mrtg after upgrade

On Fri, 5 Mar 2004 17:32:05 -0600, "Tim Sheets" wrote 
in <7CD4CD9D537C294D9ED9E5CE2F0191060167E3AB at MAILSERV.linc2icn.net>:
> 
> /usr/bin/rateup: Permission denied
> Rateup ERROR: Can't open my.router.net_fastethernet0_0-pps.tmp for 
> write
...
> Can anyone tell me where it is trying to write this .tmp file?

/<LogDir>/<Directory>

Am I right?
Takumi Yamane <yamtak at b-session.com>

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





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



More information about the mrtg mailing list