Installing The Nagios Plugins : Permissions Denied

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
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Installing The Nagios Plugins : Permissions Denied

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Installing The Nagios Plugins : Permissions Denied

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Installing The Nagios Plugins : Permissions Denied

Post by nickanderson1982 »

I ran the command you gave me, still running into the same results.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Installing The Nagios Plugins : Permissions Denied

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing The Nagios Plugins : Permissions Denied

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Installing The Nagios Plugins : Permissions Denied

Post 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]#
nickanderson1982
Posts: 72
Joined: Wed Feb 06, 2019 3:22 pm

Re: Installing The Nagios Plugins : Permissions Denied

Post by nickanderson1982 »

That last series of commands worked for me. Thank You very much. You can close out this ticket , Thank You!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Installing The Nagios Plugins : Permissions Denied

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked