Return to Snippet

Revision: 18173
at September 23, 2009 14:27 by gpupo


Updated Code
#!/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

Revision: 18172
at September 23, 2009 14:24 by gpupo


Initial Code
#!/bin/sh

yum install -y httpd gcc glibc glibc-common gd gd-devel

useradd -m nagios
 echo 'nai6pooH' |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 nai6pooH > /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

Initial URL


Initial Description


Initial Title
Install Nagios And Lilac on Centos | Instalando Nagios e Lilac no Centos

Initial Tags


Initial Language
Bash