Olá
Estou tentando configurar o mrtg num servidor CL8. Chega a gerar os graficos, mas eles ficam todos sem informações (veja em http://www.labcon.com.br/mrtg/eth0.html). E não aparece nenhuma msg de erro.
Alguém tem idéia o que pode ser?
Segue abaixo os arquivos que estou usando:

Arquivo eth0.sh:
#!/bin/awk -f
/eth0:/ { $0=substr($0, index($0,":")+1); print $1; print $9}

Arquivo eth1.sh:
#!/bin/awk -f
/eth1:/ { $0=substr($0, index($0,":")+1); print $1; print $9}

Arquivo cpu.sh:
#!/bin/sh
mem=$(/usr/bin/free|grep Mem
cpu=$(grep '^cpu ' /proc/stat)
/bin/awk -v cpu="$cpu" -v mem="$mem" '
BEGIN {
split(cpu,cpustats)
print 100-int(100*cpustats[5]/(cpustats[2]+\
cpustats[3]+cpustats[4]+cpustats[5]))
split(mem,memstats);
print int(100*memstats[3]/(memstats[3]+\
memstats[4]));
}'

Arquivo mrtg.conf:
## MRTG.CONF
WorkDir: /var/www/default/bem-vindo/mrtg
Language: brazilian

Target[eth0]: '/etc/mrtg/eth0.sh /proc/net/dev'
Title[eth0]: Tráfego da eth0
PageTop[eth0]: <h1>Tráfego da eth0 </h1>
MaxBytes[eth0]: 1250000
Options[eth0]: growright,bits,noinfo

Target[eth1]: '/etc/mrtg/eth1.sh /proc/net/dev'
Title[eth1]: Tráfego da eth1
PageTop[eth1]: <h1>Tráfego da eth1 </h1>
MaxBytes[eth1]: 1250000
Options[eth1]: growright,bits,noinfo

Target[perf]:'/etc/mrtg/cpu.sh'
Title[perf]: CPU e memória
PageTop[perf]: <h1>Uso de CPU e memória </h1>
MaxBytes[perf]:100
Unscaled[perf]:ymwd
Options[perf]: growright,noinfo,gauge
YLegend[perf]: Percentual
ShortLegend[perf]: %
Legend1[perf]: Uso de tempo da CPU
Legend2[perf]: Uso da memória real
LegendI[perf]: CPU
LegendO[perf]: Mem


[ ]'s
Ivo