[RESOLVED] NRPE: Unable to read output

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.
Locked
CedricF
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

[RESOLVED] NRPE: Unable to read output

Post 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.
Last edited by CedricF on Tue Dec 04, 2018 8:39 am, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post 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
CedricF
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

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

Post 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.
CedricF
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

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

Post by CedricF »

Since there was a script in Perl, he missing a library in Perl.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
CedricF
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

Re: [RESOLVED] NRPE: Unable to read output

Post by CedricF »

How ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: [RESOLVED] NRPE: Unable to read output

Post by scottwilkerson »

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked