nagios安装脚本
#!/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
网站题目:nagios安装脚本
当前URL:http://pwwzsj.com/article/gdiohh.html