[rrd-users] RRDtool Pipe Transaction Delimiter

Larry Adams larryjadams at comcast.net
Mon Aug 10 19:03:44 CEST 2009


Say Tobi, long time...

Tobias Oetiker wrote:
> Hi Larry,
>
> Today Larry Adams wrote:
>
>   
>> All,
>>
>> I am writing a function in PHP that opens a bi-directional process to
>> rrdtool using the syntax:
>>
>> rrdtool -
>>
>> As everyone is pretty much aware, this open a pipe that can receive
>> commands from standard in and echo back on standard out.
>>
>> However, I wanted to confirm what character steam should be used to
>> confirm that an entire package has been received from the rrdtool pipe.
>> At the moment, I am using either of the following two substring matches:
>>
>> "OK"
>> "ERROR"
>>
>> Is this sufficient?  Are there any other substring matches that tell me
>> that the command has completed?
>>     
>
> almost, but have a look at the graphv command since it can return
> an inline graph, there  you have to just read the number of
> characters advised before the graph is being dumped ...
>
> cheers
> tobi
>
>   
This is fine.  Except that the process is only doing the two calls:

info
xport

for a statistical reporting interface.  It's what essentially amounts to 
last average and last peak from the RRD for each DS.

Larry
>> Thanks in Advance,
>>
>> Larry Adams
>> TheWitness @
>> www.cacti.net
>>
>> _______________________________________________
>> rrd-users mailing list
>> rrd-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090810/7adb1ced/attachment.html 


More information about the rrd-users mailing list