Xymon Mailing List Archive search

Any way to do http tests with HEAD request?

list Jeremy Laidman
Fri, 10 Apr 2015 13:18:07 +1000
Message-Id: <user-ebc5583537f3@xymon.invalid>

On 10 April 2015 at 11:19, Andrew Rakowski <user-00c59fc5f1d5@xymon.invalid> wrote:
I didn't understand why nobody was complaining previously, until I saw
that BigBro was set up to use the "curl" command with the "-I" option (aka
the "--head" option) to send a "HEAD" request to the server.  The BigBro
web test used this setting:
This was one of the problems with BigBro - it forked to external programs
to do the probes which doesn't scale, whereas xymonnet does it all
internally.

Alas, xymonnet sends either a POST or a GET request, and this cannot be
modified by configuration.

I can see two options for you.  One is to do your own curl/wget call with a
HEAD request, in a script.  The other option is to define your own "http"
protocol definition in protocols.cfg and use that.  You would probably need
to name it something other than "http" otherwise xymonnet will use its
internal protocol code rather than what's defined in protocols.cfg.

J