Yey Another "NRPE: Unable to read output"

Pierre Couderc pierre at couderc.eu
Sun Mar 10 19:11:03 CET 2019


Having this message with a debian plugin, I have tried a minimum example 
: plugin on the "client" in a /home/nagios :


nagios at server:/home/nagios$ ls -lh
total 8.0K
-rwxrwxrwx 1 nagios nagios 48 Mar  8 07:08 check_bash
-rwxrwxrwx 1 nagios nagios 73 Mar 10 09:26 check_pl
nagios at server:/home/nagios$ cat check_bash
#!/bin/bash

     echo "CRITICAL-pc "
     exit 2
nagios at server:/home/nagios$ cat check_pl
#!/usr/bin/perl
#
#
#
use strict;
print STDERR "CRITICAL-pc\n";
exit(2);
nagios at server:/home/nagios$ ./check_pl
CRITICAL-pc
nagios at server:/home/nagios$ echo $?
2
nagios at server:/home/nagios$ ./check_bash
CRITICAL-pc
nagios at server:/home/nagios$ echo $?
2

When executed on the nagios "server" :

root at nagios:~# /usr/lib/nagios/plugins/check_nrpe  -H 192.168.163.1 -c 
check_bash
CRITICAL-pc
root at nagios:~# /usr/lib/nagios/plugins/check_nrpe  -H 192.168.163.1 -c 
check_pl
NRPE: Unable to read output

What do I miss ....?

Why perl (or  python...) plugin does not work ?

Thanks for any help

PC





More information about the Help mailing list