NRPE: Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

NRPE: Unable to read output

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: Unable to read output

Post 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'.
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: NRPE: Unable to read output

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output

Post by lmiltchev »

According to our developers, the "perl-Digest" package is needed by the "check_logfile" plugin, not NRPE.
Be sure to check out our Knowledgebase for helpful articles and solutions!
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: NRPE: Unable to read output

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: Unable to read output

Post 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.
Former Nagios Employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: NRPE: Unable to read output

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE: Unable to read output

Post 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.
Former Nagios employee
larry.lo
Posts: 24
Joined: Tue May 17, 2016 10:28 pm

Re: NRPE: Unable to read output

Post 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 ...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRPE: Unable to read output

Post 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
Former Nagios Employee
Locked