With the help of document we tried to install NRPE but didn't get success.
we are getting below error while doing a telnet on the port 5666 to localhost and also from monitoring server (10.100.1.16)
============================================
HECCAPP5:/ #telnet localhost 5666
Trying...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
==============================================
Also when we tried to run command /usr/local/nagios/libexec/check_nrpe -H localhost it's giving an error
============================================================================
HECCAPP5:/ #/usr/local/nagios/libexec/check_nrpe -H localhost
Incorrect command line arguments supplied
NRPE Plugin for Nagios
Version: 3.2.1
Copyright (c) 2009-2017 Nagios Enterprises
1999-2008 Ethan Galstad (
[email protected])
Last Modified: 2017-09-01
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required
Usage: check_nrpe -H <host> [-2] [-4] [-6] [-n] [-u] [-V] [-l] [-d <dhopt>]
[-P <size>] [-S <ssl version>] [-L <cipherlist>] [-C <clientcert>]
[-K <key>] [-A <ca-certificate>] [-s <logopts>] [-b <bindaddr>]
[-f <cfg-file>] [-p <port>] [-t <interval>:<state>] [-g <log-file>]
[-c <command>] [-E] [-a <arglist...>]
========================================================================
we have attached inetd.conf file and nrpe.cfg file plz check and suggest what we can do
inetd.conf file entry
===========================================================
# Enable the following entry to enable the nrpe daemon
#nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
# Enable the following entry if the nrpe daemon didn't link with libwrap
#nrpe stream tcp nowait nagios /usr/sbin/tcpd /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg --inetd
nrpe stream tcp nowait nagios /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i
=================================================================================================
netstat output
=======================================================
HECCAPP5:/ #netstat -a | grep nrpe
tcp 0 0 *.nrpe *.* LISTEN
===========================================================
but we are not seeing anything for nrpe in ps-ef command
===============================================
HECCAPP5:/ #ps -ef | grep nrpe
root 6634 6608 0 16:39:17 pts/0 0:00 grep nrpe
HECCAPP5:/ #ps -ef | grep inetd
root 6636 6608 0 16:39:54 pts/0 0:00 grep inetd
root 5809 1 0 15:02:51 ? 0:00 /usr/sbin/inetd
HECCAPP5:/ #
================================================