0-usersgroups appears to have already completed successfully. Moving on to the next step.
Current step is 1-services
Users/groups were not initialized - run previous script
1-services appears to have already completed successfully. Moving on to the next step.
Current step is A-subcomponents
MRTG was not configured - run previous script
A-subcomponents appears to have already completed successfully. Moving on to the next step.
Starting NRPE Agent
launchctl start error: Invalid argument
What version of the agent are you running? What version of XI did you get the agent package from? What version of Mac OS X are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
For the record, we did a quickstart and experienced the issues there.
henryg, can you try running the script like "bash -x ./fullinstall" and post the last few lines of the output? The -x switch will show us exactly what arguments are appearing invalid.
bison:macosx admin$ bash -x ./fullinstall
++ basename ./fullinstall
+ PROGNAME=fullinstall
++ id -u
+ '[' 501 -ne 0 ']'
+ echo 'This script needs to be run as root/superuser.'
This script needs to be run as root/superuser.
+ exit 1
bison:macosx admin$ sudo bash -x ./fullinstall
Password:
++ basename ./fullinstall
+ PROGNAME=fullinstall
++ id -u
+ '[' 0 -ne 0 ']'
+ echo 'Mac OSX Agent'
Mac OSX Agent
+ '[' '!' -d log/ ']'
+ rm -rf log/0-usersgroups.log log/1-services.log log/A-subcomponents.log
+ for step in 0-usersgroups 1-services A-subcomponents
+ echo Current step is 0-usersgroups
Current step is 0-usersgroups
+ ./0-usersgroups
+ tee -a log/0-usersgroups.log
The user's primary group name already exists: nagios!
Please, try again!
+ '[' 0 -ne 0 ']'
+ echo '0-usersgroups appears to have already completed successfully. Moving on to the next step.'
+ tee -a log/0-usersgroups.log
0-usersgroups appears to have already completed successfully. Moving on to the next step.
+ for step in 0-usersgroups 1-services A-subcomponents
+ echo Current step is 1-services
Current step is 1-services
+ ./1-services
+ tee -a log/1-services.log
Users/groups were not initialized - run previous script
+ '[' 0 -ne 0 ']'
+ echo '1-services appears to have already completed successfully. Moving on to the next step.'
+ tee -a log/1-services.log
1-services appears to have already completed successfully. Moving on to the next step.
+ for step in 0-usersgroups 1-services A-subcomponents
+ echo Current step is A-subcomponents
Current step is A-subcomponents
+ ./A-subcomponents
+ tee -a log/A-subcomponents.log
MRTG was not configured - run previous script
+ '[' 0 -ne 0 ']'
+ echo 'A-subcomponents appears to have already completed successfully. Moving on to the next step.'
+ tee -a log/A-subcomponents.log
A-subcomponents appears to have already completed successfully. Moving on to the next step.
+ echo 'Starting NRPE Agent'
Starting NRPE Agent
+ launchctl start org.nagios.nrpe
launchctl start error: Invalid argument
++ date +%s
+ log_tarball_name=logs-all-steps-1418682739.tar.gz
+ tar -czf logs-all-steps-1418682739.tar.gz log/
+ cat
This: "launchctl start org.nagios.nrpe" should be a valid command... Can you try running it as root (or with sudo) from the CLI and show us the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!