Nagios Core 4.4.5 and Nagios Plu

2021-06-08  本文已影响0人  阿汤哥_8d27

环境:华为鲲鹏服务器

LSB Version:    :core-4.1-aarch64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.9.2009 (AltArch)
Release:    7.9.2009
Codename:   AltArch
Linux hb4q1_mgr1 4.18.0-193.28.1.el7.aarch64 #1 SMP Wed Oct 21 16:25:35 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

Nagios Core(4.4.5) - Installing Nagios Core From Source:

#1、Security-Enhanced Linux
sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
#2、Prerequisites
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
yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel perl postfix
#3、Downloading the Source
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.5.tar.gz
tar xzf nagioscore.tar.gz
#4、Compile
cd /tmp/nagioscore-nagios-4.4.5/
./configure
make all
#5、Create User And Group
make install-groups-users
usermod -a -G nagios apache
#6、Install Binaries
make install
#7、Install Service / Daemon
make install-daemoninit
systemctl enable httpd.service
#8、Install Command Mode
make install-commandmode
#9、Install Configuration Files
make install-config
#10、Install Apache Config Files
make install-webconf
#11、配置防火墙
#12、Create nagiosadmin User Account
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
#13、Start Apache and Nagios Web Server
systemctl start httpd.service
systemctl start nagios.service

Nagios Plugins (2.3.3) - Installing Nagios Plugins From Source:

#1、Prerequisites - Common
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
#2、Downloading the Source
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.3.3.tar.gz
tar zxf nagios-plugins.tar.gz
#3、Compile + Install
cd /tmp/nagios-plugins-release-2.3.3/
./tools/setup;./configure;make;make install
ls -l /usr/local/nagios/libexec/

NRPE(4.0.3) - How To Install NRPE v4 From Source:

#1、Prerequisites
yum install -y gcc glibc glibc-common openssl openssl-devel perl wget
#2、Downloading the Source 
cd /tmp
wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-4.0.3.tar.gz
tar xzf nrpe.tar.gz
#3、Compile
cd /tmp/nrpe-nrpe-4.0.3/
./configure --enable-command-args
make all
#4、Create User And Group
make install-groups-users
#5、Install Binaries
make install
#6、Install Configuration Files
make install-config
#7、Update Services File
echo >> /etc/services
echo '# Nagios services' >> /etc/services
echo 'nrpe    5666/tcp' >> /etc/services
#8、Install Service / Daemon
make install-init
systemctl enable nrpe.service
#9、Configure Firewall 5666
#10、Update Configuration File

参考文档

上一篇下一篇

猜你喜欢

热点阅读