Xymon Mailing List Archive search

ping.jsp is empty, Xymon considers this an error

3 messages in this thread

list Nicholas Leskiw · Thu, 26 Jan 2012 11:32:15 -0600 ·
The applications we're testing use an empty ping.jsp page.  Xymon considers
no content an error.  I tried setting httpstatus;URL;0|2..;3..|4..|5..|999
but that hasn't worked.  (Other than adding text to the ping.jsp page) can
anyone make any recommendations on how to avoid this and still test the
URL?

-Nick
list Jeremy Laidman · Tue, 31 Jan 2012 17:08:14 +1100 ·
Perhaps the "nocont" test can do what you need.  Add "nocont;URL;." to a
host def to alert if the response is not empty.
quoted from Nicholas Leskiw

On Fri, Jan 27, 2012 at 4:32 AM, user-68d3b820edc3@xymon.invalid <user-68d3b820edc3@xymon.invalid>wrote:
The applications we're testing use an empty ping.jsp page.  Xymon
considers no content an error.  I tried setting
httpstatus;URL;0|2..;3..|4..|5..|999 but that hasn't worked.  (Other than
adding text to the ping.jsp page) can anyone make any recommendations on
how to avoid this and still test the URL?

-Nick

list Henrik Størner · Tue, 31 Jan 2012 09:49:21 +0100 ·
quoted from Jeremy Laidman
On 26-01-2012 18:32, user-68d3b820edc3@xymon.invalid wrote:
The applications we're testing use an empty ping.jsp page.  Xymon
considers no content an error.
No, it doesn't - you must have some other problem. Have a look at the Xymon demo website, specifically the "henrik.hswn.dk" webtest on the "Services" page - http://www.xymon.com/xymon-cgi/svcstatus.sh?HOST=henrik.hswn.dk&SERVICE=http

This is a simple web check of an empty webpage (you can see the "Content-length: 0" header), and the "200 OK" result the the webserver provides is enough for Xymon to flag this as "green". In hosts.cfg, it is simply

0.0.0.0	henrik.hswn.dk	# http://henrik.hswn.dk/empty.html

So either you have your test definition setup incorrectly, or your ping.jsp page does not return a valid HTTP response. Try fetching the URL with a tool like "curl", or even a plain "telnet":

$ telnet henrik.hswn.dk 80
Trying 2001:16d8:dda8::2...
Connected to jorn.hswn.dk.
Escape character is '^]'.
GET /empty.html HTTP/1.0
Host: henrik.hswn.dk

HTTP/1.1 200 OK
Date: Tue, 31 Jan 2012 08:47:59 GMT
Server: Apache/2.2.16 (Debian)
Last-Modified: Tue, 31 Jan 2012 08:36:56 GMT
ETag: "8c38a93d-0-4b7cedda9e8db"
Accept-Ranges: bytes
Content-Length: 0
Vary: Accept-Encoding
Connection: close
Content-Type: text/html


Regards,
Henrik