I have Nagios, and I want it to stop monitoring instances when they are stopped from the console. The requirements are:
The message passed from AWS is 100R% reliable, e.g. when Nagios is down, and the message cannot be delivered, it will be re-delivered promptly when Nagios is up
The message will pass quickly
There is no need to scan status of all instances via EC2 API all the time, but only once a while
Many thanks!
I found that there is no way to do it. The solution is to use Cloud Watch. But by polling the AWS API it is possible to add dedicated instance which will update Nagios. But it has to work with polling, hence the AWS API DB has to be replicated to handle additional control panel.