Page 1 of 1
Installing NRPE on NNA server
Posted: Wed Feb 25, 2015 10:59 pm
by Fred Kroeger
Went to install the nrpe agent on our NNA server - following the " Nagios XI – Installing The Linux Agent" PDF
However fullinstall fails because the groups already exist and then exits.
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.
I touched the installed.usersgroups file to try & bypass this step but the nagios user doesn't exist so it exits again.
Is there a standard way I can isntall nrpe without having to hack the install scripts ?
Re: Installing NRPE on NNA server
Posted: Thu Feb 26, 2015 8:41 am
by lmiltchev
I would not recommend running NNA and NRPE on the same server.
Important: Nagios Enterprises highly recommends and will only support installing Nagios Network Analyzer on a newly installed,
“clean” system (a bare minimal install with nothing else installed or configured).
Attempting to install Nagios Network Analyzer on a pre-existing system with other applications already installed can cause the Nagios
Network Analyzer installation process to fail, critical system components and settings (e.g. database servers) to be modified in a way
that negatively affects other applications, and previously installed applications to be automatically upgraded or removed. While
installing Network Analyzer on a system with other applications is possible, it is not recommended due to the possible interactions and
complexity of multiple components that are required for Nagios Network Analyzer to function. If you choose to ignore these warnings,
you do so at your own risk
http://assets.nagios.com/downloads/nagi ... ctions.pdf
Re: Installing NRPE on NNA server
Posted: Fri Mar 06, 2015 1:40 am
by Fred Kroeger
Are you saying that you can't/shouldn't install the NRPE agent on a NNA Server?
Any suggestions on a "supported" way for Nagios to monitor this server?
regards... Fred
Re: Installing NRPE on NNA server
Posted: Fri Mar 06, 2015 11:54 am
by lmiltchev
Are you saying that you can't/shouldn't install the NRPE agent on a NNA Server?
Any suggestions on a "supported" way for Nagios to monitor this server?
I am saying it is not recommended. If you really need to monitor this server, you can install the linux agent on it (nagios plugins + NRPE). I can also use check_by_ssh or SNMP to monitor it. Anyway, back to the NRPE. I just installed the linux agent on my test NNA server with no issues by running:
Code: Select all
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
tar zxf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstall
I don't think you have a "clean" NNA install. Why do you have "nagios" and "nagcmd" groups? In NNA, you should have only "nnacmd" group in place. Maybe you can remove "nagios" and "nagcmd" groups, and the "installed.usersgroups", and rerun the "./fullinstall".
Re: Installing NRPE on NNA server
Posted: Mon Mar 09, 2015 11:07 pm
by Fred Kroeger
Thanks Ludmil
I always thought I had a clean install of NNA as it was downloaded as a VM image, but sure enough the nagios & nagcmd entries were there in the group file.
Removing them did the trick - thanks for your help.
Fred
Re: Installing NRPE on NNA server
Posted: Tue Mar 10, 2015 9:12 am
by lmiltchev
I'm glad I could help, Fred!

I am locking this topic.