How To Automatically Register AWS EC2 Instances In Nagios?

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
mangopudding
Posts: 12
Joined: Wed Feb 06, 2013 3:03 pm

How To Automatically Register AWS EC2 Instances In Nagios?

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How To Automatically Register AWS EC2 Instances In Nagio

Post 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?
Locked