<br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 8:16 AM, Daniel Wittenberg <span dir="ltr"><<a href="mailto:daniel.wittenberg.r0ko@statefarm.com" target="_blank">daniel.wittenberg.r0ko@statefarm.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<div>Just make sure <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"> /usr/lib/nagios/plugins/check_ldaps is listed in the %files section of the .spec file and you should be good-to-go.</span></div>


<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Dan</span></div>
<div><br></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>Thanks Dan it worked. I have a similar issue with nrpe version 2.14 </div><div><br></div><div> [root@rabbitmqerp nrpe-2.14]# rpmbuild -ba nrpe.spec</div>

<div>Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.49563</div><div>+ umask 022</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ rm -rf nrpe-2.14</div><div>+ /bin/gzip -dc /usr/src/redhat/SOURCES/nrpe-2.14.tar.gz</div>

<div>+ tar -xf -</div><div>+ STATUS=0</div><div>+ '[' 0 -ne 0 ']'</div><div>+ cd nrpe-2.14</div><div>++ /usr/bin/id -u</div><div>+ '[' 0 = 0 ']'</div><div>+ /bin/chown -Rhf root .</div><div>

++ /usr/bin/id -u</div><div>+ '[' 0 = 0 ']'</div><div>+ /bin/chgrp -Rhf root .</div><div>+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .</div><div>+ exit 0</div><div>Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.49563</div>

<div>+ umask 022</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ cd nrpe-2.14</div><div>+ export PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin</div><div>+ PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin</div>

<div>+ CFLAGS='-O2 -g -m64 -mtune=generic'</div><div>+ CXXFLAGS='-O2 -g -m64 -mtune=generic'</div><div>+ MAKE=make</div><div>+ ./configure --with-init-dir=/etc/init.d --with-nrpe-port=5666 --with-nrpe-user=nagios --with-nrpe-group=nagios --prefix=/usr --exec-prefix=/usr/sbin --bindir=/usr/sbin --sbindir=/usr/lib/nagios/cgi --libexecdir=/usr/lib/nagios/plugins --datadir=/usr/share/nagios --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios --enable-command-args</div>

<div>configure: WARNING: unrecognized options: --with-init-dir</div><div>checking for a BSD-compatible install... /usr/bin/install -c</div><div>checking build system type... x86_64-unknown-linux-gnu</div><div>checking host system type... x86_64-unknown-linux-gnu</div>

<div>checking for gcc... gcc</div><div>checking for C compiler default output file name... a.out</div><div>checking whether the C compiler works... yes</div><div>checking whether we are cross compiling... no</div><div>checking for suffix of executables... </div>

<div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div>

<div>checking whether make sets $(MAKE)... yes</div><div>checking how to run the C preprocessor... gcc -E</div><div>checking for grep that handles long lines and -e... /bin/grep</div><div>checking for egrep... /bin/grep -E</div>

<div>checking for ANSI C header files... yes</div><div>checking whether time.h and sys/time.h may both be included... yes</div><div>checking for sys/wait.h that is POSIX.1 compatible... yes</div><div>checking for sys/types.h... yes</div>

<div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div>

<div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div><div>checking ctype.h usability... yes</div><div>checking ctype.h presence... yes</div><div>checking for ctype.h... yes</div><div>checking dirent.h usability... yes</div>

<div>checking dirent.h presence... yes</div><div>checking for dirent.h... yes</div><div>checking errno.h usability... yes</div><div>checking errno.h presence... yes</div><div>checking for errno.h... yes</div><div>checking fcntl.h usability... yes</div>

<div>checking fcntl.h presence... yes</div><div>checking for fcntl.h... yes</div><div>checking getopt.h usability... yes</div><div>checking getopt.h presence... yes</div><div>checking for getopt.h... yes</div><div>checking grp.h usability... yes</div>

<div>checking grp.h presence... yes</div><div>checking for grp.h... yes</div><div>checking for inttypes.h... (cached) yes</div><div>checking netdb.h usability... yes</div><div>checking netdb.h presence... yes</div><div>checking for netdb.h... yes</div>

<div>checking pwd.h usability... yes</div><div>checking pwd.h presence... yes</div><div>checking for pwd.h... yes</div><div>checking signal.h usability... yes</div><div>checking signal.h presence... yes</div><div>checking for signal.h... yes</div>

