Xymon Mailing List Archive search

URL Monitoring -- New User

3 messages in this thread

list James Wade · Fri, 3 Nov 2006 16:16:48 -0600 ·
We have a lot of URL's that we monitor.

We have had cases where multiple URL's

go down at the same time.

 
I'm trying to figure out a way to have a view

that would show me the machine name with

the actual URL  that is down.

 
So for example, I may have 4 machines each

with 4 or 5 URL's on them (4 ports 8081, 8082, 8083.)

 
However, perhaps port 8081 goes down on 2 machines,

and 8081 & 8083 goes down on the other two machines.

 
I'd like a view to do this:

 
machine1  http://machine1:8081 <http://machine1:8081/>;    Down

                http://machine1:8083 <http://machine1:8083/>;    Down

 
machine 2 http://machine2:1081 <http://machine2:1081/>;    Down

 
Any hints on doing something like this?

 
Thanks..James
list Ralph Mitchell · Fri, 3 Nov 2006 17:11:07 -0600 ·
quoted from James Wade
On 11/3/06, James Wade <user-659655b2ea05@xymon.invalid> wrote:

We have a lot of URL's that we monitor.

We have had cases where multiple URL's

go down at the same time.


I'm trying to figure out a way to have a view

that would show me the machine name with

the actual URL  that is down.


So for example, I may have 4 machines each

with 4 or 5 URL's on them (4 ports 8081, 8082, 8083…)


However, perhaps port 8081 goes down on 2 machines,

and 8081 & 8083 goes down on the other two machines.


I'd like a view to do this:


machine1  http://machine1:8081   Down

                http://machine1:8083   Down


machine 2 http://machine2:1081   Down


Any hints on doing something like this?
I'm doing something like that, using scripts that are left over from
our Big Brother days.   The script sends a report for each
server/port, so I get the kind of result you might be looking for.

Dunno if you can achieve the same with Hobbit without the external
scripts.  If so, I can ditch a whole bunch of cronjobs...

Ralph Mitchell
list Charles Jones · Fri, 03 Nov 2006 18:01:58 -0700 ·
I simply specify multiple URLS in bb-hosts, such as:

1.2.3.4 web1.mydomain.com # ssh http://some.url:8080 http://some.other.url:8081 http://yet.another.url:8082

This puts the status of all 3 urls in the "http" column for that host, and if any of them go down there will be a red alert, which is I believe the effect you are wanting. Note: if the urls you are testing do not all resolve to the same IP, you may have to use extra options (see "Testing sites by IP-address" section of bb-hosts man page) such as http://some.url:8080=1.2.3.5/index.html

Another option is to create pseudo-hostnames for URLs. I have done this on some Hobbit setups were many many URLs were being monitored, such as:

subpage PRODURLS Prod URLs
1.2.3.4    URL-Login_Portal # http://some.url:8080/index.html
1.2.3.5    URL-Admin_Site   # http://some.url:8081/admin.php
1.2.3.6    URL-File_Repo    # https://some.url/files.php

Using above method, you can define alerts in hobbit-alerts.cfg based on the page name:
PAGE=%.*/PRODURLS SERVICE=*
MAIL user-a583dc237b60@xymon.invalid format=sms

Hope I didn't confuse you :-)  I think the first option (specifying multiple http checks in bb-hosts) is all you need.

-Charles
quoted from James Wade

James Wade wrote:
We have a lot of URL's that we monitor.

We have had cases where multiple URL's

go down at the same time.

 
I'm trying to figure out a way to have a view

that would show me the machine name with

the actual URL  that is down.

 
So for example, I may have 4 machines each

with 4 or 5 URL's on them (4 ports 8081, 8082, 8083...)

 
However, perhaps port 8081 goes down on 2 machines,

and 8081 & 8083 goes down on the other two machines.

 
I'd like a view to do this:

 
machine1  http://machine1:8081 <http://machine1:8081/>;   Down

                http://machine1:8083 <http://machine1:8083/>;   Down

 
machine 2 http://machine2:1081 <http://machine2:1081/>;   Down

 
Any hints on doing something like this?

 
Thanks......James