Xymon Mailing List Archive search

Quick question - delayred with named content columns?

5 messages in this thread

list Betsy Schwartz · Tue, 5 Nov 2013 15:59:45 -0500 ·
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 ?
list Jeremy Laidman · Wed, 6 Nov 2013 10:13:29 +1100 ·
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.
quoted from Betsy Schwartz


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 ?

list Betsy Schwartz · Wed, 6 Nov 2013 12:35:43 -0500 ·
Thanks!
(is there a way I can tell if I have it right, other than catching it in
the act?)
quoted from Jeremy Laidman


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 ?

list Jeremy Laidman · Thu, 7 Nov 2013 10:17:24 +1100 ·
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
quoted from Betsy Schwartz


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 ?

list Phil Crooker · Wed, 6 Nov 2013 23:36:21 +0000 ·
I usually just misspell the URL to trigger the alarm.

cheers, Phil
quoted from Betsy Schwartz

From: Xymon on behalf of Betsy Schwartz
Sent: Thursday, 7 November 2013 4:05 AM
To: Jeremy Laidman
Cc: xymon at xymon.com
Subject: Re: [Xymon] Quick question - delayred with named content columns?

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<mailto: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<mailto: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
quoted from Jeremy Laidman

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