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!
Tools for automatic server registration
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Tools for automatic server registration
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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Tools for automatic server registration
*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.
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
*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 . . . .
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 . . . .
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.
"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.