Page 1 of 1

[RESOLVED] NRPE: Unable to read output

Posted: Fri Nov 30, 2018 4:48 am
by CedricF
Hi,

I have a new episode of my progress on Nagios.

I have probes that have just been deployed on a server. They go wrong with the message:

Code: Select all

Current Status:	
  CRITICAL  
 (for 0d 0h 51m 14s)
Status Information:	NRPE: Unable to read output

Current Status:	
  CRITICAL  
 (for 1d 22h 3m 37s)
Status Information:	CHECK_NRPE: Error - Could not complete SSL handshake.
and here is the configuration of the file nrpe.conf of the server

Code: Select all

command[check_scheduler]=/u/prog/nagios/libexec/check_scheduler.pl -H 192.168.215.19 -p 4444 -e  -
command[check_scheduler]=cd /u/prog/nagios/libexec && /usr/bin/perl sos_check_scheduler.pl -H localhost -p 4444
command[check_scheduler_job]=/u/prog/nagios/libexec/check_logfiles --logfile=/home/scheduler/jobscheduler/main/logs/scheduler.log --criticalpattern='\[ERROR\]' --warningpattern='\[WARN\]'
and here is the configuration of the file nrpe.conf of the server




and the conf file of this server from the Nagios server :

Code: Select all

define service{
        use                             local-service
        host_name                       XXSERVERXX
        service_description             Total Processes
        check_command                   check_nrpe!check_total_procs
        check_period                    06x7
        notification_period             06x7
        }

define service{
        use                             local-service         ; Name of service templat
        host_name                       XXSERVERXX
        service_description             SCHEDULER
        check_command                   check_nrpe!check_scheduler
        }

define servicedependency{
        dependent_host_name             XXSERVERXX
        dependent_service_description   SCHEDULER
        host_name                       XXSERVERXX
        service_description             CPU
        execution_failure_criteria      c,u
        notification_failure_criteria   c,u
        }

define service{
        use                             local-service         ; Name of service templat
        host_name                       XXSERVERXX
        service_description             SCHEDULER Jobs
        check_command                   check_nrpe!check_scheduler_job
        }

define servicedependency{
        dependent_host_name             XXSERVERXX
        dependent_service_description   SCHEDULER Jobs
        host_name                       XXSERVERXX
        service_description             SCHEDULER
        execution_failure_criteria      c,u
        notification_failure_criteria   c,u
        }
and the ports are listening

Code: Select all

tcp        0      0 0.0.0.0:4444            0.0.0.0:*               LISTEN      1000       11906962   32675/scheduler
tcp        0      0 XXXX.XXXX.XXXX.XXXX:4444     XXXX.XXXX.XXXX.XXXX:38477    ESTABLISHED 1000       11907870   32675/scheduler
udp        0      0 0.0.0.0:4444            0.0.0.0:*                           1000       11906961   32675/scheduler
I don't know where to look.

and thank you in advance for any return.

Cédric.

Re: NRPE: Unable to read output & CHECK_NRPE: Error - Could

Posted: Fri Nov 30, 2018 5:26 pm
by ssax
What is the output of these commands (run them from the XI server):
- Note: Change X.X.X.X to the IP of your remote server having issues

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -n
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -2
/usr/local/nagios/libexec/check_nrpe -H X.X.X.X -n -2
Please post the output of these commands as well on the remote host (not the XI server):

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -n
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -2
/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -n -2
cat /etc/xinetd.d/nrpe
ps aux | grep nrpe

Re: NRPE: Unable to read output & CHECK_NRPE: Error - Could

Posted: Mon Dec 03, 2018 11:17 am
by CedricF
Hi,

One the Nagios server :

Code: Select all

/u/prog/nagios/libexec$ ./check_nrpe -H XX.XX.XX.XX
NRPE v2.13
/u/prog/nagios/libexec$ ./check_nrpe -H XX.XX.XX.XX -n
CHECK_NRPE: Error receiving data from daemon.
and on the client Server :

Code: Select all

/u/prog/nagios/libexec# ./check_nrpe -H XX.XX.XX.XX
CHECK_NRPE: Error - Could not complete SSL handshake.
/u/prog/nagios/libexec# ./check_nrpe -H XX.XX.XX.XX -n
CHECK_NRPE: Error receiving data from daemon.

Re: NRPE: Unable to read output & CHECK_NRPE: Error - Could

Posted: Tue Dec 04, 2018 8:39 am
by CedricF
Since there was a script in Perl, he missing a library in Perl.

Re: NRPE: Unable to read output & CHECK_NRPE: Error - Could

Posted: Tue Dec 04, 2018 12:40 pm
by scottwilkerson
CedricF wrote:Since there was a script in Perl, he missing a library in Perl.
I see you marked the first post [Resolved]

May we lock the thread?

Re: [RESOLVED] NRPE: Unable to read output

Posted: Wed Dec 05, 2018 6:05 am
by CedricF
How ?

Re: [RESOLVED] NRPE: Unable to read output

Posted: Wed Dec 05, 2018 8:07 am
by scottwilkerson
Locking