Page 1 of 1
Tools for automatic server registration
Posted: Fri Oct 24, 2014 2:33 pm
by pmichaud
I'm using ansible to deploy a large number of VMs and services, and I'm looking for a way to automatically register new servers. I was wondering if there are any recommended approaches or libraries to use. So far I've looked into a python library called pynag, and a perl library called Nagios::Config. Pynag isn't properly parsing the existing nagios configuration files, and Nagios::Config doesn't seem to have a stable configuration writing capability.
I can be pretty flexible with the language or tool required - but I do need to be able to add hosts, edit hostgroups, and assign services in a scriptable way.
thanks for any suggestions!
Re: Tools for automatic server registration
Posted: Mon Oct 27, 2014 1:34 pm
by sreinhardt
Off the top of my head, the only thing that comes to mind(outside of what you've tried) would be to take a look at activision's talk at our conference in 2012.
https://www.youtube.com/watch?v=8C_UY9F ... aa-ltGTRGp
Re: Tools for automatic server registration
Posted: Mon Oct 27, 2014 2:23 pm
by eloyd
*Ahem*
My talk from 2013 (which was repeated at the 2014 conference when another speaker did not show up) is precisely about dynamically adding/removing virtual servers using Nagios and AWS. 2013's slides (which weren't changed for the 2014 repeat except to update dates) are available at
http://www.slideshare.net/nagiosinc/eri ... agios-core.
I'm happy to give away a little bit of information for free, but our company makes a large portion of its revenue getting paid to help people achieve complex tasks such as this. Feel free to look at the slides and see if you want to talk further. You can Private Message me if you do.
Re: Tools for automatic server registration
Posted: Mon Oct 27, 2014 4:56 pm
by abrist
*Cough*
http://www.youtube.com/user/nagiosvideo/playlists
The new videos from this year's conference should be up in just a few days at most . . . .