Potential Bug in NRPE
Posted: Fri Jul 04, 2014 9:22 am
Hi Ethan,
I work for engineering at Get It Mobile Inc.
We were building nrpe plugins to try out remote monitoring and came across a bug in the nrpe build.
We disabled ssl by running configure with
./configure --disable-ssl --without-ssl.
However when we compiled it we got the following bug.
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lnsl
./nrpe.c:103: error: expected ‘)’ before ‘*’ token
./nrpe.c error: expected ‘)’ before ‘*’ token
The above bug is because there is #ifdef HAV_SSL missing for nrpe.c
We fixed the bug by patching src/nrpe.c
Please find the patch attached.
Hope it helps.
Thanks
I work for engineering at Get It Mobile Inc.
We were building nrpe plugins to try out remote monitoring and came across a bug in the nrpe build.
We disabled ssl by running configure with
./configure --disable-ssl --without-ssl.
However when we compiled it we got the following bug.
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lnsl
./nrpe.c:103: error: expected ‘)’ before ‘*’ token
./nrpe.c error: expected ‘)’ before ‘*’ token
The above bug is because there is #ifdef HAV_SSL missing for nrpe.c
We fixed the bug by patching src/nrpe.c
Please find the patch attached.
Hope it helps.
Thanks