Re: rrdcache Update success response..

Steve Shipway <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <28E447343A85354483BCF7C3E9D5EAA5149A849D@uxcn10-1.UoA.auckland.ac.nz>
This is not actually a complete success message, a complete success doesnt have the 'errors,' prefix.  The initial '0' is the status code -- 0 for "OK,no more lines follow".

The 'errors, enqueued' message is a 'partial success' message; possibly it thinks you sent two values and only one was correctly enqueued (check for multiple or trailing spaces in the command you sent which could be taken as a badly-formatted value)

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[email protected]
Ph: +64 9 373 7599 ext 86487


________________________________________
From: [email protected] [[email protected]] on behalf of Shaun Reitan [[email protected]]
Sent: Tuesday, 2 November 2010 7:36 a.m.
To: [email protected]
Subject: [rrd-developers] rrdcache Update success response..

On a successful update you get the following response.

     0 errors, enqueued 1 value(s).

The problem i see with this response is that if you carve up the
response using perl (or any other language) using a whitespace as a
delimiter you will end up with the following...

        status = 0
        message = errors, enqueued 1 value(s).

The problem i see here with this response is that the message indicates
there was errors even though i think what it's really trying to say was
0 errors.  The response should probably really say

0 0 errors, enqueued 1 value(s).
OR
0 no errors, enqueued 1 value(s).

maybe this is a bug?

--
Shaun Retian
Chief Technical Officer
Network Data Center Host, Inc.
http://www.ndchost.com

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.