Please find below answers:
1. What kind of system is this (OS/distro/architecture)?
[
[email protected] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
[
[email protected] nagios]# uname -mrs
Linux 2.6.18-406.el5 x86_64
[
[email protected] nagios]# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.11 (Tikanga)
Release: 5.11 : Tikanga
[
[email protected] tmp]# cat /proc/version
Linux version 2.6.18-406.el5 (
[email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)) #1 SMP Fri May 1 10:37:57 EDT 2015
2. Show us the "check_procs" definition. It is probably in "/usr/local/nagios/etc/nrpe/common.cfg" or "/usr/local/nagios/etc/nrpe.cfg". Your paths may be different, depending on the distro that you are using.
Common.cfg is located in below path:
[
[email protected] nrpe.d]# pwd
/etc/nrpe.d
[
[email protected] nrpe.d]# ls -ltr
total 4
-rw-r--r-- 1 nrpe nrpe 1279 Sep 9 2015 common.cfg
[
[email protected] nrpe.d]# cat common.cfg|grep check_procs
command[check_all_procs]=/usr/lib64/nagios/plugins/custom_check_procs
command[check_procs]=/usr/lib64/nagios/plugins/check_procs $ARG1$
nrpe.cfg is located in below path:
[
[email protected] nagios]# pwd
/etc/nagios
[
[email protected] nagios]# ls -ltr
total 8
-rw-r--r-- 1 root root 7995 Sep 9 2015 nrpe.cfg
[
[email protected] nagios]# cat nrpe.cfg|grep -i "check_procs"
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
#command[check_procs]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
3. What is the full path to the nagios plugins on your system?
[
[email protected] plugins]# pwd
/usr/lib64/nagios/plugins
[
[email protected] plugins]# ls -ltr|wc -l
output of commands -
[
[email protected] ~]# find / -name nrpe
/etc/sysconfig/nrpe
/etc/rc.d/init.d/nrpe
/var/lock/subsys/nrpe
/var/run/nrpe
/usr/sbin/nrpe
[
[email protected] ~]# ps axuw | grep nrpe
nrpe 8555 0.0 0.0 40004 868 ? Ss Mar09 0:02 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 29601 0.0 0.0 61232 788 pts/1 S+ 06:25 0:00 grep nrpe
[
[email protected] ~]# netstat -at | grep nrpe
getnameinfo failed
Thanks