On 2/25/07, Mark Easton <[EMAIL PROTECTED]> wrote:
...
> But when I create the graph image I get no errors and no image file is
> created.
...
>                 sprintf(argstr, "temp.png --start %ld --end %ld
> DEF:mytemp=gopher.rrd:temp:MAX", (long)seconds1, (long)seconds2);

I think it is because you don't have a PRINT or GPRINT statement.

Try this and see if it works:

sprintf(argstr, "temp.png --start %lu --end %lu"
    "DEF:mytemp=gopher.rrd:temp:MAX "
    "GPRINT:min:MAX:Max Temperature %%8.3lf %%s",
    seconds1, seconds2);

Note that the double percent signs are for sprintf not RRD.  I would
suggest that you get things to work w/ RRDTOOL from the command line
first.  Then, write the C code.

-- 

Regards,

Travis Spencer

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

Reply via email to