Page 1 of 1

Trouble installing Mac OS X Agent

Posted: Mon Dec 15, 2014 3:40 pm
by henryg
I am having troubles getting the Mac OS X agent installed on my systems, I get the following error when I try and run the ./fullinstall.

Code: Select all

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
Anyone else seen this issue before?

Re: Trouble installing Mac OS X Agent

Posted: Mon Dec 15, 2014 4:15 pm
by abrist
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?

Re: Trouble installing Mac OS X Agent

Posted: Mon Dec 15, 2014 4:57 pm
by henryg
I am currently running the version that this link pointed me too. http://assets.nagios.com/downloads/nagi ... ent.tar.gz
I am running Mac OS X Mavericks (10.9.5)

I have tried this one two different systems, same version of OS though.

Re: Trouble installing Mac OS X Agent

Posted: Mon Dec 15, 2014 5:07 pm
by tmcdonald
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.

Re: Trouble installing Mac OS X Agent

Posted: Mon Dec 15, 2014 5:32 pm
by henryg
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

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

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

Re: Trouble installing Mac OS X Agent

Posted: Tue Dec 16, 2014 1:06 pm
by lmiltchev
+ launchctl start org.nagios.nrpe
launchctl start error: Invalid argument
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?