[Py-RRDTool-Users] New line weirdness
Status: Beta
Brought to you by:
perky
From: Mark K. <mr...@eu...> - 2004-08-27 13:30:27
|
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. Thank you. MArk |