Linux NRPE: unable to read output
Linux NRPE: unable to read output
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?
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?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Linux NRPE: unable to read output
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.
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
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
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.
Re: Linux NRPE: unable to read output
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
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$
Similarly for the other parameters add them in nrpe.cfg file. Once done execute the below command.
Code: Select all
service xinetd restart
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Linux NRPE: unable to read output
Make sure that these have not been defined in the /usr/local/nagios/etc/nrpe/common.cfg file already.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
Agrument1 I defined as -w <warning threshold> -c <Critical threshold>Code: Select all
command[check_cpu_stats]=/usr/local/nagios/libexec/check_cpu_stats $ARG1$
Similarly for the other parameters add them in nrpe.cfg file. Once done execute the below command.
Code: Select all
service xinetd restart
It would be good to see what testing you have tried.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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Linux NRPE: unable to read output
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)?
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.
Re: Linux NRPE: unable to read output
Did you install NRPE manually, and compile it youself, or did you run the fullinstall script?
Former Nagios Employee.
me.
me.
Re: Linux NRPE: unable to read output
we ran fullinstall script in both cases (same results with many checks missing)hsmith wrote:Did you install NRPE manually, and compile it youself, or did you run the fullinstall script?