Enviada: Qui Mar 02, 2006 10:46 am Assunto: MRTG não funciona no Fedora 4
Pessoal alguém poderia me ajudar a desvendar esse mistério porque o MRTG não está funcionando no meu server Fedora 4???
Ele dá o seguinte erro quando executo o MRTG:
WARNING: Problem with External get '/var/www/html/mrtg/eth0':
Expected a Number for 'in' but got ''
WARNING: Problem with Externale get '/var/www/html/mrtg/eth0':
Expected a Number for 'out' but got ''
ERROR: Target[perf][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[perf][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
o meu mrtg.conf está assim:
WorkDir: /var/www/html/mrtg/graficos
Language: brazilian
#############################################################
Target[netra-proxy]: `/var/www/html/mrtg/eth0`
MaxBytes[netra-proxy]: 512000
kilo[netra-proxy]: 1024
Title[netra-proxy]: Trafego Entrada e Saida para Internet - Servidor Netra-Proxy
PageTop[netra-proxy]:<h2><div align='center'>Uso da Internet - Servidor NetraProxy</h2></div>
Options[netra-proxy]: bits,growright
LegendI[netra-proxy]: Entrada :
LegendO[netra-proxy]: Saida :
Ylegend[netra-proxy]: Bits por Segundo
O arquivo eth0 está assim:
#!/bin/sh
# mrtg script to catch output from ifconfig output
# and input bandwidth without snmp
# by Fany Siswanto <djava8z@unsoed.ac.id>
IFACE="eth0"
IFCONFIG="/sbin/ifconfig"
statname="interface $IFACE"
uptime=unused
stat=`$IFCONFIG $iface|grep GiB` #GiB é como aparece quando damos o ifconfig no FC4 Portugues o normal é aparecer "Mb" tanto faz.
input=`echo $stat|cut -d : -f2|cut -d " " -f1`
output=`echo $stat|cut -d : -f3|cut -d " " -f1`
Bom olha aqui na pagina do Hugo tem um passo a passo em pt-br muito legal, nesse momento ierei tentar instalar ele no server aqui rodando fc4!
clique aqui e entre na página _________________ Agora lembre-se que se este post estiver resolvido edite o título e adicione a tag
[RESOLVIDO]