Nrpe agent installation issue - check_http.o error

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
ashok
Posts: 22
Joined: Mon Jul 21, 2014 8:07 am

Nrpe agent installation issue - check_http.o error

Post by ashok »

Hi All,

I have one RHEL 6.0 server. When i was trying to install nrpe agent on the server. i'm getting some errors..

errors are..
I am doing the installation by referring the standard document provided by nagios

Download following files from Nagios.org and move to /home/downloads:
• nagios-plugins-1.4.11.tar.gz
• nrpe-2.12.tar.gz
2. Create nagios account
[remotehost]# useradd nagios
[remotehost]# passwd nagios
3. Install nagios-plugin
[remotehost]# cd /home/downloads
[remotehost]# tar xvfz nagios-plugins-1.4.11.tar.gz
[remotehost]# cd nagios-plugins-1.4.11
[remotehost]# export LDFLAGS=-ldl

[remotehost]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-redhat-pthread-workaround
[remotehost]# make
[remotehost]# make install



after executing ./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-redhat-pthread-workaround ,

when i am doing #make command

it is showing the following errors..


[root@psmuat nagios-plugins-1.4.15]# make
make all-recursive
make[1]: Entering directory `/home/nagios-plugins-1.4.15'
Making all in gl
make[2]: Entering directory `/home/nagios-plugins-1.4.15/gl'
rm -f configmake.h-t && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#define PREFIX "/usr/local/nagios"'; \
echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
echo '#define BINDIR "/usr/local/nagios/bin"'; \
echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
echo '#define DATADIR "/usr/local/nagios/share"'; \
echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
echo '#define OLDINCLUDEDIR "/usr/include"'; \
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define INFODIR "/usr/local/nagios/share/info"'; \
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define LIBDIR "/usr/local/nagios/lib"'; \
echo '#define LISPDIR ""'; \
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
echo '#define MANDIR "/usr/local/nagios/share/man"'; \
echo '#define MANEXT ""'; \
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
echo '#define PKGLIBEXECDIR ""'; \
} | sed '/""/d' > configmake.h-t && \
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
rm -f configmake.h-t; \
else \
rm -f configmake.h; mv configmake.h-t configmake.h; \
fi
make all-recursive
make[3]: Entering directory `/home/nagios-plugins-1.4.15/gl'
make[4]: Entering directory `/home/nagios-plugins-1.4.15/gl'
rm -f configmake.h-t && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
echo '#define PREFIX "/usr/local/nagios"'; \
echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
echo '#define BINDIR "/usr/local/nagios/bin"'; \
echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
echo '#define DATADIR "/usr/local/nagios/share"'; \
echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
echo '#define OLDINCLUDEDIR "/usr/include"'; \
echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define INFODIR "/usr/local/nagios/share/info"'; \
echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
echo '#define LIBDIR "/usr/local/nagios/lib"'; \
echo '#define LISPDIR ""'; \
echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
echo '#define MANDIR "/usr/local/nagios/share/man"'; \
echo '#define MANEXT ""'; \
echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
echo '#define PKGLIBEXECDIR ""'; \
} | sed '/""/d' > configmake.h-t && \
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
rm -f configmake.h-t; \
else \
rm -f configmake.h; mv configmake.h-t configmake.h; \
fi
make[4]: Leaving directory `/home/nagios-plugins-1.4.15/gl'
make[3]: Leaving directory `/home/nagios-plugins-1.4.15/gl'
make[2]: Leaving directory `/home/nagios-plugins-1.4.15/gl'
Making all in tap
make[2]: Entering directory `/home/nagios-plugins-1.4.15/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/nagios-plugins-1.4.15/tap'
Making all in lib
make[2]: Entering directory `/home/nagios-plugins-1.4.15/lib'
Making all in .
make[3]: Entering directory `/home/nagios-plugins-1.4.15/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/nagios-plugins-1.4.15/lib'
Making all in tests
make[3]: Entering directory `/home/nagios-plugins-1.4.15/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/nagios-plugins-1.4.15/lib/tests'
make[2]: Leaving directory `/home/nagios-plugins-1.4.15/lib'
Making all in plugins
make[2]: Entering directory `/home/nagios-plugins-1.4.15/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.15"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c:63: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/home/nagios-plugins-1.4.15/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nagios-plugins-1.4.15'
make: *** [all] Error 2



I even tried by moving on the the next command
#make install


but no use the same error appeared..

make[2]: Entering directory `/home/nagios-plugins-1.4.15/lib/tests'
make[3]: Entering directory `/home/nagios-plugins-1.4.15/lib/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/nagios-plugins-1.4.15/lib/tests'
make[2]: Leaving directory `/home/nagios-plugins-1.4.15/lib/tests'
make[1]: Leaving directory `/home/nagios-plugins-1.4.15/lib'
Making install in plugins
make[1]: Entering directory `/home/nagios-plugins-1.4.15/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -DNP_VERSION='"1.4.15"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c:63: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
make[1]: *** [check_http.o] Error 1
make[1]: Leaving directory `/home/nagios-plugins-1.4.15/plugins'
make: *** [install-recursive] Error 1

[root@psmuat nagios-plugins-1.4.15]#


Nagios plugins and nrpe versions are

• nagios-plugins-1.4.11.tar.gz
• nrpe-2.12.tar.gz


Please help mee..


thanx in advance..

any suggestions are appreciated...


Note : I have installed the dependencies too..

openssl , openssl-devel packages... but no luck
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nrpe agent installation issue - check_http.o error

Post by tmcdonald »

Our doc is a bit dated with the version numbers. Try this again with NRPE 2.15 and Plugins 2.0:

http://sourceforge.net/projects/nagios/ ... nrpe-2.15/
https://github.com/nagios-plugins/nagios-plugins
Former Nagios employee
Locked