Page 1 of 1

How To Automatically Register AWS EC2 Instances In Nagios?

Posted: Wed Feb 06, 2019 12:53 am
by mangopudding
Hi there.

I'm helping out a non-profit development team on getting more visibility in the performance on their AWS EC2 instances using Nagios Core.

We have a use case where the spin up 30 EC2 instances (Ubuntu 18.04 LTS) for testing. We're looking for a way for when the the EC2 instances are spun up that they are automatically registering into Nagios Core and thus monitored.

What's the best way to accomplish this?

- sImon

Re: How To Automatically Register AWS EC2 Instances In Nagio

Posted: Wed Feb 06, 2019 4:56 pm
by ssax
Since we're talking about Core here (XI has an API you could use) you would need to generate the config files that Core uses, then restart the nagios service to get them monitored.

I did find this, it may help you:

https://kissitconsulting.com/blog/post/ ... ng-ansible

Are you using ansible/chef/puppet/etc to do this? If so, which one?