<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.apple-tab-span
        {}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
span.EmailStyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Ralph,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">When I removed the DS definition I did get the error message in the log so it looks like it's picking up the line.  But it's not doing anything with it. 
 I removed all the logfiles so it would be easy to find any error messages, but ten minutes later and nothing except a few peer not up messages from the restart.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Unless Henrik has some suggestions to figure out why it doesn't work I'll probably be forced to make this an external test.  Thanks for your help in troubleshooting
 though, it's much appreciated.  </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Arial","sans-serif"; color:#1F497D">Scot Kreienkamp</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Arial","sans-serif"; color:#1F497D">skreien@la-z-boy.com</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Ralph Mitchell [mailto:ralphmitchell@gmail.com]
<br>
<b>Sent:</b> Thursday, October 20, 2011 12:51 AM<br>
<b>To:</b> Scot Kreienkamp<br>
<b>Subject:</b> Re: [Xymon] External scripts thresholds via hobbit-clients.cfg</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I have a system at home running xymon-4.3.4.  It has a script run by xymon that reads a temperature probe and logs to an rrd.  I've just tried this:</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> rrdtool dump 1wire.rrd |egrep -e name -e last_ds -e type</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<name> Board </name></p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<type> GAUGE </type></p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<last_ds>77.79</last_ds></p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<name> Probe </name></p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<type> GAUGE </type></p>
</div>
<div>
<p class="MsoNormal"><span class="apple-tab-span">                        </span>
<last_ds>35.15</last_ds></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">and added this to analysis.cfg:</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal">HOST=ithilie<span style="color:#1F497D">n</span></p>
</div>
<div>
<p class="MsoNormal">        DS conn 1wire.rrd:Probe >35 COLOR=red "TEXT=Keg temp exceeding &L degrees"</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I briefly changed the number to 3 and the COLOR to yellow, just to make sure it wasn't having a problem with single digits and colors.  You can see in the conn column where the probe temp rose too high.  The probe data is graphed under
 the 1wire column, so it doesn't even matter if the rrd has a different name to the column.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">When I first added the extra bits, I stopped xymon, then started it.  After subsequent changes I did a </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">    xymon.sh restart</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I don't think it's supposed to *need* the restart.  </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">You might also try removing the :ds0.  That should cause a message like this in a log somewhere:</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">     Invalid DS definition at line %d (missing column, key and/or dataset)</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Don't know what else to suggest, except maybe insert a few more errprintf() lines in the code.  Henrik may still chime in with some suggestions too.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Ralph Mitchell</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">On Wed, Oct 19, 2011 at 9:59 PM, Scot Kreienkamp <<a href="mailto:SKreien@la-z-boy.com">SKreien@la-z-boy.com</a>> wrote:</p>
