Prerequisites installed OK
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
useradd: user 'nagios' already exists
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'
[root@srvdockerqa01 linux-nrpe-agent]# updatedb
[root@srvdockerqa01 linux-nrpe-agent]# ./fullinstall
============================
Nagios Linux Agent Installer
============================
This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.
IMPORTANT: This script should only be used on a clean installed system:
RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian
Do NOT use this on a system running any other distro or that
does not allow additional package installation.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
useradd: user 'nagios' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
it somehow complains a nagios user already exists, but in fact it doesn't. It is not in /etc/passwd
When I try to
userdel nagios
userdel: cannot remove entry 'nagios' from /etc/passwd
Any hint how to get the nrpe-agent installed on this system? This is the procedure I used to add the CentOS 7 server to the domain: http://outsideit.net/realmd-and-sssd-ad-authentication/
There is no user 'nagios' in our ad domain, so I'm not sure what's going wrong.
Prerequisites installed OK
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
useradd: user 'nagios' already exists
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'
[root@srvdockerqa01 linux-nrpe-agent]# updatedb
[root@srvdockerqa01 linux-nrpe-agent]# ./fullinstall
============================
Nagios Linux Agent Installer
============================
This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.
IMPORTANT: This script should only be used on a clean installed system:
RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian
Do NOT use this on a system running any other distro or that
does not allow additional package installation.
Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
useradd: user 'nagios' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
it somehow complains a nagios user already exists, but in fact it doesn't. It is not in /etc/passwd
When I try to
userdel nagios
userdel: cannot remove entry 'nagios' from /etc/passwd
Any hint how to get the nrpe-agent installed on this system? This is the procedure I used to add the CentOS 7 server to the domain: http://outsideit.net/realmd-and-sssd-ad-authentication/
There is no user 'nagios' in our ad domain, so I'm not sure what's going wrong.
Grtz
Hi Willem,
I just installed this on a fresh CentOS 7 machine following your instructions ( nice guide, btw )
It chimed at me that the user and group already existed, however it did not abort the script.
It in fact made the user and groups just fine...
You checked the actual files themselves to see if they are in there?
What happens if you edit out the './2-usersgroups' from the ./fullinstall file?
This machine I was trying to install the nrep agent on is actually also a very new system. It has been used for about three weeks to test Docker containers on. In my case it did abort the script. I check and could not find any nagios user. (didn't check groups) What do you mean with
You checked the actual files themselves to see if they are in there?
I will try to edit out the './2-usersgroups' from the ./fullinstall file tomorrow, but I fear, as the user does not exist, the rest of the script will fail too somehow. I'll let you know how it goes.
You could always manually add the /etc/passwd and /etc/group entries and then you can just run this command in the linux-nrpe-agent install directory to skip user/group creation:
Can you run the check_init_service command on the remote system and get a valid output?
The check_nrpe plugin returns "NRPE: Unable to read output"
This error indicates that the command that was run by the NRPE daemon did not return any character output.
This could be an indication of the following problems:
– An incorrectly defined command line in the command definition. Verify that the command definition in your
NRPE configuration file is correct.
– The plugin that is specified in the command line is malfunctioning. Run the command line manually to make
sure the plugin returns some kind of text output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
/usr/local/nagios/libexec/check_init_service sshd
Redirecting to /bin/systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled)
Active: active (running) since Tue 2015-08-04 11:09:01 CEST; 1 months 3 days ago
Main PID: 1269 (sshd)
CGroup: /system.slice/sshd.service
└─1269 /usr/sbin/sshd -D