Splitting up HTTP into separate individual tests - best practice?
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I can sort of do this with the "cont=" flag but that has two problems:
-have to specify a return regexp for each tested URL instead of using the default -test STILL appears under the server's http check
It's becoming a serious issue that we have http tests that show a mixture of red and green tests. And to make it worse, on some servers sometimes http just turns *yellow* when only one URL out of three or four is down, even though all four are critical..
What are other people doing? Am I missing an easier way to do this?
thanks Betsy
Try setting them up like this.. We have separate web pages from the same server but needed to monitor each page separately.
#hosts.cfg file
0.0.0.0 South02 # COMMENT:"<a href=http://utapp01/trader/all_states.php>Spot Market Summary</a>" prefer testip noconn nonongreen http://utapp01/trader/all_states.php
South02 is a pseudo host name that isn't pinged or tries to get its name dns resolved. You can then use South02 as your host name in your analysis file. Added benefit is that the COMMENT causes the link to appear on the Xymon page :-)
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Betsy Schwartz Sent: Friday, 9 November 2012 1:23 PM To: xymon at xymon.com Subject: [Xymon] Splitting up HTTP into separate individual tests - best practice?
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I can sort of do this with the "cont=" flag but that has two problems:
-have to specify a return regexp for each tested URL instead of using the default -test STILL appears under the server's http check
It's becoming a serious issue that we have http tests that show a mixture of red and green tests. And to make it worse, on some servers sometimes http just turns *yellow* when only one URL out of three or four is down, even though all four are critical..
What are other people doing? Am I missing an easier way to do this?
thanks Betsy
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
This email is to be read subject to the email disclaimer located at http://www.stanwell.com/email-disclaimer.aspx
I had a fair amount of success running external scripts from cron to do web server checkouts. I used curl to grab a page, then grep to pick out the interesting bits and decide on a color to report. Using a script allows you to drill down through several levels of web page. I used bash and all the usual command line tools, but you could use perl, tcl or anything else you're familiar with.
Doing it with scripts gives you a lot of flexibility.
Ralph Mitchell On Nov 8, 2012 10:23 PM, "Betsy Schwartz" <betsy.schwartz at gmail.com> wrote:
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I can sort of do this with the "cont=" flag but that has two problems:
-have to specify a return regexp for each tested URL instead of using the default -test STILL appears under the server's http check
It's becoming a serious issue that we have http tests that show a mixture of red and green tests. And to make it worse, on some servers sometimes http just turns *yellow* when only one URL out of three or four is down, even though all four are critical..
What are other people doing? Am I missing an easier way to do this?
thanks Betsy
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
If there are different virtualhosts, I sometimes split them out when it matters, so I have an http test or two per virtualhost. That may not be your circumstance however.
----- Original Message ----- From: Betsy Schwartz [mailto:betsy.schwartz at gmail.com] Sent: Thursday, November 08, 2012 10:23 PM To: xymon at xymon.com <xymon at xymon.com> Subject: [Xymon] Splitting up HTTP into separate individual tests - best practice?
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I can sort of do this with the "cont=" flag but that has two problems:
-have to specify a return regexp for each tested URL instead of using the default -test STILL appears under the server's http check
It's becoming a serious issue that we have http tests that show a mixture of red and green tests. And to make it worse, on some servers sometimes http just turns *yellow* when only one URL out of three or four is down, even though all four are critical..
What are other people doing? Am I missing an easier way to do this?
thanks Betsy
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
We also make heavy use of the pseudo host technique. Steve
Wherever you go, there you are.
On Nov 8, 2012, at 10:23 PM, Betsy Schwartz <betsy.schwartz at gmail.com> wrote:
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I can sort of do this with the "cont=" flag but that has two problems:
-have to specify a return regexp for each tested URL instead of using the default -test STILL appears under the server's http check
It's becoming a serious issue that we have http tests that show a mixture of red and green tests. And to make it worse, on some servers sometimes http just turns *yellow* when only one URL out of three or four is down, even though all four are critical..
What are other people doing? Am I missing an easier way to do this?
thanks Betsy
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On Thu, 8 Nov 2012 22:23:28 -0500, Betsy Schwartz <betsy.schwartz at gmail.com> wrote:
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I have been thinking about making this configurable, so you could do
http=App1;http://myserver/App1 http=App2;http://myserver/App2
and have "App1" and "App2" appears as separate columns.
Haven't done any code yet, though, since this would happen "automagically" with the new network tester I have underway for Xymon 5.0. So putting it into 4.x would be somewhat of a wasted effort.
But I have the same issue myself, so perhaps I should look at how much effort it would take.
Regards, Henrik
Cool!
I'll probably go with the pseudo-host for now and use recognizable names
One of the big issues for us with h multiple tests that sometimes when there are multiple tests on one host and one web test fails, the http test goes *YELLOW*. As we have client-facing web services, having things that should go red go yellow is a serious failure. I've set alerts.cfg to treat yellow http alerts as red but it's still a bit frustrating.
I have not experienced this symptom and don't understand it really. When one is red on ours, it's red.
----- Original Message ----- From: Betsy Schwartz [mailto:betsy.schwartz at gmail.com] Sent: Sunday, November 18, 2012 01:03 PM To: henrik at hswn.dk <henrik at hswn.dk> Cc: xymon at xymon.com <xymon at xymon.com> Subject: Re: [Xymon] Splitting up HTTP into separate individual tests - best practice?
Cool!
I'll probably go with the pseudo-host for now and use recognizable names
One of the big issues for us with h multiple tests that sometimes when there are multiple tests on one host and one web test fails, the http test goes *YELLOW*. As we have client-facing web services, having things that should go red go yellow is a serious failure. I've set alerts.cfg to treat yellow http alerts as red but it's still a bit frustrating.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
(2nd try correcting from-address)
Wouldn't using the 'httpstatus'-test solve the problem of separate status columns and alerting? P probably i didn't get the hardcase correctly but the following example gives 2 columns (h_app1 and 2) and allows separate alerting. In addition xymon " feeds" the data to the http- column - so all checks are aggregated there.
hosts.cfg: 1.2.3.4 appsrv.example.com # httpstatus=h_app1;http://appsrv.example.com:80/;200;3..|4..|5..|999 httpstatus=h_app2;http://appsrv.example.com:81/;200;3..|4..|5..|999
alerts.cfg: SERVICE=h_app1 MAIL admin at example.com
SERVICE=h_app2 MAIL admin2 at example.com
Thomas
On 11/14/2012 01:30 PM, henrik at hswn.dk wrote:
On Thu, 8 Nov 2012 22:23:28 -0500, Betsy Schwartz <betsy.schwartz at gmail.com> wrote:
I have a high-visibility request to change all of our server http tests so that they appear as separate tests per URL, with the ability to alert separately, sign out separately, etc. As most of our web servers are application servers in one form or another, the various URL's test very different functionality.
I have been thinking about making this configurable, so you could do
http=App1;http://myserver/App1 http=App2;http://myserver/App2and have "App1" and "App2" appears as separate columns.
Haven't done any code yet, though, since this would happen "automagically" with the new network tester I have underway for Xymon 5.0. So putting it into 4.x would be somewhat of a wasted effort.
But I have the same issue myself, so perhaps I should look at how much effort it would take.
Regards, Henrik
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
--
| IT-Beratung Eckert | Hartkirchweg 54 | fon: +49 (0)761/ 594 9898 | Thomas Eckert | 79111 Freiburg i.Br. | fax: +49 (0)761/ 594 9899 | | Germany | http://www.it-eckert.de/
participants (7)
-
Alan.FORD@stanwell.com
-
betsy.schwartz@gmail.com
-
henrik@hswn.dk
-
novosirj@umdnj.edu
-
ralphmitchell@gmail.com
-
sholmes42@gmail.com
-
thomas.eckert@IT-Eckert.de