<div class="gmail_quote">On Wed, Oct 19, 2011 at 10:56 AM, Scot Kreienkamp <span dir="ltr"><<a href="mailto:SKreien@la-z-boy.com">SKreien@la-z-boy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">OK, I'm completely stumped on this one, and very Frustrated.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Here's my line:</span></p>
<p class="MsoNormal"><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"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><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></blockquote><div><br></div><div>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:</div>
<div><br></div><div><div>      DS Users cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding &L logged in users"</div></div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>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.</div><div><br></div>
<div>Ralph Mitchell</div></div>