Shell script for installing nrpe on clients.

Hari Sekhon hpsekhon at googlemail.com
Wed Jun 6 15:01:43 CEST 2007


I've done this in a slightly easier way in that my deployment script 
installs the nrpe stuff and also pushes one standard config to it so 
that it works instantly.

I think that may be something you may want to do, since it saves you the 
bits at the end.

Some plugins aren't relevent, but then you won't call them, right?

Oh, also forgot to mention that I run my nrpe behind xinetd and this is 
also installed and a standard locked down config deployed at that time 
by my script.

You probably want to put your nrpe through xinetd since I believe that 
modern nrpe doesn't support restricting hosts that may call it, and you 
most definitely want to do that since nrpe doesn't use a password for 
the connection.

-h

Hari Sekhon



Edwin Zoeller wrote:
> I use Nagios in my Solaris environment and have made the nrpe
> installation into a Sun installable package. It creates the needed
> directories, sub-directories, copies the binaries along with the basic
> plug-in. All you have to do is edit the nrpe.cfg files, drop in the
> proper IP's and configure to your systems.
>
> Ed 
>
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Hari
> Sekhon
> Sent: Wednesday, June 06, 2007 5:01 AM
> To: Lalita Drolia
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Shell script for installing nrpe on clients.
>
> I have a script to do this but mainly for Gentoo servers. I could also
> modify it for debian servers although I run less of these. If you have
> some poor rpm based distro you could also be in luck if you can use yum
> or something to take care of the software installation automatically.
>
> In the most excellent Bash, this can be easily done in 250 lines
> (including option parsing and error handling, and includes both local
> and remote methods of installation and configuration deployment,
> starting etc)
>
> But I haven't released this script for a reason, it's kind of specific
> to what you want to do.
>
> Best advice, write this yourself. You should be able to write a shell
> script to do this, really if you know Bash then you should be able to do
> this by the end of today, at least for the linux systems. Having not got
> the solaris experience, I can't advise there, but I think generally the
> same principals can apply.
>
> SSH key authentication, Good package management systems like Gentoo
> Portage and Debian APT are the real wins here, most of the code will be
> error handling...
>
> -h
>
> Hari Sekhon
>
>
>
> Lalita Drolia wrote:
>   
>> Hi,
>>
>> I need to configure many linux and solaris clients to be monitored by 
>> Nagios server.
>>
>> This will take a lot of time. Can anyone suggest me a shell script 
>> which will solve the purpose.
>>
>> As we know the main steps involved are-
>>
>> Adding user and group Nagios.
>>
>> Logging in as Nagios.
>>
>> Installing Nagios-plugins and nrpe.
>>
>> Performing the configuration steps.
>>
>>  
>>
>> Any help is most welcome.
>>
>>  
>>
>>
>> Notice: This email message, together with any attachments, may contain
>>     
>
>   
>> information of BEA Systems, Inc., its subsidiaries and affiliated 
>> entities, that may be confidential, proprietary, copyrighted and/or 
>> legally privileged, and is intended solely for the use of the 
>> individual or entity named in this message. If you are not the 
>> intended recipient, and have received this message in error, please 
>> immediately return this by email and then delete it.
>> ----------------------------------------------------------------------
>> --
>>
>> ----------------------------------------------------------------------
>> --- This SF.net email is sponsored by DB2 Express Download DB2 Express
>>     
>
>   
>> C - the FREE version of DB2 express and take control of your XML. No 
>> limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>>     
> reporting any issue. 
>   
>> ::: Messages without supporting info will risk being sent to /dev/null
>>     
>
> ------------------------------------------------------------------------
> -
> This SF.net email is sponsored by DB2 Express Download DB2 Express C -
> the FREE version of DB2 express and take control of your XML. No limits.
> Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list