ping.jsp is empty, Xymon considers this an error
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
Perhaps the "nocont" test can do what you need. Add "nocont;URL;." to a host def to alert if the response is not empty.
On Fri, Jan 27, 2012 at 4:32 AM, nleskiw at gmail.com <nleskiw at gmail.com>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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
participants (3)
-
henrik@hswn.dk
-
jlaidman@rebel-it.com.au
-
nleskiw@gmail.com