Page 1 of 4
Linux NRPE: unable to read output
Posted: Thu Nov 26, 2015 3:07 pm
by dlukinski
Used wizard-based configuration for Linux-client monitoring (works for my CentOS)
Last login: Wed Nov 25 17:06:51 2015
[root@fikc-nagxidev01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.x.28
NRPE v2.15
[root@fikc-nagxidev01 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.x.x.28 -t 30 -c check_cpu_stats -a '-w 85 -c 95'
NRPE: Unable to read output (same issue with CPU stats, processes, Memory, Open Files, Yum, etc..)
OS is possibly RedHat EL 6.5 (have no direct access to it)
What to check next?
Re: Linux NRPE: unable to read output
Posted: Thu Nov 26, 2015 7:08 pm
by Box293
Please read through this guide as it should address your issue:
https://assets.nagios.com/downloads/nag ... utions.pdf
If this doesn't fix your problem, please let us know what you tried (including commands typed) and what the output/result is.
Re: Linux NRPE: unable to read output
Posted: Fri Nov 27, 2015 8:40 am
by raamardhani7
Please check in the nrpe.cfg file in the remote server, whether you have defined the parameters in it. If possible, please post your nrpe.cfg file.
Re: Linux NRPE: unable to read output
Posted: Fri Nov 27, 2015 10:49 am
by dlukinski
raamardhani7 wrote:Please check in the nrpe.cfg file in the remote server, whether you have defined the parameters in it. If possible, please post your nrpe.cfg file.
Re: Linux NRPE: unable to read output
Posted: Fri Nov 27, 2015 10:51 am
by dlukinski
dlukinski wrote:raamardhani7 wrote:Please check in the nrpe.cfg file in the remote server, whether you have defined the parameters in it. If possible, please post your nrpe.cfg file.
Re: Linux NRPE: unable to read output
Posted: Fri Nov 27, 2015 6:29 pm
by raamardhani7
dlukinski wrote:dlukinski wrote:raamardhani7 wrote:Please check in the nrpe.cfg file in the remote server, whether you have defined the parameters in it. If possible, please post your nrpe.cfg file.
Please define the command in the nrpe.cfg
Code: Select all
command[check_cpu_stats]=/usr/local/nagios/libexec/check_cpu_stats $ARG1$
Agrument1 I defined as -w <warning threshold> -c <Critical threshold>
Similarly for the other parameters add them in nrpe.cfg file. Once done execute the below command.
Re: Linux NRPE: unable to read output
Posted: Sun Nov 29, 2015 10:12 pm
by Box293
raamardhani7 wrote:dlukinski wrote:raamardhani7 wrote:Please check in the nrpe.cfg file in the remote server, whether you have defined the parameters in it. If possible, please post your nrpe.cfg file.
Please define the command in the nrpe.cfg
Code: Select all
command[check_cpu_stats]=/usr/local/nagios/libexec/check_cpu_stats $ARG1$
Agrument1 I defined as -w <warning threshold> -c <Critical threshold>
Similarly for the other parameters add them in nrpe.cfg file. Once done execute the below command.
Make sure that these have not been defined in the /usr/local/nagios/etc/nrpe/common.cfg file already.
It would be good to see what testing you have tried.
Re: Linux NRPE: unable to read output
Posted: Tue Dec 29, 2015 6:44 am
by dlukinski
Took some time to get my hand on another RHEL 6.5 system, which exhibits same behaviour:
After NRPE client install (per XI manual), "CPU Stats", "Memory Usage", "Open Files" and processes such as Java are not operational. (now same for 2 x RHEL EL 6.5)
- so to me this is NRPE client out of the box behaviour on this Linux platform.
- CPU check is defined in common.cfg (attached)
How to overcome this (we have MANY RHEL installs - they might all work same way if we try NRPE installs now)?
Re: Linux NRPE: unable to read output
Posted: Tue Dec 29, 2015 10:04 am
by hsmith
Did you install NRPE manually, and compile it youself, or did you run the fullinstall script?
Re: Linux NRPE: unable to read output
Posted: Tue Dec 29, 2015 4:31 pm
by dlukinski
hsmith wrote:Did you install NRPE manually, and compile it youself, or did you run the fullinstall script?
we ran fullinstall script in both cases (same results with many checks missing)