Xymon Mailing List Archive search

!http, and other http-related questions

list Henrik Størner
Thu, 19 May 2011 07:59:34 +0200
Message-Id: <user-4bd2c05b0051@xymon.invalid>

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