Don't create users / groups in offline installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hubertbugaj
Posts: 6
Joined: Tue Jan 08, 2019 4:10 am

Don't create users / groups in offline installation

Post by hubertbugaj »

How can I omit the the step ./2-usersgroups in an offline installation? Creating the installed.usersgroups in the fullinstall directory didn't do the trick. I have to omit it because of an existing user in AD and the install script is failing here:

Code: Select all

Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
RESULT=1
The version I'm struggling to install is nagiosxi-5.5.8-1.el7.x86_64 on CentOS 7.5.1804.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Don't create users / groups in offline installation

Post by npolovenko »

@hubertbugaj, I looked at the code and there doesn't seem to be a way around this problem. Nagios verifies whether the user exists before touching the installed.usersgroups file. Try renaming the nagios user in the /etc/passwd and /etc/group files, then rename it back to the original after the installation is complete.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hubertbugaj
Posts: 6
Joined: Tue Jan 08, 2019 4:10 am

Re: Don't create users / groups in offline installation

Post by hubertbugaj »

The user nagios is in AD so it doesn't really exist in /etc/passwd.
hubertbugaj
Posts: 6
Joined: Tue Jan 08, 2019 4:10 am

Re: Don't create users / groups in offline installation

Post by hubertbugaj »

Managed to resolve the issue by temporarily leaving AD (removing lsass entries in /etc/nsswitch.conf for passwd).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Don't create users / groups in offline installation

Post by scottwilkerson »

hubertbugaj wrote:Managed to resolve the issue by temporarily leaving AD (removing lsass entries in /etc/nsswitch.conf for passwd).
Glad to hear it is resolved.

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked