Question on modifying existing Graph Template
Daniel Pum <dpum <at> epicsystems.com>
2003-10-01 18:28:39 GMT
I'm a somewhat new user of Cacti, although I have some Cricket and MRTG experience.
I'm using Cacti 0.8.3a on Linux.
I've noticed that if I modify a Graph Template, I can't view those graphs anymore for hosts that were already using that template.
My goal was to add a VRULE at midnight.
I noticed the following when I went to the individual graph and selected the [source] option.
Before modifying template:
/opt/std/bin/rrdtool graph - \
…deleted...
DEF:a="/clu/lc-serversys/html/cacti/rra/cache_epicdevel_processes_133.rrd":gloref:AVERAGE \
AREA:a#0000FF:"Global References" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Max\:%8.2lf %s"
After modifying template I get no graph output: Again, here's the [source].
/opt/std/bin/rrdtool graph - \
…deleted...
DEF:a="/clu/lc-serversys/html/cacti/rra/cache_epicdevel_processes_133.rrd":gloref:AVERAGE \
AREA:a#0000FF:"Global References" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s" \
VRULE:1064984400#:""
I noticed that the [a] that was defined in the DEF statement is not referenced in the GPRINT statements.
Indeed, running this rrdtool graph command manually results in an error:
ERROR: can't parse ':LAST:Current\: %8.2lf %s'
But, if I add in the [a], I get a successful PNG output.
Can someone point me at what I'm doing wrong? Or is this a bug?
I have PHPMyAdmin setup if I need to manipulate data in the MySQL database. I *really* don't want to lose my historical data by recreating the graph/data source.
Thanks in advance for any help.
--Daniel