nagios安装

/////////////服务端安装

官网安装文档 https://support.nagios.com/kb/article.php?id=96#CentOS

sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config

setenforce 0

yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel perl

yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release

yum install -y perl-Net-SNMP

wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.3.4.tar.gz

tar xzf nagioscore.tar.gz

cd ./nagioscore-nagios-4.3.4/

./configure

make all

useradd nagios

usermod -a -G nagios apache

make install

make install-init

chkconfig --add nagios

chkconfig --level 2345 httpd on

make install-commandmode

make install-config

make install-webconf

service httpd start

service nagios start

wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz

nrpe-2.15安装

wget https://jaist.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz

./configure

make all

make install-plugin

make install-daemon-config

make install-daemon

/////////////////////////客户端安装

你可能感兴趣的:(nagios安装)