<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 21/8/20 10:24, Rod wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEJdMsKcqSqCCxwzbGZCjkULzAUFzzSb_UXS4v4d45D2e-t3-w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">Hi,</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">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</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">xxx.64.8.xx
New-xxxx #xxxx-api xxxxapitest <a
href="https://xxx-xxxxx.xxxxx.org" moz-do-not-send="true">https://xxx-xxxxx.xxxxx.org</a>
NOCOLUMNS:info,trends,clientlog,ports,procs,files,inode,conn<br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">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?</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">Thanks
in advance.</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace;font-size:small;color:#0000ff">Rod</div>
</div>
</blockquote>
<p>Hi,</p>
<p>You could try something like this instead:</p>
<p>0.0.0.0 <a class="moz-txt-link-abbreviated" href="http://www.websitemanagers.com.au">www.websitemanagers.com.au</a> # noconn
httpstatus;<a class="moz-txt-link-freetext" href="https://www.websitemanagers.com.au/;2">https://www.websitemanagers.com.au/;2</a>.. sni<br>
</p>
<p>The 2.. means any http status code starting with 2 (and two
following characters). See the man page for hosts.cfg for the
details.</p>
<p>In my case, any non-2xx status results in a red.</p>
<p>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.<br>
</p>
<p>Regards,<br>
Adam<br>
</p>
<p><br>
</p>
</body>
</html>