[CentOS] MRTG question on CentOS
Indunil Jayasooriya
indunil75 at gmail.com
Fri Feb 29 02:58:42 UTC 2008
On Thu, Feb 28, 2008 at 11:21 AM, Rogelio <scubacuda at gmail.com> wrote:
> I'm trying to get MRTG up and running on CentOS, but the displayed http page
> says that I don't have permission to access /mrtg/ on the server.
>
> Here are my commands
>
> yum install mrtg
> vim /etc/httpd/conf.d/mrtg.conf
my mrtg.conf file is like this. this is on Centos 4.4
[root at worldnet conf.d]# cat /etc/httpd/conf.d/mrtg.conf
#
# This configuration file maps the mrtg output (generated daily)
# into the URL space. By default these results are only accessible
# from the local host.
#
Alias /mrtg /var/www/mrtg
<Location /mrtg>
Order deny,allow
Deny from all
Allow from all
</Location>
> /etc/init.d/httpd restart
> cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]:
> bits,growright' --output /etc/mrtg/mrtg.cfg public at 10.200.200.1
> mrtg /etc/mrtg/mrtg.cfg
> env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
> env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg (type again, per the MRTG
> instructions)
then, you need index.html file.pls issue below command.
indexmaker /etc/mrtg/mrtg.cfg > /var/www/mrtg/index.html
R u on Centos 5.X? What about Selinux ? is it enabled? if it is
enabled, pls set apaches's /var/www/html Selinux context to /var/www
as follows
chcon --reference=/var/www/html/ -R /var/www/
--
Thank you
Indunil Jayasooriya
More information about the CentOS
mailing list