[Nagiosplug-help] NRPE, check_smtp, and Solaris = mysterious failure

Florin Andrei florin at andrei.myip.org
Wed Apr 6 02:08:16 CEST 2011

I compiled nrpe-2.12 and nagios-plugins-1.4.15 on Solaris 10 x86. 
Everything works fine so far, except check_smtp when checked through the 
nrpe daemon (actually, nrpe is running via inetd).

check_smtp by itself (run manually) works fine:

# /usr/local/nagios/libexec/check_smtp -H localhost
SMTP OK - 0.023 sec. response time|time=0.022584s;;;0.000000

But via NRPE it doesn't work:

# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_smtp
NRPE: Unable to read output

Relevant nrpe.cfg snippet:

command[check_smtp]=/usr/local/nagios/libexec/check_smtp -H

Syslog provides no clue, even when I enable debugging. I'm stumped. The 
output from the plugin seems fine. Yet there's something in it that nrpe 
appears to dislike.

Comparison with another plugin, which works fine via NRPE:

# /usr/local/nagios/libexec/check_ntp_time -H
NTP OK: Offset 8.983188309e-07 secs|offset=0.000001s;60.000000;120.000000;
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_ntp_time
NTP OK: Offset 7.059483323e-06 secs|offset=0.000007s;60.000000;120.000000;

Florin Andrei

More information about the Help mailing list