Nagios XI Linux Client Wizard Install Fails
Nagios XI Linux Client Wizard Install Fails
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
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
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/groupBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Linux Client Wizard Install Fails
Here you go ..
[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]# grep nag /etc/group
nagcmd
503:nagios
nagios
505:
[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]# grep nag /etc/group
nagcmd
nagios
Re: Nagios XI Linux Client Wizard Install Fails
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.
Then in the linux-nrpe-agent folder, run the following so the installer script doesn't try and add the nagios user / groups again.
After this, continue in with the installation and let us know if it works for you.
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
Code: Select all
touch installed.usersgroupsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Linux Client Wizard Install Fails
Hi
unfortunately, still fails ...
[root@mx-myatrium ~]# useradd nagios
useradd: user 'nagios' already exists
[root@mx-myatrium ~]# grep nag /etc/group
nagcmd
503:nagios
nagios
505:nagios
[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]#
Rgds
GaryW
unfortunately, still fails ...
[root@mx-myatrium ~]# useradd nagios
useradd: user 'nagios' already exists
[root@mx-myatrium ~]# grep nag /etc/group
nagcmd
nagios
[root@mx-myatrium ~]# grep nag /etc/passwd
[root@mx-myatrium ~]#
Rgds
GaryW
Re: Nagios XI Linux Client Wizard Install Fails
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.
me.
Re: Nagios XI Linux Client Wizard Install Fails
unfortunately not .. there is no nagios account in AD/LDAP either
Re: Nagios XI Linux Client Wizard Install Fails
What does a userdel -f nagios do?
Former Nagios Employee.
me.
me.
Re: Nagios XI Linux Client Wizard Install Fails
[root@mx-myatrium ~]# userdel -f nagios
userdel: cannot remove entry 'nagios' from /etc/passwd
userdel: cannot remove entry 'nagios' from /etc/passwd
Re: Nagios XI Linux Client Wizard Install Fails
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?
Unlikely, but what's grep -i nag /etc/passwd return?
Former Nagios Employee.
me.
me.