Custom Path installation for Nagios Core on Centos 7

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
abravo
Posts: 1
Joined: Fri May 12, 2017 9:18 pm

Custom Path installation for Nagios Core on Centos 7

Post 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....
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Custom Path installation for Nagios Core on Centos 7

Post 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
Locked