<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>