[Xymon] Service Unavailable 503
Rod
rodbass63 at gmail.com
Sat Aug 22 00:43:14 CEST 2020
Thank you problem solved.
On Thu, Aug 20, 2020 at 9:13 PM Adam Goryachev <
mailinglists at websitemanagers.com.au> 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
>
> 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
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200821/fe6d4534/attachment.htm>
More information about the Xymon
mailing list