Re: [Py-RRDTool-Users] New line weirdness
Status: Beta
Brought to you by:
perky
|
From: <hy...@gm...> - 2004-08-27 18:22:45
|
On Fri, 27 Aug 2004 14:30:22 +0100, Mark Kilmartin <mr...@eu...> wrote:
> I have a section of code that calls py-rrdtool as follows.
>
> rrdtool.graph('test.gif','--start=-1days','--title="Demo Graph"',
> 'DEF:rtt=/var/log/nagios/rrd/172.17.2.1_PING.rrd:RTT:AVERAGE',
> 'DEF:max=/var/log/nagios/rrd/172.17.2.1_PING.rrd:RTT:MAX',
> 'COMMENT:"\n maximum average current\n"',
> 'GPRINT:max:MAX:%7.2lf%ss',
> 'GPRINT:rtt:AVERAGE:%7.2lf%ss',
> 'GPRINT:rtt:LAST:%7.2lf%ss')
>
> The data was gathered from calls to ping and seems to work fine.
>
> However when I view the image that is created the text under the graph
> is wrong.
> There the \n from the COMMENT above should be I see A character which
> looks like a V above a T
> I have attached an example of a graph that shows the problem.
>
You can put newline character on the end of comments only. So,
r'COMMENT:\n',
r'COMMENT: maximum average current\n',
may help.
Hye-Shik
|