Nagios Core Server Installation Centos 8 Class #3 | NCP Course | Tech Arkit



sed -i 's/SELINUX=enforcing/SELINUX=disabled' /etc/selinux/config

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

cat /etc/selinux/config



setenforce 0





firewall-cmd --permanent --add-service=http

firewall-cmd --permanent --add-service=https

firewall-cmd --reload



yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm



yum install wget php gcc glibc-common gd gd-devel make net-snmp perl perl-devel openssl



wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.3.tar.gz

tar -xvf nagios-4.4.3.tar.gz



groupadd nagcmd

useradd -g nagcmd nagios

usermod -aG nagcmd apache

groupadd nagios

usermod -aG nagios nagios



cd nagios-4.4.3

./configure --with-command-group=nagcmd

make all

make install



make install

make install-init

make install-commandmode

make install-config

make install-exfoliation

make install-webconf



htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin



systemctl enable httpd

systemctl start httpd

systemctl enable nagios

systemctl start nagios



/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg



cd

cd /tmp/

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



tar -xvf nagios-plugins-2.2.1.tar.gz

cd nagios-plugins-2.2.1

./configure --with-nagios-user=nagios --with-nagios-group=nagcmd

make

make install



cd /usr/local/nagios/libexec/



http://NagiosServerIP/nagios

nagiosadmin

PasswordHere

No comments:

Post a Comment