<div dir="ltr">We opened ICMP echo, but if you don't want to do that, you can monitor the monitor from some place else.  You could also poll the api but they are horribly slow, so use the new python cli tools unless you are polling naively.  My only problem with the API's is they are "eventually consistent" at best and if they have nay issues, you get tons of pages.  You could also maybe ttim down your purple time and use that as the check of up/down, or use another remote check like http?<div class="gmail_extra">

<br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">--<br>Thomas Vachon<br></span><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="mailto:vachon@sessionm.com" target="_blank">vachon@sessionm.com</a></span></div>

</div>
<br><br><div class="gmail_quote">On Fri, Nov 1, 2013 at 7:49 AM, deepak deore <span dir="ltr"><<a href="mailto:deepakdeore2004@gmail.com" target="_blank">deepakdeore2004@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">As ec2 instances by default doesn't respond icmp and I dont want to enable icmp and ssh access to xymon server, what could be the best way to check the instance's availability. <div><br></div><div>
Currently in my env i m doing following to check the availability:</div>


<div><br></div><div>1. Created server ext script which connects to bastion host and from there it checks the ssh connection to the server.</div><div>    ssh -n bastion_host "nc -w 5 -vz ec2_instance 22" 2>&1<br>



</div><div><div>         if [ $? -eq 0 ]; then</div><div>             COLOR=green</div><div>          else</div><div>             COLOR=red</div><div>         fi</div></div><div>2. hosts.conf has "1.2.3.4 ec2_instance # noconn ext_script ...."</div>



<div><br></div><div>It works well but it has single point of failure i.e. if bastion host has some problem then all the instances will start alerting.</div><div><br></div><div>The other thing in my mind is use amazon api for checking server status.</div>



<div><br></div><div>Anybody has any suggestion here?</div><div><br></div></div>
<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div></div>