Hi there, I've done the following simple rrdcgi-script: --------8<--------8<--------8<--------8<--------8<--------8<--------8<--------
#!/opt/rrdtool/bin/rrdcgi <HTML> <BODY> <RRD::GRAPH ip.png --imginfo '<IMG SRC=%s WIDTH=%lu HEIGHT=%lu >' DEF:ip=ip.rrd:ip:LAST AREA:ip#003366:IP > </BODY> </HTML> --------8<--------8<--------8<--------8<--------8<--------8<--------8<-------- This works so far. But if I do this: --------8<--------8<--------8<--------8<--------8<--------8<--------8<-------- #!/opt/rrdtool/bin/rrdcgi <HTML> <BODY> <RRD::SETVAR bla "DEF:ip=ip.rrd:ip:LAST AREA:ip#003366:IP"> <RRD::GRAPH ip.png --imginfo '<IMG SRC=%s WIDTH=%lu HEIGHT=%lu >' <RRD::GETVAR bla> > </BODY> </HTML> --------8<--------8<--------8<--------8<--------8<--------8<--------8<-------- I get the error: [ERROR: Cannot parse CF in 'DEF:weltv4=ip.rrd:ip:LAST AREA:ip#003366:IP'] All I want to do is to put DEF:ip=ip.rrd:ip:LAST AREA:ip#003366:IP in a variable und read it. Is this possible (rrdtool version is 1.2.30)? Stefan _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
