Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
npolovenko wrote:@pmoradiya, Sounds good, keep us updated!
Here are the updates:
Bad News first.
Performed clean uninstall of NRPE v3.2.1 and tried installing v2.x
Got issues with installing 2.x with some ssl errors although openssl and libssl-dev were already installed
The Good News
After clean uninstall of v3.2.1. Performed re-installation of NRPE v3.2.1 in following sequence with added step of uninstalling/re-installing xinetd in between. I am not sure how this worked out to be successful.
# cd /opt/
# wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.2.1/nrpe-3.2.1.tar.gz
# tar xzf nrpe-3.2.1.tar.gz
# cd nrpe-3.2.1
# ./configure
# make all
# make install-groups-users
# make install
# make install-config
# make install-inetd
# make install-init
# systemctl enable nrpe
## Added steps to remove and install xinetd
# apt-get remove xinetd
# apt-get install xinetd
## Update /etc/xinetd.d/nrpe as required
service xinetd restart
service nrpe restart
## Add nagios in sudoers as below
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/
tmcdonald wrote:Glad to hear it! Are we okay to close this thread?
This could have been closed but the same issue persists in other servers. Above steps somehow fixed the issue on one set of servers but the others still have the same issue.
Can you also run and post the output ps -ef and netstat -anp | grep 5666 on the server where you had to reinstall nrpe in order for this plugin to work.
And just to throw in an extra option, I think a remote support session could be beneficial in this kind of scenario. You can email our sales team to set one up at sales@nagios.com
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Can you also run and post the output ps -ef and netstat -anp | grep 5666 on the server where you had to reinstall nrpe in order for this plugin to work.
And just to throw in an extra option, I think a remote support session could be beneficial in this kind of scenario. You can email our sales team to set one up at sales@nagios.com
Thanks @npolovenko.
Yes. I am able to run commands on the shell as nagios (and as root) user that works as expected.
PS: We also noticed that in nrpe.cfg file you have backslashes on every line. Was that caused by how you copied it over, or do you actually have backslashes in the cfg file? If you do I highly recommend removing them before going over what I posted above.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_tomcat_threads
UNKNOWN JVM is running with different username, run this script with UID 112