[Xymon] ping.jsp is empty, Xymon considers this an error

Henrik Størner henrik at hswn.dk
Tue Jan 31 09:49:21 CET 2012


On 26-01-2012 18:32, nleskiw at gmail.com 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



More information about the Xymon mailing list