<div>checking for stdint.h... (cached) yes</div><div>checking for strings.h... (cached) yes</div><div>checking for string.h... (cached) yes</div><div>checking syslog.h usability... yes</div><div>checking syslog.h presence... yes</div>

<div>checking for syslog.h... yes</div><div>checking tcpd.h usability... yes</div><div>checking tcpd.h presence... yes</div><div>checking for tcpd.h... yes</div><div>checking for unistd.h... (cached) yes</div><div>checking arpa/inet.h usability... yes</div>

<div>checking arpa/inet.h presence... yes</div><div>checking for arpa/inet.h... yes</div><div>checking netinet/in.h usability... yes</div><div>checking netinet/in.h presence... yes</div><div>checking for netinet/in.h... yes</div>

<div>checking socket.h usability... no</div><div>checking socket.h presence... no</div><div>checking for socket.h... no</div><div>checking for sys/types.h... (cached) yes</div><div>checking sys/time.h usability... yes</div>

<div>checking sys/time.h presence... yes</div><div>checking for sys/time.h... yes</div><div>checking sys/resource.h usability... yes</div><div>checking sys/resource.h presence... yes</div><div>checking for sys/resource.h... yes</div>

<div>checking for sys/wait.h... (cached) yes</div><div>checking sys/socket.h usability... yes</div><div>checking sys/socket.h presence... yes</div><div>checking for sys/socket.h... yes</div><div>checking for sys/stat.h... (cached) yes</div>

<div>checking for an ANSI C-conforming const... yes</div><div>checking whether struct tm is in sys/time.h or time.h... time.h</div><div>checking for mode_t... yes</div><div>checking for pid_t... yes</div><div>checking for size_t... yes</div>

<div>checking return type of signal handlers... void</div><div>checking for uid_t in sys/types.h... yes</div><div>checking type of array argument to getgroups... gid_t</div><div>checking size of int... 4</div><div>checking size of short... 2</div>

<div>checking size of long... 8</div><div>checking for uint32_t... yes</div><div>checking for u_int32_t... yes</div><div>checking for int32_t... yes</div><div>checking for va_copy... yes</div><div>checking for vsnprintf... yes</div>

<div>checking for snprintf... yes</div><div>checking for asprintf... yes</div><div>checking for vasprintf... yes</div><div>checking for C99 vsnprintf... yes</div><div>checking for getopt_long... yes</div><div>checking for main in -lnsl... yes</div>

<div>checking for socket in -lsocket... no</div><div>checking for main in -lwrap... yes</div><div>checking for strdup... yes</div><div>checking for strstr... yes</div><div>checking for strtoul... yes</div><div>checking for initgroups... yes</div>

<div>checking for closesocket... no</div><div>checking for socklen_t... yes</div><div>checking for type of socket size... size_t</div><div>checking for SSL headers... SSL headers found in /usr</div><div>checking for SSL libraries... SSL libraries found in /usr/lib64</div>

<div><br></div><div>*** Generating DH Parameters for SSL/TLS ***</div><div>Generating DH parameters, 512 bit long safe prime, generator 2</div><div>This is going to take a long time</div><div>...........+............+..................+............+...............+.........................+...+......................+.....................................................................................................++*++*++*++*++*++*</div>

<div>checking for Kerberos include files... could not find include files</div><div>checking for perl... /usr/bin/perl</div><div>configure: creating ./config.status</div><div>config.status: creating Makefile</div><div>config.status: creating subst</div>

<div>config.status: creating src/Makefile</div><div>config.status: creating package/solaris/Makefile</div><div>config.status: creating init-script</div><div>config.status: creating init-script.debian</div><div>config.status: creating init-script.suse</div>

<div>config.status: creating nrpe.spec</div><div>config.status: creating sample-config/nrpe.cfg</div><div>config.status: creating sample-config/nrpe.xinetd</div><div>config.status: creating include/config.h</div><div>configure: WARNING: unrecognized options: --with-init-dir</div>

<div><br></div><div><br></div><div>*** Configuration summary for nrpe 2.14 12-21-2012 ***:</div><div><br></div><div> General Options:</div><div> -------------------------</div><div> NRPE port:    5666</div><div> NRPE user:    nagios</div>

<div> NRPE group:   nagios</div><div> Nagios user:  nagios</div><div> Nagios group: nagios</div><div><br></div><div><br></div><div>Review the options above for accuracy.  If they look okay,</div><div>type 'make all' to compile the NRPE daemon and client.</div>

