Installing nagios clients during server build process.

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
Shivaramakrishnan
Posts: 71
Joined: Tue May 15, 2012 10:11 pm

Installing nagios clients during server build process.

Post by Shivaramakrishnan »

Hello,
I am new to nagios,I have a task of deploying more than 100 servers. I need to install the nagios agent on the servers at build process.Meaning from source.Tell what nagios server to point to.In that case,I don't have to manually install on each one of them separately.Once the server is built,everything is ready.Is this possible?
If yes,Can anyone let me know how do i proceed towards it?Any help is greatly appreciated.

Thanks.
Shiva
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Installing nagios clients during server build process.

Post by slansing »

Many users choose Puppet or an equivalent package to push installation and configuration management of things such as NRDP, and NRPE. Take a look at this example here, it may be just what you are looking for:

https://github.com/pdxcat/puppet-module-nrpe
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios clients during server build process.

Post by scottwilkerson »

Sure it is possible.

I would make a shell script with all the steps needed to setup one machine to you liking and then add that script as part of the build process.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Shivaramakrishnan
Posts: 71
Joined: Tue May 15, 2012 10:11 pm

Re: Installing nagios clients during server build process.

Post by Shivaramakrishnan »

If I am using a script,then in that case what should I define inside the script for nagios remote agents.
Is it I need to have apt-get install 's?How do I change the config files,As in how do I modify the nrpe file about the allowed hosts parameter?
Any samples?
Shivaramakrishnan
Posts: 71
Joined: Tue May 15, 2012 10:11 pm

Re: Installing nagios clients during server build process.

Post by Shivaramakrishnan »

Yeh,I am looking something like this,But can you let me know the steps I need to follow for implementing it using puppet?
I didn't follow the steps involved here...
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing nagios clients during server build process.

Post by abrist »

Questions pertaining to puppet implementation would be best asked on their forums.

As far as agents go, you can use repos, or push the source and build the agent during the install/deploy stage. You will want to preconfigure the agent configs and use puppet to push them or just write a script that runs post install that copies the necessary configs over the default ones. There is no "hard, fast" rules to follow here. Every corporate build/deployment environment is unique. Choose the best course for your needs.
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.
Shivaramakrishnan
Posts: 71
Joined: Tue May 15, 2012 10:11 pm

Re: Installing nagios clients during server build process.

Post by Shivaramakrishnan »

"As far as agents go, you can use repos, or push the source and build the agent during the install/deploy stage.",Is there any set of instructions for doing this?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installing nagios clients during server build process.

Post by sreinhardt »

There is not any documentation specifically regarding installation\deployment upon provisioning of a new system. You can look at the following link for general installation instructions that you could use to create scripts to deploy in your specific network. Installing the Nagios Linux Agent
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.
Locked