Page 1 of 1

Installing nagios clients during server build process.

Posted: Thu Apr 25, 2013 4:54 pm
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

Re: Installing nagios clients during server build process.

Posted: Thu Apr 25, 2013 5:02 pm
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

Re: Installing nagios clients during server build process.

Posted: Thu Apr 25, 2013 5:03 pm
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.

Re: Installing nagios clients during server build process.

Posted: Fri Apr 26, 2013 10:14 am
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?

Re: Installing nagios clients during server build process.

Posted: Fri Apr 26, 2013 10:18 am
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...

Re: Installing nagios clients during server build process.

Posted: Fri Apr 26, 2013 10:33 am
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.

Re: Installing nagios clients during server build process.

Posted: Fri Apr 26, 2013 12:05 pm
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?

Re: Installing nagios clients during server build process.

Posted: Fri Apr 26, 2013 12:42 pm
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