Nagios的安装和基本配置(三:Nagios-Client的安装)
任務三、Nagios-Client的安裝
3.1、關閉防火墻和selinux
注:
#systemctl stop firewalld.service
#systemctl disable firewalld.service
#vi /etc/selinux/config
3.2、配置環境
#yum install gcc glibc-common -y
#yum install gd gd-devel openssl openssl-devel -y
#yum install php php-gd perl net-tools -y
3.3、安裝Nagios-plugin
添加nagios用戶
#useradd -s /sbin/nologin nagios
解壓安裝
#tar zxvf Nagios-plugins-2.2.1.tar.gz
#cd Nagios-plugins-2.2.1
#./configure –with-nagios-user=Nagios –with-nagios-group=Nagios
#make $$ make install
3.4、安裝nrpe
#tar zxvf nrpe-3.2.1.tar.gz
#cd nrpe-3.2.1
#./configure –with-nrpe-user=Nagios \
--with-nrpe-group=Nagios \
--with-nagios-user=Nagios \
--with-nagios-group=Nagios \
--enable-command-args \
--enable-ssl
#make all
#make install-plugin
#make install-daemon
#make install-daemon-config
#ls /usr/local/nagios/libexec/ |grep check_nrpe
#/usr/local/Nagios/bin/nrpe -d -c /usr/local/Nagios/etc/nrpe.cfg
總結
以上是生活随笔為你收集整理的Nagios的安装和基本配置(三:Nagios-Client的安装)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Nagios的安装和基本配置(二:Nag
- 下一篇: Nagios的安装和基本配置(四:调试验