Xymon Mailing List Archive search

http test -- 202 status red after upgrade from 4.3.21 to 4.3.23

list Mark Felder
Mon, 23 Nov 2015 12:14:28 -0600
Message-Id: <user-8ed38bdc7d18@xymon.invalid>


On Mon, Nov 23, 2015, at 12:05, Shawn Heisey wrote:
I have an http test that returns a 202 response, which was perfectly
acceptable when the xymon server was running 4.3.21.  Today I upgraded
it to 4.3.23, and now that 202 response is generating a red alarm.

Here's a relevant excerpt from the 4.3.22 section in the release notes:

============
The default rules for HTTP response codes have been simplified and made
more
generic:
    1xx = Warning (when the final code received)
    2xx = OK
    3xx = Warning (except 302/303/307 = OK)
    4xx = Critical
    5xx = Critical
============

If I switch to httpstatus and configure "2.." for acceptable status
codes, the alarm goes away.  I think what happens with the regular http
test is either a bug in xymon or a documentation problem, and I'm
curious what the devs think.
The rewritten status case statement is very clear. It absolutely should
be returning a COL_GREEN result.

I'll see if I can force something to return a 202 and see how my own
Xymon server acts.

-- 
  Mark Felder
  user-db141d317836@xymon.invalid