Page 1 of 1

Nagios nrpe agent installation

Posted: Mon Apr 06, 2020 6:13 am
by ets_user
Hi,

We are trying to install the linux nrpe agent on a server to be monitored by nagios using the check_nrpe plugin.

Following the guide https://assets.nagios.com/downloads/nag ... _Agent.pdf we did all the setup.

./full install gives the below message, but i dont see any folder as /usr/local/nagios...

Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0

##########################################################
### ###
### Nagios XI Linux Agent Installation Complete! ###
### ###
##########################################################


Will it be stored inside .tmp itself.?

And when i tried to add the server in Nagios XI, I am getting error as "(No output on stdout) stderr: connect to address xx.xxx.xx.xx port 5666: No route to host"

In the above documentation there are no clear steps on configuration files to allow port 5666 , firewall, xinetd etc..

Could you provide with documentation if any other or advise on the above.

Thanks.

Re: Nagios nrpe agent installation

Posted: Mon Apr 06, 2020 1:09 pm
by ssax
Yeah, you should see /usr/local/nagios directory, it must not have installed properly.

Remove the install directory that you ran fullinstall from, re-extract it, run the ./fullinstall again and send us the ENTIRE output.

Thank you

Re: Nagios nrpe agent installation

Posted: Tue Apr 07, 2020 4:04 am
by ets_user
I had deleted the folder.

Re-extracted it and tried to run ./fullinstall and below is the output.

It shows Installation complete but still I am not able to see the /user/local/nagios directory..Strange.!!!

[root@test linux-nrpe-agent]# ./fullinstall
Your system $PATH does not include /sbin and /usr/sbin. This is usually the result of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
============================
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, Cloud Linux 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'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0

##########################################################
### ###
### Nagios XI Linux Agent Installation Complete! ###
### ###
##########################################################

If you experience any problems, please attach the file install.log that was just created to any support requests.

Re: Nagios nrpe agent installation

Posted: Tue Apr 07, 2020 3:01 pm
by lmiltchev
Can you run the following commands on the client (remote machine), and show the output?

Code: Select all

cat /etc/*release
uname -a
Are you using a proxy? Is the client machine connected to the Internet? You are not running the script in an offline environment, are you?

Remove all of the files named "installed.xxx", e.g. "installed.repos", and rerun the script, enabling debugging:

Code: Select all

cd /tmp/linux-nrpe-agent
bash -x ./fullinstall
If the agent is still not installed, post the entire output. Also, post the install.log file.