[RESOLVED] NRPE: Unable to read output

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

[RESOLVED] NRPE: Unable to read output

Postby CedricF » Fri Nov 30, 2018 4:48 am

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

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

Postby ssax » Fri Nov 30, 2018 5:26 pm

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 3464
Joined: Wed Feb 11, 2015 12:54 pm

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

Postby CedricF » Mon Dec 03, 2018 11:17 am

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

Postby CedricF » Tue Dec 04, 2018 8:39 am

Since there was a script in Perl, he missing a library in Perl.
CedricF
 
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

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

Postby scottwilkerson » Tue Dec 04, 2018 12:40 pm

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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12656
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: [RESOLVED] NRPE: Unable to read output

Postby CedricF » Wed Dec 05, 2018 6:05 am

How ?
CedricF
 
Posts: 12
Joined: Thu Nov 15, 2018 4:37 am

Re: [RESOLVED] NRPE: Unable to read output

Postby scottwilkerson » Wed Dec 05, 2018 8:07 am

Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12656
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: onepro1 and 28 guests