Xymon Mailing List Archive search

headercheck tag?

5 messages in this thread

list Galen Johnson · Mon, 3 Feb 2014 19:40:36 +0000 ·
Hey.

The 4.3.14 announcement mentioned a new headercheck tag was added...however, I can't find any doc on how to use it.  I've grepped the entire source for "headercheck" in 4.3.15 and it comes back empty.  I suspect this may be related to my xymonnet core dumps.

=G=
list Henrik Størner · Mon, 03 Feb 2014 22:12:08 +0100 ·
quoted from Galen Johnson
The 4.3.14 announcement mentioned a new headercheck tag was
added...however, I can't find any doc on how to use it.  I've grepped
the entire source for "headercheck" in 4.3.15 and it comes back empty.
I suspect this may be related to my xymonnet core dumps.
It is called "headermatch". If you put this on the entry in hosts.cfg, 
then HTTP content checks will also look at the HTTP headers.

The hosts.cfg(5) man-page has it.


Regards,
Henrik
list Galen Johnson · Mon, 3 Feb 2014 21:22:52 +0000 ·
It's amazing how much better looking for the correct thing helps :-).  Don't know why this isn't sinking in...is there an example for using this with, say. post?

"post=newcolname;https://example.com/login;user=myid&password=mypass&locale=en_US;could not log on to the server"

where exactly would "headermatch" live?\

again...my brain is mush and not firing on all synapses ...

thx

=G=
quoted from Henrik Størner

From: Xymon <xymon-bounces at xymon.com> on behalf of Henrik Størner <user-ce4a2c883f75@xymon.invalid>
Sent: Monday, February 3, 2014 4:12 PM
To: xymon at xymon.com
Subject: Re: [Xymon] headercheck tag?
The 4.3.14 announcement mentioned a new headercheck tag was
added...however, I can't find any doc on how to use it.  I've grepped
the entire source for "headercheck" in 4.3.15 and it comes back empty.
I suspect this may be related to my xymonnet core dumps.
It is called "headermatch". If you put this on the entry in hosts.cfg,
then HTTP content checks will also look at the HTTP headers.

The hosts.cfg(5) man-page has it.


Regards,
Henrik
list Henrik Størner · Mon, 03 Feb 2014 22:26:15 +0100 ·
quoted from Galen Johnson
Den 03-02-2014 22:22, Galen Johnson skrev:
It's amazing how much better looking for the correct thing helps :-).  Don't know why this isn't sinking in...is there an example for using this with, say. post?

"post=newcolname;https://example.com/login;user=myid&password=mypass&locale=en_US;could not log on to the server"

where exactly would "headermatch" live?\
just by itself. Like

0.0.0.0 www.example.com # noconn headermatch \
			 
"post=login;https://example.com/login;user=myid&password=mypass&locale=en_US;could 
not log on to the server"


But note my other mail to you with a fix for the xymonnet crash. Didn't 
quite get it right the first time.


Regards,
Henrik
list Galen Johnson · Mon, 3 Feb 2014 21:42:59 +0000 ·
Until you mentioned it, I did not see it since Outlook is the opposite of useful...I dug it up and applied it.  No core dumps so far.  Tests appear to be working.  Likely unrelated but I did notice some files in my tmp folder that didn't look quite right (http..status and frequenttest.) that I've not noticed before.

=G=
quoted from Henrik Størner
From: Henrik Størner <user-ce4a2c883f75@xymon.invalid>
Sent: Monday, February 3, 2014 4:26 PM
To: Galen Johnson; xymon at xymon.com
Subject: Re: [Xymon] headercheck tag?

Den 03-02-2014 22:22, Galen Johnson skrev:
It's amazing how much better looking for the correct thing helps :-).  Don't know why this isn't sinking in...is there an example for using this with, say. post?

"post=newcolname;https://example.com/login;user=myid&password=mypass&locale=en_US;could not log on to the server"

where exactly would "headermatch" live?\
just by itself. Like

0.0.0.0 www.example.com # noconn headermatch \

"post=login;https://example.com/login;user=myid&password=mypass&locale=en_US;could
not log on to the server"


But note my other mail to you with a fix for the xymonnet crash. Didn't
quite get it right the first time.


Regards,
Henrik