Postado originalmente por
smsfabio
Olá pesso segui passo a passo o tutorial de instalacao do MRTG, tudo funcionou, porem quando fui inicializar o MRTG com o comando :
( uso o Fedora Core 5 ):
Código :
[root@server bin]# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
Ocorreu o seguinte erro :
Código :
[root@server bin]# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/local/mrtg-2/bin/mrtg /home/usuario/mrtg/mrtg.cfg
-----------------------------------------------------------------------
[root@server bin]# /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/mrtg.cfg
-----------------------------------------------------------------------
[root@server bin]#
vejam como esta o arquivo mrtg.cfg :
Código :
# Created by
# ./cfgmaker --global "WorkDir: /var/www/html/mrtg" --global "Options[_]: bits,growright" --global RunAsDaemon:Yes --output /var/www/html/mrtg/mrtg.cfg public@(meu_ip)
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
WorkDir: /var/www/html/mrtg
Options[_]: bits,growright
RunAsDaemon:Yes
######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################
Agradeço desde ja quem poder me ajudar.