Page 1 of 1

Installing and Uninstalling Nagios Agent

Posted: Mon Mar 14, 2016 11:22 pm
by steelwedge
Dear Team,

We installed nagios agent in one of our Ubuntu machine and its not worked fine so we uninstalled it by following the below commands. We installed the nagios agent again by following the below instructions, this time we are unable to find the nagios directory in the below location and still we are getting "CHECK_NRPE: Error - Could not complete SSL handshake." in the nagios web interface, please help us to resolve this issue ASAP.
https://assets.nagios.com/downloads/nag ... _Agent.pdf

/usr/local/nagios

Post : https://support.nagios.com/forum/viewto ... 10&p=41200

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios

Regards,
Mohan

Re: Installing and Uninstalling Nagios Agent

Posted: Tue Mar 15, 2016 12:05 am
by Box293
Can you follow the steps in this article and let us know if it helps resolve your problem:

https://support.nagios.com/kb/article.php?id=140

If you are still having problems, let us know what you tried, including commands typed and output produced.

Re: Installing and Uninstalling Nagios Agent

Posted: Tue Mar 15, 2016 2:21 am
by steelwedge
The attached article didn't helped me in resolving the issue as after I installed the nagios agent for the second time I didn't find any nagios directory in the below location which should be created during installation.

/usr/local/nagios.

I followed the below steps to uninstall the agent.
Post : viewtopic.php?t=8710&p=41200

delgroup nagios
deluser nagios
rm -f /etc/xinet.d/nrpe
service xinetd restart
rm -rf /usr/local/nagios

I followed the below steps to re install the agent.

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Re: Installing and Uninstalling Nagios Agent

Posted: Tue Mar 15, 2016 9:45 am
by lmiltchev
Did you run the "fullinstall" script as root? Can you post the install.log? What version of Ubuntu are you currently running? 32- or 64-bit?

Re: Installing and Uninstalling Nagios Agent

Posted: Tue Mar 15, 2016 10:14 am
by gormank
Chances are the install dir wasn't removed as part of the removal, so the next install skips everything completed previously. After an installation, a number of 0 byte files exist that tell the install scripts that the steps completed. That's how they know what to try again when installation fails and fullinstall is rerun.

Re: Installing and Uninstalling Nagios Agent

Posted: Tue Mar 15, 2016 11:31 am
by lmiltchev
Good call, gormank! Yes, @steelwedge will have to remove the "installed.xxx" files before rerunning the fullinstall script:

Code: Select all

cd /tmp/linux-nrpe-agent
rm -rf installed.*
./fullinstall

Re: Installing and Uninstalling Nagios Agent

Posted: Thu Apr 28, 2016 4:21 am
by steelwedge
This issue has been resolved.