Installation of Nagios 4.3.4 on Centos 7- Step by Step Guide
Step by Step Installation Guide for Nagios 4.3.4
#yum install -y httpd php
#yum install -y gcc glibc glibc-common make gd gd-devel net-snmp
# useradd nagios
# groupadd nagcmd
# usermod -G nagcmd nagios
# usermod -G nagcmd apache
# mkdir ~/nagios
# cd ~/nagios
# wget http://sourceforge.net/projects/nagios/files/nagios-4.x/nagios-4.3.4/nagios-4.3.4.tar.gz
# wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
# tar zxvf nagios-4.3.4.tar.gz
# tar zxvf nagios-plugins-2.2.1.tar.gz
# cd nagios-4.3.4
# ./configure –with-command-group=nagcmd
# make install
# make install-init
# make install-commandmode
# make install-config
# make install-webconf
# htpasswd -s -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
# systemctl start httpd.service
# cd ~/nagios/nagios-plugins-2.2.1
# ./configure –with-nagios-user=nagios –with-nagios-group=nagios
# make
# make install
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
# chkconfig –add nagios
# chkconfig –level 35 nagios on
Start the service with the following command:
# systemctl start nagios.service
Open Web Browser:
http://IP/Nagios
Username: nagiosadmin
Password: ———
Firewall Enable:
firewall-cmd –permanent –zone=public –add-service=http
firewall-cmd –reload
centos 7