Yey Another "NRPE: Unable to read output"
Pierre Couderc <pierre-ZaSpn73FS/[email protected]> Sun, 10 Mar 2019 19:11:03 +0100
| Newsgroups | gmane.network.nagios.plugins |
|---|---|
| Message-ID | <9fe86ad3-4ead-6582-5f81-dc0cd77dc9fd__28160.2299002529$1552241476$gmane$org@couderc.eu> |
Having this message with a debian plugin, I have tried a minimum example : plugin on the "client" in a /home/nagios : nagios@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@server:/home/nagios$ cat check_bash #!/bin/bash echo "CRITICAL-pc " exit 2 nagios@server:/home/nagios$ cat check_pl #!/usr/bin/perl # # # use strict; print STDERR "CRITICAL-pc\n"; exit(2); nagios@server:/home/nagios$ ./check_pl CRITICAL-pc nagios@server:/home/nagios$ echo $? 2 nagios@server:/home/nagios$ ./check_bash CRITICAL-pc nagios@server:/home/nagios$ echo $? 2 When executed on the nagios "server" : root@nagios:~# /usr/lib/nagios/plugins/check_nrpe -H 192.168.163.1 -c check_bash CRITICAL-pc root@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