Nerdier

Adjective: Comparative form of nerdy: more nerdy.

FreeBSD: CHECK_NRPE: Error – Could not complete SSL handshake

I encountered the following error on a FreeBSD server:

CHECK_NRPE: Error - Could not complete SSL handshake

Though NRPE was installed/configured correctly. Turns out there are two versions of NRPE on FreeBSD, nrpe and nrpe-ssl. We of course needed the latter. The fix is fairly simple, first remove nrpe:

# whereis nrpe
nrpe: /usr/ports/net-mgmt/nrpe

# cd /usr/ports/net-mgmt/nrpe
# make deinstall clean

Then install the ssl version:

# whereis nrpe-ssl
nrpe-ssl: /usr/ports/net-mgmt/nrpe-ssl

# cd /usr/ports/net-mgmt/nrpe-ssl
# make install clean

Then it should all work!

/usr/lib64/nagios/plugins/check_nrpe -H <server> -p 5666 -c check_slash -t 60
DISK OK - free space: / 128923 MB (65% inode=99%);| /=67257MB;170592;191916;0;213240

You *might* need to update the ports collection first, follow this guide – http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

Leave a Reply

Your email address will not be published. Required fields are marked *