Monitor An EC2 Instance without Elastic IP

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jlpaneda
Posts: 1
Joined: Fri Oct 04, 2013 9:35 am

Monitor An EC2 Instance without Elastic IP

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitor An EC2 Instance without Elastic IP

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked