Versioni i fundit i plugins të Nagios Nagios mund të instalohet automatikisht 1.4.11 në Ubuntu me shkrimin e mëposhtëm. Have fun me këtë:
# / Bin / sh # + ------------------------------------------ # # ------------------------------- + + ----- http://www.dBoxen.de/ -------------------------------------------------- ------------------ + echo Mirë se vini në CVS plugins Nagios Nagios + Installer Car Script për Ubuntu! përdorues echo bashkëveprim do të jetë e nevojshme! echo paketave nevojshme janë duke shkuar për të instaluar me anë të apt! fle 5 apt-get-y - Forca-po install apache2 build-essential wget perl libgd2-xpm-dev OpenSSL libssl-dev-OpenSSH server OpenSSH klient-ntpdate smbclient SNMP libldap-2,3-0, libldap2-dev mysql-server libmysqlclient15- qstat dev libnet-SNMP-perl mrtg zakon jehonë Grupi unzip dhe Përdoruesi për Nagios do të shtohet! fle 2 groupadd-g 9000 Nagios groupadd-g 9001 nagcmd useradd-u 9000-g Nagios-nagcmd G-d / usr / local / Nagios-c "Nagios Admin" Nagios usermod-G www-data directories echo nagcmd nevojitet do të krijohet ! fle 2 mkdir / usr / local / etc / Nagios / Nagios / var / Nagios nagios.nagios chown / usr / local / Nagios / etc / Nagios / var / Nagios Nagios echo do të shkarkohet dhe instalohet! fle 2 mkdir / usr / local / src cd / usr / local / src wget tar http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz xvzf Nagios-cvs.tar.gz rm Nagios- cd. cvs.tar.gz Nagios-cvs / configure - sysconfdir = / etc / Nagios - localstatedir = / var / Nagios - me-command-Grupi = nagcmd jehonë ndonjë gabim ka ndodhur? Po echo? Fix ato! Asnjë echo? Fine, përkthimi fillon! fle 8 të bëjë të gjitha make install make install-init make install-komandë Mode make install-config make install-webconf freskimin-rc.d defaults icinga 99 / etc/init.d/apache2 reload> / dev / null / etc / init.d / Nagios filloni> / dev / null echo Shkuarja për të shtuar përdorues "Nagios" për ndërfaqe web! Specifikoni fjalëkalimin për frontend! fle 5 cd / etc / Nagios / htpasswd-c htpasswd.users chown Nagios www-data htpasswd.users chmod 600 htpasswd.users jehonë instalimi Nagios mbaruar! Shkuarja për të instaluar Nagios-plugins! fle http://heanet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz 2 'Instalo Net :: SNMP' wget cd / usr / local / src perl-MCPAN-E tar . xvzf Nagios-plugins-1.4.11.tar.gz cd Nagios-plugins-1.4.11 / configure - sysconfdir = / etc / Nagios - localstatedir = / var / Nagios - enable-module Perl-echo ndonjë gabim ndodhi ? Po echo? Fix ato! Asnjë echo? Fine, përkthimi fillon! fle 8 të bëjë të pastër; make make install jehonë instalimin e qartë të Nagios dhe plugins Nagios janë mbaruar! echo Faleminderit për duke përdorur këtë script! Vizitoni http://www.dBoxen.de/ dalje 0 jehonës


