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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

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

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post 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!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

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

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

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

Post by dwhitfield »

Thanks @gormank!

@larry.lo, did that work for you?
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

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

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

Sounds good - closing this one out! Feel free to make a new thread should you have questions in the future.
Former Nagios Employee
Locked