So here's the problem. We have hundreds and hundreds of Amazon EC2 instances that come up and go down every day. They are registered automatically with Zabbix. I've been hesitant to add an "SSH unavailable" check because someone could tear down 200 machines and zabbix would send of 200 emails.
The current solution is to keep a list of machines that are currently active with Ec2. I do this by running a small script that gathers the active ec2 instances and fires off a heartbeat for each host using Zabbix sender. Then on the trigger it checks to make sure it's has an active heartbeat but SSH is unavailable. I'd rather do away with the script that sends the heartbeat.
Anyway have any ideas how I could do this more simply?
The current solution is to keep a list of machines that are currently active with Ec2. I do this by running a small script that gathers the active ec2 instances and fires off a heartbeat for each host using Zabbix sender. Then on the trigger it checks to make sure it's has an active heartbeat but SSH is unavailable. I'd rather do away with the script that sends the heartbeat.
Anyway have any ideas how I could do this more simply?