[prev in list] [next in list] [prev in thread] [next in thread]
List: rrd-users
Subject: [rrd-users] Using RRDTool in C App - Graph not being produced
From: travislspencer () gmail ! com (Travis Spencer)
Date: 2007-02-26 17:41:14
Message-ID: e3b7bac0702260941h22df339ue4c0871c58a398bf () mail ! gmail ! com
[Download RAW message or body]
On 2/25/07, Mark Easton <mark.easton at azurebell.co.nz> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic