Linux serverNETWORK ADMINISTRATIONS

How to Install Nagios Core 4.4.3 Latest in CentOS 7 Step by Step

You may follow this steps:
Nagios Core – Installing Nagios Core From Source

sed -i ‘s/SELINUX=.*/SELINUX=disabled/g’ /etc/selinux/config
setenforce 0

reboot

yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel perl postfix
cd /tmp

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

tar xzf nagioscore.tar.gz
cd /tmp/nagioscore-nagios-4.4.3/

./configure

make all
make install-groups-users

usermod -a -G nagios apache
make install
make install-daemoninit

systemctl enable httpd.service
make install-commandmode
make install-config
make install-webconf
firewall-cmd –zone=public –add-port=80/tcp

firewall-cmd –zone=public –add-port=80/tcp –permanent
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

systemctl start httpd.service
systemctl start nagios.service

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
cd /tmp

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -ihv epel-release-latest-7.noarch.rpm

subscription-manager repos –enable=rhel-7-server-optional-rpms

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

yum install -y perl-Net-SNMP
cd /tmp

wget –no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/release-2.2.1.tar.gz

tar zxf nagios-plugins.tar.gz
cd /tmp/nagios-plugins-release-2.2.1/

./tools/setup

./configure

make

make install
systemctl start nagios.service

systemctl stop nagios.service

systemctl restart nagios.service

systemctl status nagios.service

http://ip_address/nagios

source

centos 7

6 thoughts on “How to Install Nagios Core 4.4.3 Latest in CentOS 7 Step by Step

  • its nice nagios core is free or its need to purchase
    which is better nagios core or nagios Xi

  • can you please share the script for the comamnd /etc/rc.d/init.d/nagios 17:15 minutes of the video

  • muchísimas gracias amigo, me fue de mucha ayuda
    thank you very much my friend, it was very helpful

Comments are closed.