Page 1 of 1

NRPE Install Error

Posted: Fri Apr 17, 2015 3:22 pm
by costanza2k1
Hi all,

I'm trying to install a NRPE agent on a RHEL server, can you help me out with this:

Code: Select all

Running './2-usersgroups'...
Adding users and groups...
useradd: group nagios exists - if you want to add this user to that group, use -g.
groupadd: group 'nagios' already exists
useradd: group nagios exists - if you want to add this user to that group, use -g.
groupadd: group 'nagcmd' already exists
usermod: user 'nagios' does not exist
usermod: user 'nagios' does not exist
ERROR: User 'nagios' was not created - exiting.
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './2-usersgroups'
agent used: http://assets.nagios.com/downloads/nagi ... ent.tar.gz

Re: NRPE Install Error

Posted: Sun Apr 19, 2015 8:42 pm
by Box293
For some reason you already have the users and groups created and the installer doesn't like this.

This command will comment out the part that creates the users and groups.

Change into the directory that has the fullinstall script and type:

Code: Select all

sed -i 's/run_sub .\/2-usersgroups/#run_sub .\/2-usersgroups/g' fullinstall
Now run the full install and see if it works.

Re: NRPE Install Error

Posted: Mon Apr 20, 2015 12:35 pm
by costanza2k1
Thanks, that worked...this can be closed.