Welcome to Monitoring Blog: Icinga - Nagios Wednesday, December 12 2018 @ 03:40 AM UTC

NRPE Compile on Solaris 10 & 11

  • Contributed by:
  • Views: 4,344

Hello,

The first compile of the NRPE agent on Solaris 10 & 11 can be a little annoying because the configure is messing up with the libraries. The Solution is here

Another trick is, when having thousand of possible checks on the same zone, there might be TCP listen socks problem resulting in degraded performance of the whole zone.
The buffer is not optimal, so here is the modification!

For the compile problem with the shared libraries, here is what to do:
In the "src/" folder, after the configure -> Change in "src/Makefile" to have lines like this

CFLAGS=-g -I/usr/sfw//include/openssl -I/usr/sfw//include -DHAVE_CONFIG_H -I $(CFG_INCLUDE) -I $(SRC_INCLUDE)
LDFLAGS= -L/usr/sfw/lib -R/usr/sfw/lib -lssl -lcrypto

 

For the Listen sock problem with thousand of concurrent checks:
Change in "src/nrpe.c" the lines

/* Start listening on the port. */
if (listen(listen_sock, 5) < 0) {

into
/* Start listening on the port. */
if (listen(listen_sock, 128) < 0) {

That's all!