Page 1 of 2

NRPE: Unable to read output

Posted: Tue Jan 10, 2017 5:59 am
by larry.lo
I have newly created a monitoring hosts and services and one of the service (LOG /var/log/messages) are showing "Unknown: NRPE: Unable to read output".

I have tried the following:
1. As we use xinetd, checked the client common.cfg file: (/usr/local/nagios/etc/nrpe/common.cfg)

Code: Select all

command[check_logfiles]=/usr/local/nagios/libexec/check_logfiles -f /usr/local/nagios/etc/check_logfiles.cfg
2. Running "/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1"

Code: Select all

NRPE v3.0.1
3. Running "/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_logfiles"

Code: Select all

NRPE: Unable to read output
Could give me some suggestion for solving this problem?
Thanks.

Re: NRPE: Unable to read output

Posted: Tue Jan 10, 2017 9:59 am
by rkennedy
For reference, you shouldn't need to run check_nrpe to test against 127.0.0.1.

What you'll need to do is update the allowed_hosts for the hosts that you plan to have interact with NRPE. Take a look at this link - https://support.nagios.com/kb/article.p ... ategory=22 - specifically 'Update Configuration File'.

Re: NRPE: Unable to read output

Posted: Tue Jan 10, 2017 11:02 pm
by larry.lo
Hi support,

Problem solved.
It needed some package to run the command, it resumed normal after installed these package (perl-Digest)
Previously, I just install linux-nrpe-agent on Linux 6.x, it's normal. But, this problem just happened on linux 7.x.

Since we have upgrade nrpe from v2.15 to v3.01, can i customize a package for our environment?
OR new nrpe package can be downloaded from Nagios?

Thanks.

Re: NRPE: Unable to read output

Posted: Wed Jan 11, 2017 11:33 am
by lmiltchev
According to our developers, the "perl-Digest" package is needed by the "check_logfile" plugin, not NRPE.

Re: NRPE: Unable to read output

Posted: Mon Jan 16, 2017 8:59 pm
by larry.lo
lmiltchev wrote:According to our developers, the "perl-Digest" package is needed by the "check_logfile" plugin, not NRPE.
Is there any way to customize a Installation package for our environment?

Thanks.

Re: NRPE: Unable to read output

Posted: Tue Jan 17, 2017 10:53 am
by rkennedy
You could include the package perl-Digest in your initial system setup to counteract this. You're free to build your own installer, but this isn't something we can assist with.

Re: NRPE: Unable to read output

Posted: Thu Jan 26, 2017 1:36 am
by larry.lo
rkennedy wrote:You could include the package perl-Digest in your initial system setup to counteract this. You're free to build your own installer, but this isn't something we can assist with.
Hi rkennedy,

Is there any reference to build our own installer for NRPE v3? (Linux, Solaris, AIX)
Thanks.

Re: NRPE: Unable to read output

Posted: Thu Jan 26, 2017 5:15 pm
by tmcdonald
You might look into RPM packaging:

http://stackoverflow.com/questions/8802 ... n-rpm-file

But this is out of scope of what we can assist with.

Re: NRPE: Unable to read output

Posted: Thu Jan 26, 2017 11:14 pm
by larry.lo
tmcdonald wrote:You might look into RPM packaging:

http://stackoverflow.com/questions/8802 ... n-rpm-file

But this is out of scope of what we can assist with.
But, I want the nrpe agent installer for NRPE v3. As I want to install nrpe agent v3 directly.
Where can I download it?
Thanks ...

Re: NRPE: Unable to read output

Posted: Fri Jan 27, 2017 1:51 pm
by rkennedy
See this link for our instructions - https://support.nagios.com/kb/article.p ... ategory=22

The direct link can be found here - https://github.com/NagiosEnterprises/nr ... 0.1.tar.gz