Page 1 of 3

Nagios XI Linux Client Wizard Install Fails

Posted: Mon Nov 02, 2015 5:32 am
by GaryW
Hi
I've finally had time to install the Nagios XI OVA and start 'playing' with the software but I've hit an config/install error ??

Trying to use the Linux Agent Configuration wizard but it keeps throwing an error -

----

Nagios Linux Agent Installation Log
===================================
DATE: Thu Oct 29 15:53:56 GMT 2015

DISTRO INFO:
CentOS
6.5
x86_64

Repos already configured - exiting.
Prereqs already installed - skipping...
Adding users and groups...
useradd: user 'nagios' already exists
useradd: user 'nagios' already exists
ERROR: User 'nagios' was not created - exiting.

----

Obviously indicates the user 'nagios' already exists but it actually doesn't .. it's a group that's called nagios (created by the wizard) that does exist.
I've tried deleting the group and restarting the wizard but frustratingly always end up with the same error

Is there a manual way I can create the groups/users ?? or tweak the wizard ??


Thanks

Gary

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Mon Nov 02, 2015 1:33 pm
by tgriep
Can you run the following commands on the remote system in a shell as root you are trying to install the Linux Agent on and post the output here?

Code: Select all

grep nag /etc/passwd
grep nag /etc/group

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Tue Nov 03, 2015 7:02 am
by GaryW
Here you go ..

[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]# grep nag /etc/group
nagcmd:x:503:nagios
nagios:x:505:

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Tue Nov 03, 2015 10:07 am
by tgriep
Here are the instructions for adding the nagios user account and adding it to the groups.
Run the following in a shell as root on the remote system.

Code: Select all

useradd nagios
usermod -a -G nagcmd nagios
usermod -a -G nagios nagios
Then in the linux-nrpe-agent folder, run the following so the installer script doesn't try and add the nagios user / groups again.

Code: Select all

touch installed.usersgroups
After this, continue in with the installation and let us know if it works for you.

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Tue Nov 03, 2015 11:34 am
by GaryW
Hi

unfortunately, still fails ...

[root@mx-myatrium ~]# useradd nagios
useradd: user 'nagios' already exists

[root@mx-myatrium ~]# grep nag /etc/group
nagcmd:x:503:nagios
nagios:x:505:nagios
[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]#


Rgds

GaryW

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Tue Nov 03, 2015 5:00 pm
by hsmith
Is the machine that you're trying to install the agent on tied into AD/LDAP where you may have a user named Nagios? Shot in the dark, but I've seen things like this before.

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Wed Nov 04, 2015 4:12 am
by GaryW
unfortunately not .. there is no nagios account in AD/LDAP either

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Wed Nov 04, 2015 10:19 am
by hsmith
What does a userdel -f nagios do?

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Wed Nov 04, 2015 11:02 am
by GaryW
[root@mx-myatrium ~]# userdel -f nagios
userdel: cannot remove entry 'nagios' from /etc/passwd

Re: Nagios XI Linux Client Wizard Install Fails

Posted: Wed Nov 04, 2015 11:10 am
by hsmith
Interesting that it says it can't delete it, not that it doesn't exist..

Unlikely, but what's grep -i nag /etc/passwd return?