Page 1 of 1

How to re-install / uninstall linux-nrpe-agent?

Posted: Tue Jan 10, 2017 6:06 am
by larry.lo
Hi Support,

I just found the other post and performed following step.

Code: Select all

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios
After this, I can't run "./fullinstall" again

Code: Select all

[root@bssoap11 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, 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.
And the nrpe not work:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
connect to address 127.0.0.1 port 5666: Connection refused
connect to host 127.0.0.1 port 5666: Connection refused
Could you please help?
Thanks.

Re: How to re-install / uninstall linux-nrpe-agent?

Posted: Tue Jan 10, 2017 11:13 am
by dwhitfield
Can you follow this troubleshooting document please:
https://assets.nagios.com/downloads/nag ... utions.pdf

Please let us know what steps you tried in the document, including commands executed and the output. Thanks!

Re: How to re-install / uninstall linux-nrpe-agent?

Posted: Tue Jan 10, 2017 11:40 am
by gormank
The OP needs to remove the dir (in /tmp per instructions) that the NRPE install files were extracted to, then extract the files again. The install script keeps track of what succeeded or failed so it can be restarted.

Re: How to re-install / uninstall linux-nrpe-agent?

Posted: Tue Jan 10, 2017 11:46 am
by dwhitfield
Thanks @gormank!

@larry.lo, did that work for you?

Re: How to re-install / uninstall linux-nrpe-agent?

Posted: Tue Jan 10, 2017 11:06 pm
by larry.lo
gormank wrote:The OP needs to remove the dir (in /tmp per instructions) that the NRPE install files were extracted to, then extract the files again. The install script keeps track of what succeeded or failed so it can be restarted.
dwhitfield wrote:Thanks @gormank!

@larry.lo, did that work for you?
Its work, thanks so much.

Re: How to re-install / uninstall linux-nrpe-agent?

Posted: Wed Jan 11, 2017 10:30 am
by rkennedy
Sounds good - closing this one out! Feel free to make a new thread should you have questions in the future.