Den seneste version af Nagios Nagios plugin med 1.4.11 automatisk kan installeres på Ubuntu med følgende script. Hav det sjovt med det:
#! / Bin / sh # + ------------------------------------------------ ------------------------- + # Http://www.dBoxen.de/ # + ------------------------------------------------ ------------------------- + echo Velkommen til Nagios Nagios plugins CVS + Auto Installer script til Ubuntu! ekko brugerinteraktion vil være nødvendigt! echo nødvendige pakker vil blive installeret via apt! sleep 5 apt-get -y --force-ja installere apache2 opbygning væsentlige wget perl libgd2-XPM-dev OpenSSL libssl-dev openssh-server openssh-client ntpdate SNMP smbclient libldap-2,3-0-dev libldap2 mysql-server-dev libmysqlclient15 qstat libnet-snmp-perl MRTG møtrik unzip ECHO gruppe og bruger for Nagios vil blive tilføjet! sove 2 groupadd -g 9000 Nagios groupadd -g 9001 nagcmd useradd -g -u Nagios 9000 -G nagcmd -D / usr / local / Nagios -c "Nagios admin" Nagios usermod -G nagcmd www-data ekko vil blive oprettet Nødvendigt mapper! sove 2 mkdir / usr / local / Nagios / etc / Nagios / var / Nagios chown nagios.nagios / usr / local / Nagios / etc / Nagios / var / Nagios ekko Nagios vil blive downloadet og installeret! sove 2 mkdir / usr / local / src cd / usr / local / src wget http://nagios.sourceforge.net/download/cvs/nagios-cvs.tar.gz tjære xvzf Nagios-cvs.tar.gz rm Nagios-cvs.tar.gz cd Nagios-cvs ./configure --sysconfdir = / etc / Nagios --localstatedir = / var / Nagios --with-kommando-gruppe = nagcmd Eventuelle fejl opstod ekko? Ja ekko? Fix dem! Ingen ekko? Fint, oversættelse begynder! søvn 8 gøre alle make install make install-init make install-kommando-mode make install-config make install-webconf update-rc.d Nagios defaults 99 /etc/init.d/apache2 reload> / dev / null /etc/init.d/nagios starte> / dev / null ekko Går at tilføje brugeren "Nagios" til nettet! Angiv adgangskode til frontend! sleep 5 cd / etc / Nagios / htpasswd -c htpasswd.users Nagios chown www-data htpasswd.users chmod 600 htpasswd.users ECHO Nagios installation færdig! Vil installere Nagios-plugins! sove 2 cd / usr / local / src perl -MCPAN -e 'installere Net :: SNMP' wget http://heanet.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz tjære xvzf Nagios-plugins-1.4.11.tar.gz cd Nagios-plugins-1.4.11 ./configure --sysconfdir = / etc / Nagios --localstatedir = / var / Nagios --enable-perl-moduler Eventuelle fejl opstod ekko? Ja ekko? Fix dem! Ingen ekko? Fint, oversættelse begynder! søvn 8 gøre rent; gøre make install klar ekko installation af Nagios og Nagios plugins er blevet færdig! ekko Tak for at bruge dette script! ECHO Besøg http://www.dBoxen.de/ exit 0


