[Xymon] External scripts thresholds via hobbit-clients.cfg

Ralph Mitchell ralphmitchell at gmail.com
Thu Oct 20 03:44:41 CEST 2011


According to the manual page:

      "column" is the statuscolumn that will be modified

so it already exists.

You're absolutely *sure* the rrd is cmrtgusers.rrd and has a data variable
called ds0?

Ralph Mitchell


On Wed, Oct 19, 2011 at 9:02 PM, Scot Kreienkamp <SKreien at la-z-boy.com>wrote:

>  Raph,
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> Scot Kreienkamp
>
> skreien at la-z-boy.com
>
>
>
> *From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
> Behalf Of *Ralph Mitchell
> *Sent:* Wednesday, October 19, 2011 12:39 PM
> *To:* xymon at xymon.com
>
> *Subject:* Re: [Xymon] External scripts thresholds via hobbit-clients.cfg
>
>
>
> On Wed, Oct 19, 2011 at 10:56 AM, Scot Kreienkamp <SKreien at la-z-boy.com>
> wrote:
>
> OK, I'm completely stumped on this one, and very Frustrated.
>
>
>
> Here's my line:
>
> DS Users cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding 30 logged in
> users"
>
>
>
> 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!
>
>
>
> 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:
>
>
>
>       DS Users cmrtgusers.rrd:ds0 >3 COLOR=red "TEXT=Exceeding &L logged in
> users"
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> Ralph Mitchell
>   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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111019/485eebee/attachment.html>


More information about the Xymon mailing list