Xymon Mailing List Archive search

Quick question - delayred with named content columns?

list Jeremy Laidman
Thu, 7 Nov 2013 10:17:24 +1100
Message-Id: <user-64e408b62e17@xymon.invalid>

If you run xymond with "--debug" then you'll get log messages from this
line of code each time there's a change in colour:

                dbgprintf("posting to stachg channel: host=%s, test=%s\n",
hostname, testname);

The "testname" her is the exact value being matched against the delayred or
delayyellow parameter (that is, being passed to changedelay() function).
 If your special column names show up here as "test=web", then I would be
reasonably confident of success using "delayred=web:5".

You'll need to change the colour to see the log message.  But you should be
able to do this by changing it to blue (by adding a down-time period for
the service) and then back to normal again.  The debug log message is
executed even for "down" services.

J


On 7 November 2013 04:35, Betsy Schwartz <user-c61747246f66@xymon.invalid> wrote:
Thanks!
(is there a way I can tell if I have it right, other than catching it in
the act?)


On Tue, Nov 5, 2013 at 6:13 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
I /think/ it's the latter.  I think the code for delayred works on the
column name.  As you have specified your own column names, the delayred=
should be adjusted to match.


On 6 November 2013 07:59, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
Suppose I am monitoring some URL's with named content columns like so

0.0.0.0        webservice1  # noconn cont=web;
https://foo.example.com/servlet?status;200 cont=mobile;
https://foo.example.com/servlet?status;200

If I want to add a delayred, is it delayred=http:5  or
delayred=web:5,mobile:5 ?