<div><br></div><div>+ make all</div><div>cd ./src/; make ; cd ..</div><div>make[1]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>gcc -O2 -g -m64 -mtune=generic -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib64  -lssl -lcrypto -lnsl -lwrap  </div>

<div>gcc -O2 -g -m64 -mtune=generic -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib64  -lssl -lcrypto -lnsl </div><div>make[1]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div>

<div><br></div><div>*** Compile finished ***</div><div><br></div><div>If the NRPE daemon and client compiled without any errors, you</div><div>can continue with the installation or upgrade process.</div><div><br></div><div>

Read the PDF documentation (NRPE.pdf) for information on the next</div><div>steps you should take to complete the installation or upgrade.</div><div><br></div><div>+ exit 0</div><div>Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.36712</div>

<div>+ umask 022</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ cd nrpe-2.14</div><div>+ '[' /var/tmp/nrpe-buildroot '!=' / ']'</div><div>+ rm -rf /var/tmp/nrpe-buildroot</div><div>+ install -d -m 0755 /var/tmp/nrpe-buildroot/etc/init.d</div>

<div>+ DESTDIR=/var/tmp/nrpe-buildroot</div><div>+ make install install-daemon-config</div><div>cd ./src/ && make install</div><div>make[1]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>
make install-plugin</div>
<div>make[2]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>/usr/bin/install -c -m 775 -o nagios -g nagios -d /var/tmp/nrpe-buildroot/usr/lib/nagios/plugins</div><div>/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /var/tmp/nrpe-buildroot/usr/lib/nagios/plugins</div>

<div>make[2]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>make install-daemon</div><div>make[2]: Entering directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>/usr/bin/install -c -m 775 -o nagios -g nagios -d /var/tmp/nrpe-buildroot/usr/sbin</div>

<div>/usr/bin/install -c -m 775 -o nagios -g nagios nrpe /var/tmp/nrpe-buildroot/usr/sbin</div><div>make[2]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div><div>make[1]: Leaving directory `/usr/src/redhat/BUILD/nrpe-2.14/src'</div>

<div>/usr/bin/install -c -m 775 -o nagios -g nagios -d /var/tmp/nrpe-buildroot/etc/nagios</div><div>/usr/bin/install -c -m 644 -o nagios -g nagios sample-config/nrpe.cfg /var/tmp/nrpe-buildroot/etc/nagios</div><div>+ /usr/lib/rpm/brp-compress</div>

<div>+ /usr/lib/rpm/brp-strip</div><div>+ /usr/lib/rpm/brp-strip-static-archive</div><div>+ /usr/lib/rpm/brp-strip-comment-note</div><div>Processing files: nrpe-2.14-1</div><div>error: File not found: /var/tmp/nrpe-buildroot/etc/init.d/nrpe</div>

<div>Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.36712</div><div>+ umask 022</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ cd nrpe-2.14</div><div>+ DOCDIR=/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14</div><div>+ export DOCDIR</div>

<div>+ rm -rf /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14</div><div>+ /bin/mkdir -p /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14</div><div>+ cp -pr Changelog LEGAL README /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-2.14</div>

<div>+ exit 0</div><div>Processing files: nrpe-plugin-2.14-1</div><div>Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.36712</div><div>+ umask 022</div><div>+ cd /usr/src/redhat/BUILD</div><div>+ cd nrpe-2.14</div><div>+ DOCDIR=/var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14</div>

<div>+ export DOCDIR</div><div>+ rm -rf /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14</div><div>+ /bin/mkdir -p /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14</div><div>+ cp -pr Changelog LEGAL README /var/tmp/nrpe-buildroot/usr/share/doc/nrpe-plugin-2.14</div>

<div>+ exit 0</div><div>Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1</div><div>Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libcrypto.so.6()(64bit) libnsl.so.1()(64bit) libssl.so.6()(64bit) nagios-plugins rtld(GNU_HASH)</div>

<div>Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nrpe-buildroot</div><div><br></div><div><br></div><div>RPM build errors:</div><div>    File not found: /var/tmp/nrpe-buildroot/etc/init.d/nrpe</div>
<div>
<br></div><div>Any clue?</div><div><br></div><div>Regards</div><div><br></div><div>Kaushal</div><div><br></div></div>