Xymon Mailing List Archive search

!http, and other http-related questions

5 messages in this thread

list Ryan Novosielski · Thu, 28 Apr 2011 12:55:09 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

Read the docs and it's not clear to me -- is there a way to specify that
http should be down? Similarly, is there some kind of way to say that
https should be available on one port, but another port should not be?
Would I have to instead use the ports test (undesirable here -- load
balanced host and nothing to run an agent on).

Thanks for your help in advance. I run 4.2.x but info about 4.3.x if
different would be helpful too.

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk25m+0ACgkQmb+gadEcsb5JOQCfeTVGEXjaHbN/1yw9l1/O76l0
El0An09VVLMIYq1smIyq1yzB4orJ+Sbj
=3ioM
-----END PGP SIGNATURE-----
list Steve Holmes · Thu, 28 Apr 2011 13:45:25 -0400 ·
I haven't tried it for http, but since !telnet works to test that telnet is
NOT up, I would think it would work for http as well. For https, you have to
give it a url anyway, so include the port in the urls and put an ! in front
of the one you want to be down. Right?
Steve
quoted from Ryan Novosielski

On Thu, Apr 28, 2011 at 12:55 PM, Ryan Novosielski <user-ae4522577e16@xymon.invalid>wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

Read the docs and it's not clear to me -- is there a way to specify that
http should be down? Similarly, is there some kind of way to say that
https should be available on one port, but another port should not be?
Would I have to instead use the ports test (undesirable here -- load
balanced host and nothing to run an agent on).

Thanks for your help in advance. I run 4.2.x but info about 4.3.x if
different would be helpful too.

- --
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk25m+0ACgkQmb+gadEcsb5JOQCfeTVGEXjaHbN/1yw9l1/O76l0
El0An09VVLMIYq1smIyq1yzB4orJ+Sbj
=3ioM
-----END PGP SIGNATURE-----

-- 

The strongest natures, when they are influenced, submit the most
unreservedly; it is perhaps a sign of their strength. -Virginia Woolf,
writer (1882-1941)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Ryan Novosielski · Thu, 28 Apr 2011 16:17:07 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tried it out. Does not work that way. I guess the best I might be able
to do so far is testing for port 80/443 not to be active. Interestingly
enough, !http://URL/ is red if down, meaning it seems to just ignore the !.
quoted from Steve Holmes

On 04/28/2011 01:45 PM, Steve Holmes wrote:
I haven't tried it for http, but since !telnet works to test that telnet
is NOT up, I would think it would work for http as well. For https, you
have to give it a url anyway, so include the port in the urls and put an
! in front of the one you want to be down. Right?
Steve

On Thu, Apr 28, 2011 at 12:55 PM, Ryan Novosielski <user-ae4522577e16@xymon.invalid
quoted from Steve Holmes
<mailto:user-ae4522577e16@xymon.invalid>> wrote:

Hi folks,

Read the docs and it's not clear to me -- is there a way to specify that
http should be down? Similarly, is there some kind of way to say that
https should be available on one port, but another port should not be?
Would I have to instead use the ports test (undesirable here -- load
balanced host and nothing to run an agent on).

Thanks for your help in advance. I run 4.2.x but info about 4.3.x if
different would be helpful too.
-- 
The strongest natures, when they are influenced, submit the most
unreservedly; it is perhaps a sign of their strength. -Virginia Woolf,
writer (1882-1941) 
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk25y0MACgkQmb+gadEcsb4BpgCgrT9X1XntYUuuqcN6pNi8Zr69
hLoAn32TyYYvk8sP2odgAy1y3TdCqVa+
=jq36
-----END PGP SIGNATURE-----
list Ryan Novosielski · Tue, 10 May 2011 01:29:56 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Since I see Henrik is around and answered somewhat of a similar question
as pertained to the logs test (welcome back? or is surgery still in the
future?), I hope that you might also weigh in on this one. From my read
of the docs, I might be out of luck (or have the option of using the
"ports" test to make sure http is not available, but I believe that is a
local test not a network test, yes?).
quoted from Ryan Novosielski

On 04/28/2011 04:17 PM, Ryan Novosielski wrote:
Tried it out. Does not work that way. I guess the best I might be able
to do so far is testing for port 80/443 not to be active. Interestingly
enough, !http://URL/ is red if down, meaning it seems to just ignore the !.

On 04/28/2011 01:45 PM, Steve Holmes wrote:
I haven't tried it for http, but since !telnet works to test that telnet
is NOT up, I would think it would work for http as well. For https, you
have to give it a url anyway, so include the port in the urls and put an
! in front of the one you want to be down. Right?
Steve
On Thu, Apr 28, 2011 at 12:55 PM, Ryan Novosielski <user-ae4522577e16@xymon.invalid
<mailto:user-ae4522577e16@xymon.invalid>> wrote:
Hi folks,
Read the docs and it's not clear to me -- is there a way to specify that
http should be down? Similarly, is there some kind of way to say that
https should be available on one port, but another port should not be?
Would I have to instead use the ports test (undesirable here -- load
balanced host and nothing to run an agent on).
Thanks for your help in advance. I run 4.2.x but info about 4.3.x if
different would be helpful too.
-- 
The strongest natures, when they are influenced, submit the most
unreservedly; it is perhaps a sign of their strength. -Virginia Woolf,
writer (1882-1941) 
Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3IzVQACgkQmb+gadEcsb6wFgCgyqNUVSi6LQLheRSd3KnwL6hy
5qsAniSvIa5n7YbzkGDN+M7XV26/0Nhz
=an5i
-----END PGP SIGNATURE-----
list Henrik Størner · Thu, 19 May 2011 07:59:34 +0200 ·
quoted from Ryan Novosielski
Read the docs and it's not clear to me -- is there a way to specify that
http should be down? Similarly, is there some kind of way to say that
https should be available on one port, but another port should not be?
You cannot do something like

   10.0.0.1  hostA # !http

which would have been the obvious way of doing it, because "http" 
expects a URL.

Instead, add a new test to the protocols.cfg file. E.g.

    [web]
       port 80
       send "GET / HTTP/1.0\r\n\r\n"
       expect "200"

then you can put

   10.0.0.1  hostA # !web

in your hosts.cfg file.


Regards,
Henrik