Xymon Mailing List Archive search

HTTP Post tests

6 messages in this thread

list Galen Johnson · Mon, 9 Dec 2013 15:50:39 -0500 ·
Hey,

I'm having an issue with form based content checks using post.  It took
me a while to realize that my url test was actually working.  However,
the information I'm trying to trigger on is actually in the headers (as
"Exception") and not the body.  Any way to get Xymon to parse headers as
well?  For the curious, I'm using the RESTClient extension to FF to test
the results.

thanks

=G=
list Jeremy Laidman · Tue, 10 Dec 2013 10:59:33 +1100 ·
quoted from Galen Johnson
On 10 December 2013 07:50, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
However,
the information I'm trying to trigger on is actually in the headers (as
"Exception") and not the body.  Any way to get Xymon to parse headers as
well?

No, Xymon only looks the header "Content-type" for the "type" test.  All
other web tests are against the body.  This would be a neat feature.

J
list Ralph Mitchell · Mon, 9 Dec 2013 21:12:29 -0500 ·
It can be done in an external script with curl, using the --head option to
get just the headers.

Ralph Mitchell
quoted from Jeremy Laidman


On Mon, Dec 9, 2013 at 6:59 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On 10 December 2013 07:50, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
However,
the information I'm trying to trigger on is actually in the headers (as
"Exception") and not the body.  Any way to get Xymon to parse headers as
well?

No, Xymon only looks the header "Content-type" for the "type" test.  All
other web tests are against the body.  This would be a neat feature.

J

list Galen Johnson · Mon, 9 Dec 2013 21:23:24 -0500 ·
I know.  Was hoping it could be done natively.
quoted from Ralph Mitchell
On Dec 9, 2013 9:12 PM, "Ralph Mitchell" <user-00a5e44c48c0@xymon.invalid> wrote:
It can be done in an external script with curl, using the --head option to
get just the headers.

Ralph Mitchell


On Mon, Dec 9, 2013 at 6:59 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>wrote:
On 10 December 2013 07:50, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
However,
the information I'm trying to trigger on is actually in the headers (as
"Exception") and not the body.  Any way to get Xymon to parse headers as
well?

No, Xymon only looks the header "Content-type" for the "type" test.  All
other web tests are against the body.  This would be a neat feature.

J

list Ralph Mitchell · Wed, 11 Dec 2013 23:47:42 -0500 ·
What does the cert have for the CN in the Subject?  If it doesn't match the
hostname, that's probably why you get the error.  I don't know if Xymon can
be told to ignore those, but the hosts.cfg man page does have a suggestion
that might work.  In the section "Testing sites by IP address":

        "Instead the IP-address to connect to can be overridden by
specifying it as:

            http://www.sample.com=1.2.3.4/index.html

            The "=1.2.3.4" will cause xymonnet to run the test against the
IP-address "1.2.3.4",
            while still trying to access the virtual website with the name "
www.sample.com"."

Ralph Mitchell


On Wed, Dec 11, 2013 at 6:50 PM, Galen Johnson <user-fc632e705d24@xymon.invalid> wrote:
Ok...now I have a new question...I'm using the IP address in my URL and if
I browse to the url it complains about the cert not matching the url.  In
curl, you can tell it to ignore cert errors.  Is it possible to have Xymon
do this?  I could've missed it in the man page.
quoted from Galen Johnson


On Mon, Dec 9, 2013 at 9:23 PM, Galen Johnson <user-fc632e705d24@xymon.invalid> wrote:
I know.  Was hoping it could be done natively.
On Dec 9, 2013 9:12 PM, "Ralph Mitchell" <user-00a5e44c48c0@xymon.invalid> wrote:
It can be done in an external script with curl, using the --head option
to get just the headers.

Ralph Mitchell


On Mon, Dec 9, 2013 at 6:59 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid
quoted from Galen Johnson
wrote:
On 10 December 2013 07:50, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
However,
the information I'm trying to trigger on is actually in the headers (as
"Exception") and not the body.  Any way to get Xymon to parse headers
as
well?

No, Xymon only looks the header "Content-type" for the "type" test.
All other web tests are against the body.  This would be a neat feature.

J

list Galen Johnson · Thu, 12 Dec 2013 09:27:00 -0500 ·
Thanks, Ralph.  It's a wildcard cert.  I'd forgotten that I had seen
that format.  I'm going to see if that makes a difference.

=G=
quoted from Ralph Mitchell

On 12/11/2013 11:47 PM, Ralph Mitchell wrote:
What does the cert have for the CN in the Subject?  If it doesn't
match the hostname, that's probably why you get the error.  I don't
know if Xymon can be told to ignore those, but the hosts.cfg man page
does have a suggestion that might work.  In the section "Testing sites
by IP address":

        "Instead the IP-address to connect to can be overridden by
specifying it as:

            http://www.sample.com=1.2.3.4/index.html

<http://1.2.3.4/index.html>;
quoted from Ralph Mitchell

            The "=1.2.3.4" will cause xymonnet to run the test against
the IP-address "1.2.3.4", 
            while still trying to access the virtual website with the

name "www.sample.com <http://www.sample.com>".";
quoted from Ralph Mitchell

Ralph Mitchell


On Wed, Dec 11, 2013 at 6:50 PM, Galen Johnson <user-fc632e705d24@xymon.invalid
<mailto:user-fc632e705d24@xymon.invalid>> wrote:

    Ok...now I have a new question...I'm using the IP address in my
    URL and if I browse to the url it complains about the cert not
    matching the url.  In curl, you can tell it to ignore cert
    errors.  Is it possible to have Xymon do this?  I could've missed
    it in the man page.


    On Mon, Dec 9, 2013 at 9:23 PM, Galen Johnson <user-fc632e705d24@xymon.invalid
    <mailto:user-fc632e705d24@xymon.invalid>> wrote:

        I know.  Was hoping it could be done natively.

        On Dec 9, 2013 9:12 PM, "Ralph Mitchell"
        <user-00a5e44c48c0@xymon.invalid <mailto:user-00a5e44c48c0@xymon.invalid>> wrote:

            It can be done in an external script with curl, using the
            --head option to get just the headers.  

            Ralph Mitchell


            On Mon, Dec 9, 2013 at 6:59 PM, Jeremy Laidman
            <user-71895fb2e44c@xymon.invalid
            <mailto:user-71895fb2e44c@xymon.invalid>> wrote:

                On 10 December 2013 07:50, Galen Johnson

                <user-87f955643e3d@xymon.invalid <mailto:user-87f955643e3d@xymon.invalid>>
quoted from Ralph Mitchell
                wrote:

                    However,
                    the information I'm trying to trigger on is
                    actually in the headers (as
                    "Exception") and not the body.  Any way to get
                    Xymon to parse headers as
                    well?


                No, Xymon only looks the header "Content-type" for the
                "type" test.  All other web tests are against the
                body.  This would be a neat feature.

                J