lmiltchev wrote:How did you install the Linux agent (NRPE + Nagios Plugins)? Did you follow
this guide?
Run the following commands and show the output:
On the client (remote machine):
Code: Select all
uname -a
cat /etc/*release
ip addr
find / -name nrpe
ps axuw | grep nrpe
netstat -at | grep nrpe
On the Nagios XI server:
Code: Select all
nmap <client ip> -p 5666
/usr/local/nagios/libexec/check_nrpe -H <client ip>
Also, show the actual check that you are running from the command line along with the output of it, and the command definition on the client. Example:
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
/usr/local/nagios/libexec/check_nrpe -H 192.168.x.x -p 5666 -c check_users -a '-w 2 -c 5'
USERS OK - 1 users currently logged in |users=1;2;5;0
1. Yes I followed your guide (provided by you in response to me other post)
2. Client output:
login as: root
[email protected]'s password:
Last login: Wed Nov 11 12:54:30 2015
[root@cakc-nfs01 ~]# uname -a
Linux cakc-nfs01 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 10 18:01:38 UTC 2015 x 86_64 x86_64 x86_64 GNU/Linux
[root@cakc-nfs01 ~]# cat /etc/*release
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
[root@cakc-nfs01 ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:0c:29:2b

48 brd ff:ff:ff:ff:ff:ff
inet 10.x.x.x/24 brd 10.x.0.255 scope global eth0
inet6 fe80::20c

fe2b:cd48/64 scope link
valid_lft forever preferred_lft forever
[root@cakc-nfs01 ~]# find / -name nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/mods/cfg/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src/nrpe
/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/package/solaris/pkg/nrpe
/usr/local/nagios/bin/nrpe
/usr/local/nagios/etc/nrpe
/etc/xinetd.d/nrpe
[root@cakc-nfs01 ~]# ps axuw | grep nrpe
root 14835 0.0 0.0 103304 892 pts/1 S+ 12:03 0:00 grep nrpe
[root@cakc-nfs01 ~]#
3. Server output
login as: root
[email protected]'s password:
Last login: Tue Nov 24 12:07:16 2015
[root@fikc-nagxidev01 ~]# nmap 10.x.x.91 -p 5666
Starting Nmap 6.47 (
http://nmap.org ) at 2015-11-24 12:15 EST
Nmap scan report for 10.67.0.91
Host is up (0.14s latency).
PORT STATE SERVICE
5666/tcp open nrpe
Nmap done: 1 IP address (1 host up) scanned in 0.38 seconds
You have new mail in /var/spool/mail/root
[root@fikc-nagxidev01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.x.91
NRPE v2.15
[root@fikc-nagxidev01 ~]#
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.67.0.91 -t 30 -c Check_OS_Version -a show-all 'detail-syntax=\$\{kernel_name\} Version \$\{kernel_release\}'
OUTPUT: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Maybe I do not understand relationships in between NRPE and plugins?