Page 1 of 1

Potential Bug in NRPE

Posted: Fri Jul 04, 2014 9:22 am
by prakashhira
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:1799: 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

Re: Potential Bug in NRPE

Posted: Mon Jul 07, 2014 9:48 am
by scottwilkerson
Thanks for the Bug Report and patch!

I have created an internal bug report ( 3473 ) for the issue.