NNA permission denied after ./fullinstall

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
talfano
Posts: 4
Joined: Wed Jun 08, 2016 12:21 pm

NNA permission denied after ./fullinstall

Post by talfano »

Centos 6.8

I'm trying to execute ./fullinstall as instructed in the NNA install guide and I'm getting a permission denied. It looks like the file permissions are ok:

$ su -
Password:
[root@nagios01 ~]# cd /tmp/nagiosna/


[root@nagios01 nagiosna]# ./fullinstall
-bash: ./fullinstall: Permission denied


[root@nagios01 nagiosna]# ls -la
total 2112
drwxr-xr-x 7 root root 4096 Jun 3 10:56 .
drwxrwxrwt 6 root root 4096 Jun 8 12:05 ..
drwxr-xr-x 7 root root 4096 Jun 3 10:56 backend
-rw-r--r-- 1 root root 410 Jun 3 10:56 build_dev_tarball.py
-rw-r--r-- 1 root root 9394 Jun 3 10:56 CHANGELOG.txt
-rw-r--r-- 1 root root 812 Jun 3 10:56 config.local.php
drwxr-xr-x 2 root root 4096 Jun 3 10:56 doc
-rwxr-xr-x 1 root root 6717 Jun 3 10:56 fullinstall
-rw-r--r-- 1 root root 196 Jun 3 10:56 httpd.nagiosna.conf
-rwxr-xr-x 1 root root 13694 Jun 3 10:56 libinstall.sh
drwxr-xr-x 2 root root 4096 Jun 3 10:56 mibs
drwxr-xr-x 6 root root 4096 Jun 3 10:56 nagiosna
-rw-r--r-- 1 root root 290 Jun 3 10:56 nagiosna.cron
-rw-r--r-- 1 root root 237 Jun 3 10:56 nagiosna.service
-rw-r--r-- 1 root root 11356 Jun 3 10:56 nagiosna.sql
-rw-r--r-- 1 root root 575 Jun 3 10:56 nagiosna.sudoers
-rw-r--r-- 1 root root 662006 Jun 3 10:56 nfdump-1.6.13.tar.gz
-rw-r--r-- 1 root root 1385640 Jun 3 10:56 rrdtool-1.4.9.tar.gz
drwxr-xr-x 2 root root 4096 Jun 3 10:56 sourceguardian
-rwxr-xr-x 1 root root 5089 Jun 3 10:56 upgrade
[root@797391-nagios01 nagiosna]#

Any suggestions here?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NNA permission denied after ./fullinstall

Post by hsmith »

SELinux running?

Code: Select all

getenforce
I'm going to download a minimal image of 6.8 and attempt this install right now as well.
Former Nagios Employee.
me.
talfano
Posts: 4
Joined: Wed Jun 08, 2016 12:21 pm

Re: NNA permission denied after ./fullinstall

Post by talfano »

hsmith wrote:SELinux running?

Code: Select all

getenforce


Thank you for the fast response!


SELinux status: disabled
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NNA permission denied after ./fullinstall

Post by hsmith »

Worked just fine on a fresh 6.8 system for me.

Code: Select all

[root@localhost nagiosna]# history
    1  getenforce
    2  setenforce 0
    3  getenforce
    5  yum -y install wget
    6  cd /tmp
    8  wget https://assets.nagios.com/downloads/nagios-network-analyzer/2/nagiosna-2.2.1.tar.gz
    9  ls
   10  tar xzf nagiosna-2.2.1.tar.gz
   11  ls
   12  cd nagiosna
   13  ./fullinstall
   14  history
What modifications have been made to that system? I deleted a couple of lines of history there because they were just typos.
Former Nagios Employee.
me.
talfano
Posts: 4
Joined: Wed Jun 08, 2016 12:21 pm

Re: NNA permission denied after ./fullinstall

Post by talfano »

The Centos we are using is a slightly modified distribution provided by our colo provider.

So.....

The original issue was this:

"For security purposes, your /tmp directory is mounted with the 'noexec' flag which prevents that script from executing. You can either temporarily remount /tmp without the noexec flag, or you can move the installation files to a different directory and run it there."

This was obviously easy to fix:

mount -o remount,exec /tmp

Now I am getting an error on installation:

nagios01 nagiosna]# cat install.log

Nagios Network Analyzer Installation
====================================
DATE: Thu Jun 9 08:06:43 CDT 2016

DISTRO INFO:
CentOS
6.8
x86_64

Running 'prereqs'...
Enabling epel repo...
6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14540 100 14540 0 0 99k 0 --:--:-- --:--:-- --:--:-- 2366k
error: Failed dependencies:
epel-release conflicts with rs-epel-release-1.0-2.rs.centos6.noarch

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.

The step that failed was: 'prereqs'

Should I start a new tread with this issue?

How might I overcome the failed dependency?

Thanks!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NNA permission denied after ./fullinstall

Post by rkennedy »

We are fine here. What is the full output of yum repolist?
Former Nagios Employee
Locked