Page 2 of 3
Re: NRPE: Unable to read output check_load
Posted: Thu Jul 31, 2014 5:30 am
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
Re: NRPE: Unable to read output check_load
Posted: Fri Aug 01, 2014 11:24 am
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?
Re: NRPE: Unable to read output check_load
Posted: Fri Aug 01, 2014 11:33 pm
by pianunix
Already do that, you may scroll previous the page.
Re: NRPE: Unable to read output check_load
Posted: Mon Aug 04, 2014 2:08 pm
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
Re: NRPE: Unable to read output check_load
Posted: Mon Aug 04, 2014 9:41 pm
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 ?
Re: NRPE: Unable to read output check_load
Posted: Wed Aug 06, 2014 11:51 am
by lmiltchev
Are you using tcp wrappers? Is selinux enabled?
Code: Select all
cat /etc/hosts.allow
cat /etc/hosts.deny
sestatus
Re: NRPE: Unable to read output check_load
Posted: Tue Aug 12, 2014 3:02 am
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.
Re: NRPE: Unable to read output check_load
Posted: Tue Aug 12, 2014 5:14 pm
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
Re: NRPE: Unable to read output check_load
Posted: Tue Aug 12, 2014 9:07 pm
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
Re: NRPE: Unable to read output check_load
Posted: Tue Aug 12, 2014 9:56 pm
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