Potential Bug in NRPE

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
prakashhira
Posts: 1
Joined: Fri Jul 04, 2014 9:05 am

Potential Bug in NRPE

Post 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
Attachments
nrpe.patch
Patch for potential bug in nrpe.
(585 Bytes) Downloaded 398 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Potential Bug in NRPE

Post by scottwilkerson »

Thanks for the Bug Report and patch!

I have created an internal bug report ( 3473 ) for the issue.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked