Trouble installing Mac OS X Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
henryg
Posts: 8
Joined: Mon Dec 15, 2014 3:34 pm

Trouble installing Mac OS X Agent

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Trouble installing Mac OS X Agent

Post 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?
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.
henryg
Posts: 8
Joined: Mon Dec 15, 2014 3:34 pm

Re: Trouble installing Mac OS X Agent

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Trouble installing Mac OS X Agent

Post 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.
Former Nagios employee
henryg
Posts: 8
Joined: Mon Dec 15, 2014 3:34 pm

Re: Trouble installing Mac OS X Agent

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Trouble installing Mac OS X Agent

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked