十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#!/bin/bash
创新互联建站专业为企业提供河东网站建设、河东做网站、河东网站设计、河东网站制作等企业网站建设、网页设计与制作、河东企业网站模板建站服务,十余年河东做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
# NAME nagios_intall.sh
# AUTHOR liyanwei
# Email hnzmdlyw@163.com
# Date 2013-10-30
yum install httpd php gcc glibc glibc-common gd gd-devel -y
/usr/sbin/useradd -m nagios
mkdir -p /opt/nagios_install_packages
cd /opt/nagios_install_packages
wget http://softlayer-dal.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.1/nagios-4.0.1.tar.gz
wget https://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz
# nagios
tar -xf nagios-4.0.1.tar.gz
cd nagios-4.0.1
./configure --prefix=/usr/local/nagios
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd restart
cd /opt
# plugins
tar -xf nagios-plugins-1.5.tar.gz
cd nagios-plugins-1.5
./configure --prefix=/usr/local/nagios/
make
make install
chkconfig --add nagios
chkconfig nagios on
service nagios start