Nagios XI Linux Client Wizard Install Fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
GaryW
Posts: 11
Joined: Mon Nov 02, 2015 5:17 am

Nagios XI Linux Client Wizard Install Fails

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Linux Client Wizard Install Fails

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
GaryW
Posts: 11
Joined: Mon Nov 02, 2015 5:17 am

Re: Nagios XI Linux Client Wizard Install Fails

Post 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:
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Linux Client Wizard Install Fails

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
GaryW
Posts: 11
Joined: Mon Nov 02, 2015 5:17 am

Re: Nagios XI Linux Client Wizard Install Fails

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Linux Client Wizard Install Fails

Post 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.
Former Nagios Employee.
me.
GaryW
Posts: 11
Joined: Mon Nov 02, 2015 5:17 am

Re: Nagios XI Linux Client Wizard Install Fails

Post by GaryW »

unfortunately not .. there is no nagios account in AD/LDAP either
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Linux Client Wizard Install Fails

Post by hsmith »

What does a userdel -f nagios do?
Former Nagios Employee.
me.
GaryW
Posts: 11
Joined: Mon Nov 02, 2015 5:17 am

Re: Nagios XI Linux Client Wizard Install Fails

Post by GaryW »

[root@mx-myatrium ~]# userdel -f nagios
userdel: cannot remove entry 'nagios' from /etc/passwd
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Linux Client Wizard Install Fails

Post 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?
Former Nagios Employee.
me.
Locked