[rrd-users] no graph-update

Andre Lorenz andre at ns-cw.net
Fri Sep 26 16:38:49 CEST 2008


hi,

i've strange problem. mrtg will not draw a graph.

the part from mrtg.conf
Target[http_1]: `/etc/mrtg/http.cnt`
MaxBytes[http_1]: 1024
Title[http_1]: HTTP Count
PageTop[http_1]: <H1> HTTP traffic</H1>
Options[http_1]: gauge,absolute
kMG[http_1]: k,M,G,T,P
LegendI[http_1]: Traff IN:
LegendO[http_1]: Traff OUT:

Script:
IN=`iptables -nvxL | grep dpt:80| awk '{ sum+=$2; } END {
printf("%d\n",sum); }'`
OUT=`iptables -nvxL | grep spt:80| awk '{ sum+=$2; } END {
printf("%d\n",sum); }'`
echo $IN
echo $OUT
#echo $((( $IN / 1024) / 1024 ))
#echo $((( $OUT / 1024 ) / 1024 ))
echo `uptime | awk '{ print $3, $4, $5 }'`
echo `hostname`

if i'm running the script i'm getting data like this.
11356924
143649150
TIME
FQDN

the same is working for:
Target[IF_1]: `/etc/mrtg/traf.cnt`
MaxBytes[IF_1]: 1024
Title[IF_1]: Traff Count
PageTop[IF_1]: <H1> compl. traffic</H1>
Options[IF_1]: gauge,absolute
kMG[IF_1]: k,M,G,T,P
LegendI[IF_1]: Traff IN:
LegendO[IF_1]: Traff OUT:

which is strange.

does anyone have an idea ?





More information about the rrd-users mailing list