HTTP Post tests
list Galen Johnson
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
▸
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
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 Galen Johnson
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>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
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.
▸
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
▸
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
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=
▸
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>;
▸
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 thename "www.sample.com <http://www.sample.com>".";
▸
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>>
▸
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