[Nagiosplug-devel] NRPE Issues

McGarry, Ryan rmcgarry at sdbor.edu
Wed Mar 7 23:31:43 CET 2007


Hi,

Please excuse me if this is posted to the wrong list...  I encountered
an error compiling NRPE that I couldn't find a solution to on any of the
mailing lists or Google.  I thought I'd post how I fixed it.

I'm installing NRPE 2.7 for the first time on an AIX host without GCC.

After a successful configure, my first time doing a "make all" came back
with this error.

--------------------------------------------------------------------
<snip>
utils.c:
        cc -g -I/usr/local/include/openssl -I/usr/local/include
-DHAVE_CONFIG_H -o check_nrpe check_nrpe.c utils.c -L/usr/local/lib
-lssl -lcrypto -lnsl 
check_nrpe.c:
"check_nrpe.c", line 437.32: 1506-046 (S) Syntax error.
utils.c:
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
--------------------------------------------------------------------

On a hunch, I looked in check_nrpe, and noticed that this line was #437:
	shutdown(sd,SHUT_WR);  // Send FIN packet

So, I changed the comment to a C-style comment  (/* Send FIN packet */),
and it compiled successfully.  I'm having a similar problem with
Nagios-Plugins..

Thanks,
Ryan McGarry
Systems Software Specialist
Regents Information Systems
South Dakota Board of Regents




More information about the Devel mailing list