Script for automatic installation of Nagios Plugins on Ubuntu

The latest Nagios version with the Nagios plugins can be automatically installed 1.4.11 on Ubuntu with the following script. Have fun with it:

 #! / Bin / sh # + ------------------------------------------ ------------------------------- + # # + ----- http://www.dBoxen.de/ -------------------------------------------------- ------------------ + echo Welcome to the Nagios CVS + Nagios Plugins Auto Installer Script for Ubuntu!  echo User interaction will be Necessary!  echo Needed packages are going to be installed via apt!  sleep 5 apt-get-y - force-yes install apache2 build-essential libgd2-xpm-perl wget dev openssl libssl-dev openssh-server openssh-client ntpdate smbclient snmp libldap-2.3-0-dev libldap2 mysql-server libmysqlclient15- qstat dev libnet-snmp-perl mrtg nut unzip echo Group and User for Nagios will be added!  sleep 2 groupadd-g 9000 nagios groupadd-g 9001 useradd-u 9000 nagcmd-g nagios-G nagcmd-d / usr / local / nagios-c "Nagios Admin" nagios usermod-G www-data nagcmd echo Needed directories will be created !  sleep 2 mkdir / usr / local / nagios / etc / nagios / var / nagios chown nagios.nagios / usr / local / nagios / etc / nagios / var / nagios echo Nagios will be downloaded and installed!  sleep 2 mkdir / usr / local / src cd / usr / local / src wget http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz tar xvzf nagios-cvs.tar.gz rm nagios- cvs.tar.gz cd nagios-cvs. / configure - sysconfdir = / etc / nagios - localstatedir = / var / nagios - with-command-group = nagcmd echo Any errors occured?  Yes echo?  Fix them!  No echo?  Fine, translation begins!  sleep 8 make all make install make install-init make install-command mode make install-config make install-webconf update-rc.d nagios defaults 99 / etc/init.d/apache2 reload> / dev / null / etc / init.d / nagios start> / dev / null echo Going to add the user "nagios" for the Web!  Specify password for the frontend!  sleep 5 cd / etc / nagios / htpasswd-c htpasswd.users nagios chown www-data htpasswd.users chmod 600 htpasswd.users echo Nagios installation finished!  Going to install the nagios-plugins!  sleep 2 cd / usr / local / src perl-MCPAN-e 'install Net :: SNMP' wget tar http://heanet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz xvzf nagios-plugins-1.4.11.tar.gz cd nagios-plugins-1.4.11. / configure - sysconfdir = / etc / nagios - localstatedir = / var / nagios - enable-perl-modules echo Any errors occured ?  Yes echo?  Fix them!  No echo?  Fine, translation begins!  sleep 8 make clean; make make install clear echo the installation of Nagios and the Nagios plugins have been finished!  echo Thanks for using this script!  echo exit 0 Visit http://www.dBoxen.de/ 
Sharesave 171 16 scripts to automatically install Nagios plugins on Ubuntu

This entry was posted in Nagios and tagged , tagged. Set Bookmark the permalink .

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA-Bild
Refresh Image

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>