[Xymon] best way to check amazon ec2 instance's availability

deepak deore deepakdeore2004 at gmail.com
Fri Nov 1 12:49:51 CET 2013


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.

Currently in my env i m doing following to check the availability:

1. Created server ext script which connects to bastion host and from there
it checks the ssh connection to the server.
    ssh -n bastion_host "nc -w 5 -vz ec2_instance 22" 2>&1
         if [ $? -eq 0 ]; then
             COLOR=green
          else
             COLOR=red
         fi
2. hosts.conf has "1.2.3.4 ec2_instance # noconn ext_script ...."

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.

The other thing in my mind is use amazon api for checking server status.

Anybody has any suggestion here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131101/28083777/attachment.html>


More information about the Xymon mailing list