Page 1 of 1

Custom Path installation for Nagios Core on Centos 7

Posted: Fri May 12, 2017 9:27 pm
by abravo
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....

Re: Custom Path installation for Nagios Core on Centos 7

Posted: Sun May 14, 2017 12:21 pm
by dwhitfield
abravo wrote:H
My question is that that is enough to let Nagios install on /opt/nagios ????
Definitely not enough. These sorts of customizations are something we generally discourage because it makes support very difficult. However, if there is no way around changing the default install path, you will get some ideas by reading through https://support.nagios.com/forum/viewto ... =6&t=34193