Xymon Mailing List Archive search

Service Unavailable 503

3 messages in this thread

list Rod · Thu, 20 Aug 2020 20:24:46 -0400 ·
Hi,

I typically use my xymon server to test if  URLs are up and serving pages
and external scripts. I do not have any xymon clients. There is one URL
that I test by adding this to the hosts.cfg file, nothing out of ordinary

xxx.64.8.xx      New-xxxx    #xxxx-api xxxxapitest
https://xxx-xxxxx.xxxxx.org
NOCOLUMNS:info,trends,clientlog,ports,procs,files,inode,conn

This site, every now and then, will have issues and customers will get
'Service Unavailable' 503 error. What happens is that after 5 minutes, I
will get the white circle but apache is still up and running. I never get
alerted because of the white circle. Is xymon able to alert on 'Service
Unavailable 503' page either in the hosts.cfg or another file on the xymon
server?

Thanks in advance.

Rod
list Adam Goryachev · Fri, 21 Aug 2020 11:06:11 +1000 ·
quoted from Rod
On 21/8/20 10:24, Rod wrote:
Hi,

I typically use my xymon server to test if? URLs are up and serving pages and external scripts. I do not have any xymon clients. There is one URL that I test by adding this to the hosts.cfg file, nothing out of ordinary

xxx.64.8.xx ? ? New-xxxx? ? #xxxx-api xxxxapitest https://xxx-xxxxx.xxxxx.org NOCOLUMNS:info,trends,clientlog,ports,procs,files,inode,conn

This site, every now and then, will have issues and customers will get 'Service Unavailable' 503 error. What happens is that after 5 minutes, I will get the white circle but apache is still up and running. I never get alerted because of the white circle. Is xymon able to alert on 'Service Unavailable 503' page either in the hosts.cfg or another file on the xymon server?

Thanks in advance.

Rod
Hi,

You could try something like this instead:

0.0.0.0??? ??? www.websitemanagers.com.au??? ??? # noconn httpstatus;https://www.websitemanagers.com.au/;2.. sni

The 2.. means any http status code starting with 2 (and two following characters). See the man page for hosts.cfg for the details.

In my case, any non-2xx status results in a red.

PS, I did think by default a 5xx status would be red, but not entirely sure why it isn't in your case. I think there is another global config option somewhere for that, but I've not used that option.

Regards,
Adam
list Rod · Fri, 21 Aug 2020 18:43:14 -0400 ·
Thank you problem solved.

On Thu, Aug 20, 2020 at 9:13 PM Adam Goryachev <
quoted from Adam Goryachev
user-92fd6827f6ae@xymon.invalid> wrote:
On 21/8/20 10:24, Rod wrote:

Hi,

I typically use my xymon server to test if  URLs are up and serving pages
and external scripts. I do not have any xymon clients. There is one URL
that I test by adding this to the hosts.cfg file, nothing out of ordinary

xxx.64.8.xx      New-xxxx    #xxxx-api xxxxapitest
https://xxx-xxxxx.xxxxx.org
NOCOLUMNS:info,trends,clientlog,ports,procs,files,inode,conn

This site, every now and then, will have issues and customers will get
'Service Unavailable' 503 error. What happens is that after 5 minutes, I
will get the white circle but apache is still up and running. I never get
alerted because of the white circle. Is xymon able to alert on 'Service
Unavailable 503' page either in the hosts.cfg or another file on the xymon
server?

Thanks in advance.

Rod

Hi,

You could try something like this instead:

0.0.0.0        www.websitemanagers.com.au        # noconn httpstatus;
https://www.websitemanagers.com.au/;2.. sni
quoted from Adam Goryachev

The 2.. means any http status code starting with 2 (and two following
characters). See the man page for hosts.cfg for the details.

In my case, any non-2xx status results in a red.

PS, I did think by default a 5xx status would be red, but not entirely
sure why it isn't in your case. I think there is another global config
option somewhere for that, but I've not used that option.

Regards,
Adam