NRPE: Unable to read output check_load

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: NRPE: Unable to read output check_load

Post by pianunix »

HI,

I never been use a journalctl tools, but in the /var/log/messages i see this :

Jul 31 08:44:34 server43012x nrpe[15407]: Daemon shutdown
Jul 31 08:44:34 server43012x nrpe[9706]: Starting up daemon
Jul 31 08:44:34 server43012x nrpe[9706]: Server listening on 0.0.0.0 port 5666.
Jul 31 08:44:34 server43012x nrpe[9706]: Server listening on :: port 5666.
Jul 31 08:44:34 server43012x nrpe[9706]: Listening for connections on port 0
Jul 31 08:44:34 server43012x nrpe[9706]: Allowing connections from: 202.43.165.22

Is there any solution ?

Thx
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NRPE: Unable to read output check_load

Post by sreinhardt »

Is 202.43.165.22 the nagios host that is attempting to access it? Within that debug output time, did you attempt to run check_nrpe from the nagios system and communicate with this device?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: NRPE: Unable to read output check_load

Post by pianunix »

Already do that, you may scroll previous the page.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output check_load

Post by lmiltchev »

Can you run the following command on the client and show us the output?

Code: Select all

ls -l /usr/lib/nagios/plugins/check_load
Be sure to check out our Knowledgebase for helpful articles and solutions!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: NRPE: Unable to read output check_load

Post by pianunix »

Code: Select all

server43012x [~]# ls -al /usr/lib/nagios/plugins/check_load 
-rwxr-xr-x 1 root root 38988 Oct 17  2013 /usr/lib/nagios/plugins/check_load*
Any solution ?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output check_load

Post by lmiltchev »

Are you using tcp wrappers? Is selinux enabled?

Code: Select all

cat /etc/hosts.allow
cat /etc/hosts.deny
sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: NRPE: Unable to read output check_load

Post by pianunix »

My server are using cPanel system. Is that would be uncompatible with Nagios ?

Code: Select all

# sestatus 
SELinux status:                 disabled

Code: Select all

~]# cat /etc/hosts.allow 
#
# hosts.allow   This file contains access rules which are used to
#               allow or deny connections to network services that
#               either use the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers

Code: Select all

 [~]# cat /etc/hosts.deny 
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE: Unable to read output check_load

Post by abrist »

Do any of the check commands work?

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H server43012x
/usr/lib/nagios/plugins/check_nrpe -H server43012x -c check_users
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: NRPE: Unable to read output check_load

Post by pianunix »

Yes this command was executed with successfull

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H server43012x
NRPE v2.15

Code: Select all

 /usr/lib/nagios/plugins/check_nrpe -H server43012x -c check_users
USERS OK - 3 users currently logged in |users=3;5;10;0
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE: Unable to read output check_load

Post by Box293 »

When testing this command on the remote host, are you doing it as the nagios user?

Code: Select all

su nagios
/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked