debugging rrdtool?
helloI'm running rrdtool on FreeBSD to monitor:
- server cpu load
- throughput
- mail count
- requests per second on apache/mysql
I'm doing my own scripts, except the one for uptime:
Code:
DATA=`uptime | sed -e 's/^.*average.*: \(.*\)$/\1/' -e 's/ //g' | awk -F, '{ printf("%.0f:%.0f",$1*100,$3*100); }'` /usr/local/bin/rrdtool update /home/mrtg/public_html/rrd/cpuload.rrd N:$DATA
so it seens it's correct...
I tried "rrdtool dump cpuload.rrd", but it doesn't say to much... the last entries are:
<!-- 2005-09-29 23:40:00 BRT / 1128048000 --> <row><v> 1.4292439762e+07 </v><v> 3.3362738783e-03 </v></row>
<!-- 2005-09-29 23:45:00 BRT / 1128048300 --> <row><v> 1.4326546910e+07 </v><v> 1.4302429152e+07 </v></row>
<!-- 2005-09-29 23:50:00 BRT / 1128048600 --> <row><v> 1.4128575068e+04 </v><v> 1.4314552706e+07 </v></row>
<!-- 2005-09-29 23:45:00 BRT / 1128048300 --> <row><v> 1.4326546910e+07 </v><v> 1.4302429152e+07 </v></row>
<!-- 2005-09-29 23:50:00 BRT / 1128048600 --> <row><v> 1.4128575068e+04 </v><v> 1.4314552706e+07 </v></row>
does rrdtool has some restrictions with small numbers (like 5, 40, 50)?
the graphic generated is very weird... the red color should be a LINE... but seens it goes up,down,up,down...
the file is attached
thanks