Page 1 of 1

Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:01 pm
by nickanderson1982
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘nagios-plugins.tar.gz’

[ <=> ] 2,049,050 6.15MB/s in 0.3s

2019-02-06 15:56:58 (6.15 MB/s) - ‘nagios-plugins.tar.gz’ saved [2049050]

[root@name tmp]# tar zxf nagios-plugins.tar.gz
[root@name tmp]# cd /tmp/nagios-plugins-release-2.2.1/
[root@name nagios-plugins-release-2.2.1]# ./tools/setup
bash: ./tools/setup: Permission denied
[root@name nagios-plugins-release-2.2.1]# ./configure
bash: ./configure: No such file or directory
[root@name nagios-plugins-release-2.2.1]# make
make: *** No targets specified and no makefile found. Stop.
[root@name nagios-plugins-release-2.2.1]# make install

I had permissions errors on this part. What would be the solution?

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:08 pm
by npolovenko
@nickanderson1982, Please run this command to give permissions to all files in this folder:
chmod -R 777 /tmp/nagios-plugins-release-2.2.1/
And then rerun the installation commands.

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:11 pm
by nickanderson1982
I ran the command you gave me, still running into the same results.

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:27 pm
by npolovenko
@nickanderson1982, What is the output of this command?
ls -l /tmp/nagios-plugins-release-2.2.1/tools/setup
Are you sure you're running this as root? Are there any security policies on this server? Is SELINUX enabled?
Run:
sestatus
OR
getenforce

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:28 pm
by scottwilkerson
nickanderson1982 wrote:I ran the command you gave me, still running into the same results.
This is the same problem you were having with your install of nagios, your system doesn't let you execute in /tmp
https://support.nagios.com/forum/viewto ... 71#p274470

Do the following:

Code: Select all

mv /tmp/nagios-plugins-release-2.2.1 ~/
cd ~/nagios-plugins-release-2.2.1
./tools/setup
./configure
make
make install

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:33 pm
by nickanderson1982
[root@name nagios-plugins-release-2.2.1]# ls -l /tmp/nagios-plugins-release-2.2.1/tools/setup
-rwxrwxr-x. 1 root root 1283 Apr 19 2017 /tmp/nagios-plugins-release-2.2.1/tools/setup
[root@name nagios-plugins-release-2.2.1]#


--


[root@name nagios-plugins-release-2.2.1]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: disabled
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
[root@name nagios-plugins-release-2.2.1]# getenforce
Permissive
[root@name nagios-plugins-release-2.2.1]#

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:37 pm
by nickanderson1982
That last series of commands worked for me. Thank You very much. You can close out this ticket , Thank You!

Re: Installing The Nagios Plugins : Permissions Denied

Posted: Wed Feb 06, 2019 5:54 pm
by benjaminsmith
That last series of commands worked for me. Thank You very much. You can close out this ticket , Thank You!
Your welcome. Closing thread.

Thank you for using the Nagios Support Forum.