Linux NRPE: unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Linux NRPE: unable to read output

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Linux NRPE: unable to read output

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Linux NRPE: unable to read output

Post 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.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post 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.
You do not have the required permissions to view the files attached to this post.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post 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.
You do not have the required permissions to view the files attached to this post.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Linux NRPE: unable to read output

Post 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.

Code: Select all

service xinetd restart
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Linux NRPE: unable to read output

Post 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.

Code: Select all

service xinetd restart
Make sure that these have not been defined in the /usr/local/nagios/etc/nrpe/common.cfg file already.

Box293 wrote: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.
It would be good to see what testing you have tried.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post 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)?
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Linux NRPE: unable to read output

Post by hsmith »

Did you install NRPE manually, and compile it youself, or did you run the fullinstall script?
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post 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)
Locked