[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] No graph for negative clock offset
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] No graph for negative clock offset
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Mon, 28 Jul 2008 10:18:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=4fBrLx4D9bBx+BtptEg/1vECsl3tPljOKT4XqsGqhhI=; b=jXK+GgZU8ANmOM2Ee5MyX5ray7om7UUiNtTuA+NyeCkJFsICkIBEJkigjzvYzGXAMx jsRFKFlRvR2xi47Gnhai2+UDD2wya9s9yXEtfVB2lj5/susb0lxhxPRcOZxtV0DMNRdD MrIPhZcbRrvcc4J/oLTSAmD+n98MgiG3axhOM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=VPR5zlrdEGur2PoDnw6/loD2Sq7WqkpeU4p5q0A5clOmzH8Gu73o0K31Et12+Fd0hh BHfTtH84L9C4cpjju+gEGNbfw/Wig+ifkigUxJ8mQFJhjD/hpC0P4a8TwlYmkvc+VkKv OOnS5RoW5hiGci9XPmVx8e9yVqleZ+4BtPUUU=
- References: <488DC958.6020803 (at) stufflemail.com> <1F7B01020EC4D04DA17703634B9E888E09BFE219 (at) ULPGCTMVMAI003.EU.COLT>
Judging by the man page, negative values are OK. The first entry in the
EXAMPLE section of "man rrdcreate" reads:
rrdtool create temperature.rrd --step 300 \
DS:temp:GAUGE:600:-273:5000 \
RRA:AVERAGE:0.5:1:1200 \
RRA:MIN:0.5:12:2400 \
RRA:MAX:0.5:12:2400 \
RRA:AVERAGE:0.5:12:2400
This sets up an RRD called temperature.rrd which accepts one
tempera-
ture value every 300 seconds. If no new data is supplied for more
than
600 seconds, the temperature becomes *UNKNOWN*. The minimum
acceptable
value is -273 and the maximum is 5'000.
Ralph Mitchell
On Mon, Jul 28, 2008 at 9:24 AM, Ward, Martin <Martin.Ward (at) colt.net> wrote:
> Funnily enough I am looking at the Hobbit code that deals with RRD data
> at the moment. If you are using the NCV capabilities then it looks like
> you can't have negative numbers. The generic NCV (Number, Colon, Value)
> code looks for numbers only, no signs (somewhere near line 70 in
> hobbitd/rrd/do_ncv.c):
>
> val = l + strspn(l, " \t");
> l = val + strspn(val, "0123456789.");
>
> I have no idea if RRD is able to accept/store negative values, but if it
> is, it should be a simple case of adding the + and - characters to the
> last line listed above to make what you want possible.
>
> |\/|artin
>
> -----Original Message-----
> From: David Stuffle [mailto:david (at) stufflemail.com]
> Sent: 28 July 2008 14:28
> To: hobbit (at) hswn.dk
> Subject: [hobbit] No graph for negative clock offset
>
>
> Hi all,
> None of my clock offset graphs graph anything when the clock offset from
>
> a host is a negative number. Only positive number work. Anyone having
> the same thing happen or know how to fix?
>
> I'm running a snapshot 4.3.0-0.20080103
>
> Thanks
> David
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
>
>
> *************************************************************************************
> The message is intended for the named addressee only and may not be
> disclosed to or used by anyone else, nor may it be copied in any way.
>
> The contents of this message and its attachments are confidential and may
> also be subject to legal privilege. If you are not the named addressee
> and/or have received this message in error, please advise us by e-mailing
> security (at) colt.net and delete the message and any attachments without
> retaining any copies.
>
> Internet communications are not secure and COLT does not accept
> responsibility for this message, its contents nor responsibility for any
> viruses.
>
> No contracts can be created or varied on behalf of COLT Telecommunications,
> its subsidiaries or affiliates ("COLT") and any other party by email
> Communications unless expressly agreed in writing with such other party.
>
> Please note that incoming emails will be automatically scanned to eliminate
> potential viruses and unsolicited promotional emails. For more information
> refer to www.colt.net or contact us on +44(0)20 7390 3900.
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>