Nagiostat/rrdtool


#1

Hi,

I’m trying to create a graph of the cpu utilization, the graph appears but I think that the values in the graph are incorrect.

In the debug.log of nagiostat I see the correct value:
**INCOMING PERFDATA:
LASTCHECK=1138051694
HOSTNAME=fs_lyl
SERVICEDESCR=“Cpu 1 min"
OUTPUT=“Load OK - Up 41 days 7 hours 59 minutes, 1-min load average = 10%
PERFDATA=””
+VALUE: 10
=INSERT into 'fs_lyl-cpu1.rrd: 10 DSA-names=cpu
!RRDCMDLINE: /usr/local/rrdtool-1.2.12/bin/rrdtool update /usr/local/nagios/nagiostat/archives/fs_lyl-cpu1.rrd --template cpu 1138051695:10

Within nagiostat.conf I have the following:
RRDCreateTemplate cpu1_10min --step 600 DS:cpu:GAUGE:1200:0:100 RRA:AVERAGE:0.5:1:396 RRA:AVERAGE:0.5:6:336 RRA:AVERAGE:0.5:24:480
PlotTemplate cpu1_10min --start $s --end $e DEF:cpu=$f:cpu:AVERAGE LINE1:cpu#00A000:“CPU utilisation” GPRINT:cpu:MAX:“CPU MAX\: %.4lgms” GPRINT:cpu:MIN:“CPU MIN\: %.4lgms” GPRINT:cpu:AVERAGE:"CPU average\: %.4lgms"
ValueRegexTemplate cpu_nw "output:cpu:/load average = ([0-9.]+)%/"
InsertValue fs_lyl-cpu1.rrd cpu1_10min /fs_lyl/ “/CPU 1 min/” cpu_nw
Graph fs_lyl-cpu1 fs_lyl-cpu1.rrd std_1year cpu1_10min default.html “CPU fs_lyl.adp.nl”

Any id what is wrong

Rene


#2

can you post a picture of the graph? What do you think is wrong?

Luca