<div>
<blockquote style="border:none; border-left:solid #CCCCCC 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Quite sure.</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Since the column has to exist I changed it to conn for now in analysis.cfg. 
</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Current analysis.cfg entry:</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">HOST=<a href="http://connect-mn.la-z-boy.com" target="_blank">connect-mn.la-z-boy.com</a></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">        DS conn cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding 3 logged in users"</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">[hobbit@retv6100 ~]$ rrdtool dump data/rrd/<a href="http://connect-mn.la-z-boy.com/cmrtgusers.rrd" target="_blank">connect-mn.la-z-boy.com/cmrtgusers.rrd</a> |egrep -e name -e last_ds
 -e type</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <name> ds0 </name></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <type> GAUGE </type></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <last_ds> 25 </last_ds></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <name> ds1 </name></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <type> GAUGE </type></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">                <last_ds> 25 </last_ds></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Scot Kreienkamp</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"><a href="mailto:skreien@la-z-boy.com" target="_blank">skreien@la-z-boy.com</a></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Ralph Mitchell [mailto:<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, October 19, 2011 9:45 PM<br>
<b>To:</b> Scot Kreienkamp<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a></span></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>Subject:</b> Re: [Xymon] External scripts thresholds via hobbit-clients.cfg</p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style=""> </p>
<p class="MsoNormal" style="">According to the manual page:</p>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">      "column" is the statuscolumn that will be modified</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">so it already exists.</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">You're absolutely *sure* the rrd is cmrtgusers.rrd and has a data variable called ds0?</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">Ralph Mitchell</p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> </p>
<div>
<p class="MsoNormal" style="">On Wed, Oct 19, 2011 at 9:02 PM, Scot Kreienkamp <<a href="mailto:SKreien@la-z-boy.com" target="_blank">SKreien@la-z-boy.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Raph,</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">From your post, it sounds like I should be getting a column named Users, according to my config?  If so, I don't get that column.  Even if I name it as a column that already exists
 I don't get any additional info in that column.  It's like the lines in analysis.cfg are being totally ignored. 
</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">I upgraded to 4.3.5 this afternoon also, just in case it might have been something with the version I was running previously.  I set debug on all the services I thought might be responsible
 for this operation and there's no mention of the column or the RRD in the logfiles. 
</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Thanks for the help.  I've got to be doing something wrong or encountering a bug of some kind, but I'm totally lost as to what it is.</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Scot Kreienkamp</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"><a href="mailto:skreien@la-z-boy.com" target="_blank">skreien@la-z-boy.com</a></span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a> [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Ralph Mitchell<br>
<b>Sent:</b> Wednesday, October 19, 2011 12:39 PM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a></span></p>
<div>
<p class="MsoNormal" style=""><br>
<b>Subject:</b> Re: [Xymon] External scripts thresholds via hobbit-clients.cfg</p>
</div>
<p class="MsoNormal" style=""> </p>
<div>
<p class="MsoNormal" style="">On Wed, Oct 19, 2011 at 10:56 AM, Scot Kreienkamp <<a href="mailto:SKreien@la-z-boy.com" target="_blank">SKreien@la-z-boy.com</a>> wrote:</p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">OK, I'm completely stumped on this one, and very Frustrated.</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">Here's my line:</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">DS Users cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding 30 logged in users"</span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D"> </span></p>
<p class="MsoNormal" style=""><span style="font-size:11.0pt; color:#1F497D">The last value from the rrd was 35, so the line should be hit, but I get nothing.  I added debug to all the modules, I've tried several names for the column, I even linked the rrd to
 another name because it had a dash in the middle thinking the parser might not like that.  Still nothing.  I also then removed the rrd completely, hoping that I would at least get a line in one of the logfiles indicating a missing rrd.  I get NOTHING no matter
 what I do.  What am I doing wrong???  HELP!</span></p>
</div>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">I've just proved to my own satisfaction that a space between the symbol and the number prevents the number from being read correctly.  i,.e.  ">15.0" works, but "> 15.0" does not.  You can verify the number is being read by inserting
 &L or &U in the TEXT string:</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<div>
<p class="MsoNormal" style="">      DS Users cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding &L logged in users"</p>
</div>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">You should see "Exceeding 3.00 logged in users".  It seems to be OK without or without the decimal, but with a space the number is read as 0.00.</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">If I found the correct piece, the code is in xymon-4.3.3/xymond/client_config.c starting at line 1383 (line 1404 in xymon-4.3.5).  The number is converted by atof() at line 1438 (line 1439 in 4.3.5), which is supposed to be able
 to deal with optional leading whitespace, but apparently that's not happening here.</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">It takes a while for xymon to re-read the analysis.cfg file, so you might want to alter the TEXT string a bit each time you try something, so you know when the update takes effect.</p>
</div>
<div>
<p class="MsoNormal" style=""> </p>
</div>
<div>
<p class="MsoNormal" style="">Ralph Mitchell</p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="">This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient,
 please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or
 by telephone at the above number. Thank you. </p>
</div>
</div>
<p class="MsoNormal" style=""> </p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal">This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please
 note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone
 at the above number. Thank you. </p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly
 prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number.
 Thank you.
</body>
</html>