Quick question - delayred with named content columns?
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 ?
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 <betsy.schwartz at gmail.com> 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 ?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 <jlaidman at rebel-it.com.au>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 <betsy.schwartz at gmail.com> 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 ?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 <betsy.schwartz at gmail.com> 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 <jlaidman at rebel-it.com.au>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 <betsy.schwartz at gmail.com>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 ?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I usually just misspell the URL to trigger the alarm.
cheers, Phil
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 <jlaidman at rebel-it.com.au<mailto:jlaidman at rebel-it.com.au>> 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 <betsy.schwartz at gmail.com<mailto:betsy.schwartz at gmail.com>> 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 ?
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
betsy.schwartz@gmail.com
-
jlaidman@rebel-it.com.au
-
Phil.Crooker@orix.com.au