Page 1 of 1

Monitor An EC2 Instance without Elastic IP

Posted: Fri Oct 04, 2013 11:36 am
by jlpaneda
Hello All,

I'm trying to monitor a linux instance in amazon EC2. This instance doesn't have an Elastic IP and I know I can use the FQDN to check if the instance is alive and also the NRPE to check stuff like swap, ram, cpu, etc.

The problem is that because is an instance without an Elastic IP when it is stopped and started the FQDN changes and we need to modify the cfg file in Nagios for this instance so it can continue monitoring it.

Reading some post seems that with NSCA I can accomplish to monitor the instance because it would be the instance the one sending its status to Nagios. But I don't know how to accomplish this.

¿How should I use NSCA or what would you recommend to use to monitor this instance?

The basic idea is that the linux instance sends its status to the Nagios box so even if the FQDN of the instance changes Nagios can monitor it. (Nagios Box <----status<---- EC2 Intance with no Elastic IP).

Thanks in advance for your help.

Regards,

Jorge L. Pañeda
Systems Administrator
Scio Consulting | IT & Infrastructure Dept.

Re: Monitor An EC2 Instance without Elastic IP

Posted: Fri Oct 04, 2013 12:27 pm
by abrist
I suggest reading the nsca documentation first as it does have the capability to do what you want, but will take a little bit of work:

http://nagios.sourceforge.net/download/ ... _Setup.pdf
http://exchange.nagios.org/index.php?op ... =send_nsca
http://exchange.nagios.org/directory/Ad ... or/details