/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh yum install -y httpd gcc glibc glibc-common gd gd-devel useradd -m nagios echo '****' |passwd --stdin nagios groupadd nagcmd usermod -a -G nagcmd nagios usermod -a -G nagcmd apache cd /usr/local/src #reference: http://sourceforge.net/projects/nagios/ wget http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.0/nagios-3.2.0.tar.gz?use_mirror=ufpr tar -zxvf nagios-3.2.0.tar.gz rm -f nagios-3.2.0.tar.gz cd nagios-3.2.0/ ./configure --with-command-group=nagcmd make all make install make install-init make install-config make install-commandmode make install-webconf htpasswd -nb nagiosadmin **** > /usr/local/nagios/etc/htpasswd.users service httpd restart #Reference: http://nagiosplugins.org/ wget http://downloads.sourceforge.net/project/nagiosplug/nagiosplug/1.4.14/nagios-plugins-1.4.14.tar.gz?use_mirror=ufpr tar -zxvf nagios-plugins-1.4.14.tar.gz rm -f nagios-plugins-1.4.14.tar.gz cd /usr/local/src/nagios-plugins-1.4.14 ./configure --with-nagios-user=nagios --with-nagios-group=nagios make make install chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share/ chkconfig --add nagios chkconfig nagios on service nagios start svn co http://www.lilacplatform.com/svn/lilac/branches/lilac-1.x /var/www/html/lilac #go to http://<yourserver>/lilac/install.php and resolve dependencies