MRTG on Fedora......

i've installed it but can't seem to get it started.
my document root is /home/sites
here is what i did:


yum install mrtg

vi /etc/httpd/conf.d/mrtg.conf

made sure this was there:

#
# 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 /home/sites/mrtg

<Location /mrtg>
Order deny,allow
# Deny from all
# Allow from localhost localhost.localdomain
Deny from none
Allow from all
# Allow from .example.com
</Location>



vi /etc/mrtg/mrtg.cfg

Change the line -

WorkDir: /var/www/mrtg

to -

WorkDir: /home/sites/mrtg



mv /var/www/mrtg /home/sites

Edit the httpd.conf file -

vi /etc/httpd/conf/httpd.conf


DocumentRoot "/var/www/html"


Change that to -

DocumentRoot "/home/sites"


Edit the i18n file -

vi /etc/sysconfig/i18n


Code:
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

comment out the top line and add this -

Code:
LANG="en_US"


So my final entry (the entire file) will look like this -

Code:
#LANG="en_US.UTF-8"
LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"



/etc/init.d/httpd restart

And finally start MRTG -

/etc/mrtg start ***DIDN'T WORK***
/etc/bin/mrtg start***DIDN'T WORK***
or
/usr/bin/mrtg start***GAVE AN ERROR***

ERROR: Mrtg will most likely not work propperly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case:

env LANG=C /usr/bin/mrtg ...



anyone know how to get MRTG started? or is there a step i am missing?

 

 

 

 

Top