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.
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
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.
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.