Tools for automatic server registration

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
pmichaud
Posts: 1
Joined: Fri Oct 24, 2014 2:22 pm

Tools for automatic server registration

Post 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!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Tools for automatic server registration

Post 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
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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Tools for automatic server registration

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Tools for automatic server registration

Post 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 . . . .
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