Installing NRPE on NNA server

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Installing NRPE on NNA server

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing NRPE on NNA server

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Installing NRPE on NNA server

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing NRPE on NNA server

Post 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".
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Installing NRPE on NNA server

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing NRPE on NNA server

Post by lmiltchev »

I'm glad I could help, Fred! :) I am locking this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked