Custom Path installation for Nagios Core on Centos 7
Posted: Fri May 12, 2017 9:27 pm
Hello Forum Team
Installing Nagios:
setenforce 0
Modify /etc/selinux/config and change enforcing to disabled
Install prerequisites:
yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip
-y
Now, let's create a user and group for Nagios to use.
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Create nagios custom directory:
mkdir /opt/nagios
chown nagios:nagcmd /opt/nagios -R
Download and Install Nagios
This is where we will download the required .tar.gz files for Nagios and Nagios Plugins.
cd /tmp
wget https://assets.nagios.com/downloads/nag ... 1.1.tar.gz
wget http://www.nagios-plugins.org/download/ ... 1.1.tar.gz
tar zxf nagios-4.1.1.tar.gz
tar zxf nagios-plugins-2.1.1.tar.gz
cd nagios-4.1.1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
My question is that that is enough to let Nagios install on /opt/nagios ????
Or it is needed aditional configuration....
Installing Nagios:
setenforce 0
Modify /etc/selinux/config and change enforcing to disabled
Install prerequisites:
yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip
-y
Now, let's create a user and group for Nagios to use.
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Create nagios custom directory:
mkdir /opt/nagios
chown nagios:nagcmd /opt/nagios -R
Download and Install Nagios
This is where we will download the required .tar.gz files for Nagios and Nagios Plugins.
cd /tmp
wget https://assets.nagios.com/downloads/nag ... 1.1.tar.gz
wget http://www.nagios-plugins.org/download/ ... 1.1.tar.gz
tar zxf nagios-4.1.1.tar.gz
tar zxf nagios-plugins-2.1.1.tar.gz
cd nagios-4.1.1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
My question is that that is enough to let Nagios install on /opt/nagios ????
Or it is needed aditional configuration....