<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>The 
code I referred to is the Hobbit code not the RRD stuff. Whilst RRD may well 
allow negative numbers it looks like Hobbit is not coded correctly to allow it, 
at least not the source code I am looking at. I know that there is an unofficial 
patch for Hobbit but have no idea whether the code I am looking at is this 
version or not, not if that code has this same bug.</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>If you 
compiled your own Hobbit then you can follow these instructions to modify the 
source:</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>----</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>Change 
to the Hobbit source directory.</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>Edit 
the hobbitd/rrd/do_ncv.c file.</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>Go to 
line 54, which looks like this:</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>                        
l = val + strspn(val, "0123456789.");<BR></FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff size=2>Add a 
- after the . so it looks like this:</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>                        
l = val + strspn(val, "0123456789.-");<BR></FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>Compile and install as per standard instructions.</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>----</FONT></SPAN></DIV>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2> </DIV></FONT></SPAN>
<DIV><SPAN class=373191216-28072008><FONT face=Arial color=#0000ff 
size=2>|\/|artin</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Ralph Mitchell 
  [mailto:ralphmitchell@gmail.com] <BR><B>Sent:</B> 28 July 2008 
  16:18<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] No graph 
  for negative clock offset<BR><BR></FONT></DIV>
  <DIV dir=ltr>Judging by the man page, negative values are OK.  The first 
  entry in the EXAMPLE section of "man rrdcreate" reads:<BR><BR>   
         rrdtool create temperature.rrd --step 300 
  \<BR>             
  DS:temp:GAUGE:600:-273:5000 \<BR>         
      RRA:AVERAGE:0.5:1:1200 
  \<BR>             
  RRA:MIN:0.5:12:2400 \<BR>          
     RRA:MAX:0.5:12:2400 \<BR>       
        
  RRA:AVERAGE:0.5:12:2400<BR><BR>         
  This sets up an RRD called temperature.rrd which accepts one 
  tempera-<BR>         ture value every 300 
  seconds. If no new data is supplied for more than<BR>     
      600 seconds, the temperature becomes *UNKNOWN*.  The 
  minimum acceptable<BR>         value 
  is -273 and the maximum is 5'000.<BR><BR>Ralph Mitchell<BR><BR><BR>
  <DIV class=gmail_quote>On Mon, Jul 28, 2008 at 9:24 AM, Ward, Martin <SPAN 
  dir=ltr><<A 
  href="mailto:Martin.Ward@colt.net">Martin.Ward@colt.net</A>></SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Funnily 
    enough I am looking at the Hobbit code that deals with RRD data<BR>at the 
    moment. If you are using the NCV capabilities then it looks like<BR>you 
    can't have negative numbers. The generic NCV (Number, Colon, Value)<BR>code 
    looks for numbers only, no signs (somewhere near line 70 
    in<BR>hobbitd/rrd/do_ncv.c):<BR><BR>          
                 val = l + strspn(l, " 
    \t");<BR>                  
         l = val + strspn(val, "0123456789.");<BR><BR>I have no 
    idea if RRD is able to accept/store negative values, but if it<BR>is, it 
    should be a simple case of adding the + and - characters to the<BR>last line 
    listed above to make what you want possible.<BR><BR>|\/|artin<BR>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c><BR>-----Original Message-----<BR>From: David Stuffle 
    [mailto:<A 
    href="mailto:david@stufflemail.com">david@stufflemail.com</A>]<BR>Sent: 28 
    July 2008 14:28<BR>To: <A 
    href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</A><BR>Subject: [hobbit] No 
    graph for negative clock offset<BR><BR><BR>Hi all,<BR>None of my clock 
    offset graphs graph anything when the clock offset from<BR><BR>a host is a 
    negative number.  Only positive number work.  Anyone having<BR>the 
    same thing happen or know how to fix?<BR><BR>I'm running a snapshot 
    4.3.0-0.20080103<BR><BR>Thanks<BR>David<BR><BR><BR>To unsubscribe from the 
    hobbit list, send an e-mail to<BR><A 
    href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</A><BR><BR><BR><BR><BR></DIV></DIV>*************************************************************************************<BR>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.<BR><BR>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 <A 
    href="mailto:security@colt.net">security@colt.net</A> and delete the message 
    and any attachments without retaining any copies.<BR><BR>Internet 
    communications are not secure and COLT does not accept responsibility for 
    this message, its contents nor responsibility for any viruses.<BR><BR>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.<BR><BR>Please note that incoming emails will be automatically scanned 
    to eliminate potential viruses and unsolicited promotional emails. For more 
    information refer to <A href="http://www.colt.net" 
    target=_blank>www.colt.net</A> or contact us on +44(0)20 7390 3900.<BR>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c><BR><BR>To unsubscribe from the hobbit list, send an 
    e-mail to<BR><A 
    href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</A><BR><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>