hi below is the code used to print the graph, how do i get it to print in text mode just the stats? i tried using print instead of gprint but couldn't get it to work, i need the current,average and maximum that is displayed on the graph in text mode. Please advice -> an example of the function call would be appreciated
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1160470586 \
--end=1160556986 \
--title="Myaree Core - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/10/10 16:56:26 To 2006/10/11 16:56:26\c" \
COMMENT:"\n" \
--vertical-label="percent" \
DEF:a="/usr/share/cacti/site/rra/myaree_core1_nas_5min_cpu_69.rrd":5min_cpu:AVERAGE \
AREA:a#FF0000:"CPU Usage" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf"
retrieving stats
Moderators: Developers, Moderators
is okie i have figured it out..
/usr/bin/rrdtool graph test.txt \
DEF:a="/usr/share/cacti/site/rra/myaree_core1_nas_5min_cpu_69.rrd":5min_cpu:AVERAGE\
PRINTLAST:"Current\:%8.0lf" \
PRINTAVERAGE:"Average\:%8.0lf" \
PRINTMAX:"Maximum\:%8.0lf"
just have to change the - after graph to text.txt or something
hope this will help anyone looking for the same thing
/usr/bin/rrdtool graph test.txt \
DEF:a="/usr/share/cacti/site/rra/myaree_core1_nas_5min_cpu_69.rrd":5min_cpu:AVERAGE\
PRINTLAST:"Current\:%8.0lf" \
PRINTAVERAGE:"Average\:%8.0lf" \
PRINTMAX:"Maximum\:%8.0lf"
just have to change the - after graph to text.txt or something
hope this will help anyone looking for the same thing
Who is online
Users browsing this forum: No registered users and 3 guests