macOS Client Install Error: "Permission Denied"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TCN-Link
Posts: 30
Joined: Tue Dec 13, 2016 2:05 pm

macOS Client Install Error: "Permission Denied"

Post by TCN-Link »

I'm following the document on how to install the Nagios client on macOS (in this case, the version is 10.12.3). I have XCode with command Line Tools installed. I tried running the bash script for fullinstall like it instructs both using sudo preceding the command and sudo -i. This is what I get.

Code: Select all

Current step is 0-usersgroups
./fullinstall: line 36: ./0-usersgroups: Permission denied
0-usersgroups appears to have already completed successfully.  Moving on to the next step.
Current step is 1-services
./fullinstall: line 36: ./1-services: Permission denied
1-services appears to have already completed successfully.  Moving on to the next step.
Current step is A-subcomponents
./fullinstall: line 36: ./A-subcomponents: Permission denied
A-subcomponents appears to have already completed successfully.  Moving on to the next step.
Starting NRPE Agent

##########################################################
###                                                    ###
###    Nagios Mac OSX Agent Installation Complete!     ###
###                                                    ###
##########################################################

If you experience any problems, please attach the file logs-all-steps-1486410377.tar.gz that was just created to any support requests.


Permissions issues tell me these scripts didn't run. What are the permissions supposed to be so I can double-check them? What else could be causing such problems?
The log file it mentions is attached.

Thank you!
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Thu Feb 16, 2017 5:03 pm, edited 1 time in total.
Reason: marking with green check mark
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: macOS Client Install Error: "Permission Denied"

Post by rkennedy »

Two things come to mind with this issue -

1. Are the files executable? Please show us the full output of ls -la ran from that folder.
2. I don't have a Mac here to test with, but what happens if you append sudo to line 36 like this? I'm wondering if this will affect it.

Code: Select all

	sudo ./"$step" | tee -a "log/$step.log"
Former Nagios Employee
TCN-Link
Posts: 30
Joined: Tue Dec 13, 2016 2:05 pm

Re: macOS Client Install Error: "Permission Denied"

Post by TCN-Link »

They are bash scripts, so they're executable.

I had another look at the scripts and it turns out that the properties on the scripts changed upon extracting them from the tar.gz file. I'm not sure how.
I downloaded the client install again. It seems to work.

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

Re: macOS Client Install Error: "Permission Denied"

Post by rkennedy »

Great to hear that's all it was! Are we good to mark this thread resolved then, or do you have further questions about the agent?
Former Nagios Employee
TCN-Link
Posts: 30
Joined: Tue Dec 13, 2016 2:05 pm

Re: macOS Client Install Error: "Permission Denied"

Post by TCN-Link »

Go ahead and resolve this. Thanks again!
Locked