<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#0000ff">Thank you problem solved. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 9:13 PM Adam Goryachev <<a href="mailto:mailinglists@websitemanagers.com.au">mailinglists@websitemanagers.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div>
<p><br>
</p>
<div>On 21/8/20 10:24, Rod wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">Hi,</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)"><br>
</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">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:rgb(0,0,255)"><br>
</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">xxx.64.8.xx
New-xxxx #xxxx-api xxxxapitest <a href="https://xxx-xxxxx.xxxxx.org" target="_blank">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:rgb(0,0,255)"><br>
</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">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:rgb(0,0,255)"><br>
</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">Thanks
in advance.</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)"><br>
</div>
<div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(0,0,255)">Rod</div>
</div>
</blockquote>
<p>Hi,</p>
<p>You could try something like this instead:</p>
<p>0.0.0.0 <a href="http://www.websitemanagers.com.au" target="_blank">www.websitemanagers.com.au</a> # noconn
httpstatus;<a href="https://www.websitemanagers.com.au/;2" target="_blank">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>
</div>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>