What’s the best way to pair Nagios monitoring with EC2

amazon ec2nagios

I've got some NT boxes located on EC2 that I'd like to monitor. The problem is that the Nagios box needs to know an IP address it can connect to in order to do the monitoring, and the IPs of the instances change every time they start.

Is there a good way of doing this or am I going to be forced into writing a program that will poll EC2's API?

Best Answer

You can use Dynamic DNS. Install a Dynamic-DNS client on every one of your servers and the IP will be updated when it changes.

You'll have to configure Nagios with hostnames instead of IPs. Probably you want a low TTL on the DNS server to avoid the old IP being cached too long.

Related Topic