<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=931491418-14072009>I tried to use the 
split-ncv function in Xymon 4.3.0 beta2 and get the following error in the 
rrd-status.log:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=931491418-14072009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2>2009-07-14 13:49:46 RRD error creating 
/home/xymon/data/rrd/<SPAN class=931491418-14072009>hostname</SPAN>/<SPAN 
class=931491418-14072009>column</SPAN>,<SPAN 
class=931491418-14072009>test</SPAN>.rrd: Duplicate DS name: lambda</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial size=2>I did a search on 
the mailing list and found Charles posting with a patch for this dated back in 
Nov 2007. I made the change and recompiled and it fixed the 
problem.</FONT></SPAN></DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial size=2>The change to 
be made is still at line 177 of the do_ncv.c</FONT></SPAN></DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial size=2>Change from  
"if (split_ncv && (paridx > 1)) {"</FONT></SPAN></DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial size=2>Change to  "if 
(split_ncv && (paridx > 0)) {"<BR></FONT></SPAN></DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial size=2> Does anyone 
know why the following changes didn't make it to the current versions of 
Xymon?</FONT></SPAN></DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=931491418-14072009><FONT face=Arial 
size=2>__________________________________________________________________________________________________________________________________________________________________________</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2>
<UL>
  <LI><EM>To</EM>: hobbit (at) hswn.dk 
  <LI><EM>Subject</EM>: [patch] off-by-one in do_ncv.c 
  <LI><EM>From</EM>: Charles Goyard <charles.goyard (at) 
  orange-ftgroup.com> 
  <LI><EM>Date</EM>: Mon, 26 Nov 2007 16:37:38 +0100 
  <LI><EM>User-agent</EM>: Mutt/1.5.13 (2006-08-11) </LI></UL><!--X-Head-of-Message-End--><!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End--><!--X-Body-of-Message--><PRE><FONT size=3><FONT face=Arial>Hi Henrik,

I tried to update my hobbitd_rrd to the current snapshot version, and I
got loads of "Duplicate DS name: lambda" when using split-ncv.

I found the error lies here :

--- do_ncv.c.old        2007-09-11 15:00:20.000000000 +0200
+++ do_ncv.c    2007-11-26 16:36:43.000000000 +0100
@@ -177,7 +177,7 @@
                                }
                        }
                        
-                       if (split_ncv && (paridx > 1)) {
+                       if (split_ncv && (paridx > 0)) {
                                create_and_update_rrd(hostname,
testname, params, NULL);
 
                                /* We've created one RRD, so reset the
                                 * params for the next one */

With this modification, it works.

Thanks for your great software ! I hope 4.3 will be out soon !

-- 
Charles Goyard - charles.goyard (at) orange-ftgroup.com - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie</FONT>
</FONT></PRE></FONT></DIV><!--X-Body-of-Message-End--><!--X-MsgBody-End--><!--X-Follow-Ups--></BODY></HTML>