First there are reports of type issues during compilation using XLC.
Code: Select all
$ make all
cd ./src/; make
/opt/IBM/xlC/13.1.2/bin/xlc -g -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -c ./snprintf.c
/opt/IBM/xlC/13.1.2/bin/xlc -g -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib -lssl -lcrypto -lnsl ./snprintf.o
./nrpe.c:
"./nrpe.c", line 261.14: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 283.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 287.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 290.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 293.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 296.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./nrpe.c", line 1777.19: 1506-068 (W) Operation between types "struct ssl_cipher_st*" and "const struct ssl_cipher_st*" is not allowed.
./utils.c:
./acl.c:
/opt/IBM/xlC/13.1.2/bin/xlc -g -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib -lssl -lcrypto -lnsl ./snprintf.o
./check_nrpe.c:
"./check_nrpe.c", line 780.22: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 784.30: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 788.30: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 791.30: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 794.30: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 797.30: 1506-068 (W) Operation between types "struct ssl_method_st*" and "const struct ssl_method_st*" is not allowed.
"./check_nrpe.c", line 968.39: 1506-196 (W) Initialization between types "struct ssl_cipher_st*" and "const struct ssl_cipher_st*" is not allowed.
./utils.c:
Target "all" is up to date.
*** Compile finished ***
You can now continue with the installation or upgrade process.
Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
But when we tried to use check_nrpe (no matter on AIX 7.1 or the Linux one) to communicate with the NRPE, here comes the errors.
Code: Select all
$ ./check_nrpe -H 127.0.0.1
CHECK_NRPE: Error - Could not complete SSL handshake with 127.0.0.1: 1
$ ./check_nrpe -H 127.0.0.1 -n
CHECK_NRPE: Invalid packet version received from server.
$ ./check_nrpe -H 127.0.0.1 -n -2
CHECK_NRPE: Invalid packet version received from server.
$ ./check_nrpe -H 127.0.0.1 -2
CHECK_NRPE: Error - Could not complete SSL handshake with 127.0.0.1: 1