nagios安装脚本-成都快上网建站

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安装脚本
文章分享:http://kswjz.com/article/gdiohh.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流