Re: [hobbit] ncv can´t handle negative values
Kern, Thomas
Thomas.Kern at hq.doe.gov
Tue Feb 20 01:00:44 CET 2007
Just for safety, we should add a plus "+" and a comma "," to the string, in case some source of data provides +9,876.54 as a value.
--------------------------
Thomas Kern
301-903-2211
----- Original Message -----
From: henrik at hswn.dk <henrik at hswn.dk>
To: hobbit at hswn.dk <hobbit at hswn.dk>
Sent: Mon Feb 19 17:43:02 2007
Subject: Re: [hobbit] ncv can´t handle negative values
On Mon, Feb 19, 2007 at 07:00:48PM +0100, hansi tesarz wrote:
> is there an easy way to change the code so that ncv values can handle
> negative values.
I think there is: In the hobbit-4.2.0/hobbitd/rrd/do_ncv.c file around
line 65 there's this line:
l = val + strspn(val, "0123456789.");
Add a "-" before the numbers so it becomes
l = val + strspn(val, "-0123456789.");
Run "make" and copy the hobbit-4.2.0/hobbitd/hobbitd_rrd binary to your
~hobbit/server/bin/ directory (or just run "make install"), then restart
Hobbit.
Haven't tested it, but I think it should do the trick.
Regards,
Henrik
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070219/e0c294a4/attachment.html>
More information about the Xymon
mailing list