I get the following error when I generate a graph using the RRDs graph.

problem generating the graph: 'SCALAR' is not a valid function name.

Before i use function create and update whitout error.
 
It's not a complicated code because i juste begin with this language.


RRDs::create ($rrd, "--start", $start_time, "--step", 600,
                'DS:up:GAUGE:600:0:U',
                'RRA:MIN:0.5:1:9000',
                'RRA:MAX:0.5:10:5040',  
                'RRA:AVERAGE:0.5:1:200');

my $start = time() - 7200;
my $end = time();

RRDs::graph ("tata1.png", \
                        "--end=$end",   \
                        "--start=$start",       \
                        "--a=PNG",      \
                        "--w=100",      \
                        "--h=250",      \
                        "--base=1024",  \
                        "--color=CANVAS#000000",        \
                        "--color=BACK#101010",  \
                        "--color=FONT#ffffdf",  \
                        "--color=MGRID#337fbf",         \ 
                        "--color=GRID#615900",  \
                        "--color=FRAME#808080", \
                        "--color=ARROW#FF0099", \
                        "--title=test", \
                        "'DEF:probe1=tata1.rrd:up:AVERAGE",     \
                        "'LINE2:probe1#FF0000:gigue_vers_serveur");



Thank you for your help, 
Nico
-- 
View this message in context: 
http://n2.nabble.com/generating-graph-%3D%3D%3E-Error-tp2932667p2932667.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to