[rrd-users] Supressing RRDTool "OK" message in pipe mode

Phix mark at phix.me
Fri Feb 27 18:25:26 CET 2009

Hi Alex,

The reason I am using RRDTool in pipe mode is because I have reached the
command line argument limit of my shell (I have over 2000 DEF statements, to
give you an idea of the number of RRD files I am dealing with). My only
option here is to use RRDTool's pipe method, and then pipe my lengthy
RRDTool graph definition into RRDTool STDIN and read the binary PNG stream
on RRDTool's STDOUT. But RRDTool insists on sticking an "OK" message at the
end, which strictly isn't part of the PNG binary stream (it doesn't affect
the ability of a graphics application or my browser from viewing the PNG
file, but still, it shouldn't really be there).

I would have expected RRDTool to suppress all other informative output if it
has just streamed a binary PNG file to its STDOUT, but this doesn't seem to
be the case.

Thanks for your help.

Alex van den Bogaerdt-2 wrote:
> The "graph" command does suppress any other output, but "rrdtool -" does 
> not.
> I have no answer to your question about turning this off, but I do have a 
> question myself:
> I assume you do something like:  echo graph - DEF:... AREA:... | rrdtool -
> Why? Why are you doing this in pipe mode?
> Maybe I'm missing something here, but I see no benefit in running a single 
> rrdtool command in pipe mode.
> Changing your command line to "rrdtool graph - DEF:... AREA:..." would
> solve 
> the problem, but does not answer your question.
> Alex

View this message in context: http://www.nabble.com/Suppressing-RRDTool-%22OK%22-message-in-pipe-mode-tp22246770p22250251.html
Sent from the RRDTool - User mailing list archive at Nabble.com.

More information about the rrd-users mailing list