Felipe Ferreira
2009-01-28 18:43:37 UTC
Problems Compile Nagios Plugin 1.4.13
All this big mess started because I need the MySQLPerf plugin, whitch is
a really cool plugin, but it needs the
source of the official plugin.
The version I am compiling is the 1.4.13 and by running the config I got
quite a few (WARNINGS):
configure:22140: WARNING: Skipping PostgreSQL plugin (check_pgsql)
configure:22142: WARNING: LIBS="-lcrypt " CPPFLAGS=""
configure:22144: WARNING: install PostgreSQL libs to compile this plugin
(see REQUIREMENTS).
configure:22309: WARNING: Skipping radius plugin
configure:22311: WARNING: install radius libs to compile this plugin
(see REQUIREMENTS).
configure:22581: WARNING: Skipping LDAP plugin
configure:22583: WARNING: install LDAP libs to compile this plugin (see
REQUIREMENTS).
configure:27208: WARNING: Could not find qmail-qstat or eqivalent
Since I would like to have the radius and LDAP option I looked up the
Requirements:
check_radius
# wget ftp://ftp.cityline.net/pub/radiusclient/radiusclient-0.3.tar.gz
# cd radiusclient-0.3
# ./configure
# make
# make install
check_ldap:
- Requires the LDAP libraries available from
http://www.openldap.org/
Lib: libldap, liblber
Redhat Source: openldap-1.2.9-6.i386.rpm, openldap-devel-1.2.9-6.i386.rpm
I was unable to get LDAP libraries to work.
I just did:
# ./configure --with-openssl=/usr/include/openssl --enable-perl-modules
--with-perl=/usr/bin/perl --with-nagios-user=nagios
--with-apt-get-command: /usr/bin/apt-get
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: /usr/bin/mysql_config
--with-openssl: yes
--with-gnutls: no
--enable-extra-opts: no
--with-perl: /usr/bin/perl
--enable-perl-modules: yes
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
After download and compiling both radiusclient-ng and the official one:
I get error on the make.
/include/openssl/include -I/usr/include/openssl/include -g -O2 -MT
check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o check_radius.o
check_radius.c; \
then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm -f
".deps/check_radius.Tpo"; exit 1; fi
check_radius.c: In function ‘main’:
check_radius.c:142: error: ‘BUFFER_LEN’ undeclared (first use in this
function)
check_radius.c:142: error: (Each undeclared identifier is reported only once
check_radius.c:142: error: for each function it appears in.)
make[2]: *** [check_radius.o] Error 1
I see the ./configure does:
configure:22158: checking for rc_read_config in -lradiusclient
configure:22193: gcc -o conftest -g -O2 -L. conftest.c -lradiusclient >&5
ac_cv_lib_radiusclient_rc_read_config=yes
EXTRAS=' check_radius check_ide_smart check_mysql check_mysql_query
check_procs check_nagios check_dns check_hpjd check_snmp check_game
check_fping check_by_ssh check_swap check_dig check_apt check_nt'
RADIUSLIBS='-lradiusclient'
Then I find the radiusclient:
# dpkg -l | grep radius
ii libpam-radius-auth 1.3.16-4.3 The PAM RADIUS authentication module
# dpkg -purge libpam-radius-auth
Still no LUCKY
Updated OPENSSL
All this big mess started because I need the MySQLPerf plugin, whitch is
a really cool plugin, but it needs the
source of the official plugin.
The version I am compiling is the 1.4.13 and by running the config I got
quite a few (WARNINGS):
configure:22140: WARNING: Skipping PostgreSQL plugin (check_pgsql)
configure:22142: WARNING: LIBS="-lcrypt " CPPFLAGS=""
configure:22144: WARNING: install PostgreSQL libs to compile this plugin
(see REQUIREMENTS).
configure:22309: WARNING: Skipping radius plugin
configure:22311: WARNING: install radius libs to compile this plugin
(see REQUIREMENTS).
configure:22581: WARNING: Skipping LDAP plugin
configure:22583: WARNING: install LDAP libs to compile this plugin (see
REQUIREMENTS).
configure:27208: WARNING: Could not find qmail-qstat or eqivalent
Since I would like to have the radius and LDAP option I looked up the
Requirements:
check_radius
# wget ftp://ftp.cityline.net/pub/radiusclient/radiusclient-0.3.tar.gz
# cd radiusclient-0.3
# ./configure
# make
# make install
check_ldap:
- Requires the LDAP libraries available from
http://www.openldap.org/
Lib: libldap, liblber
Redhat Source: openldap-1.2.9-6.i386.rpm, openldap-devel-1.2.9-6.i386.rpm
I was unable to get LDAP libraries to work.
I just did:
# ./configure --with-openssl=/usr/include/openssl --enable-perl-modules
--with-perl=/usr/bin/perl --with-nagios-user=nagios
--with-apt-get-command: /usr/bin/apt-get
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: /usr/bin/mysql_config
--with-openssl: yes
--with-gnutls: no
--enable-extra-opts: no
--with-perl: /usr/bin/perl
--enable-perl-modules: yes
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
After download and compiling both radiusclient-ng and the official one:
I get error on the make.
/include/openssl/include -I/usr/include/openssl/include -g -O2 -MT
check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o check_radius.o
check_radius.c; \
then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm -f
".deps/check_radius.Tpo"; exit 1; fi
check_radius.c: In function ‘main’:
check_radius.c:142: error: ‘BUFFER_LEN’ undeclared (first use in this
function)
check_radius.c:142: error: (Each undeclared identifier is reported only once
check_radius.c:142: error: for each function it appears in.)
make[2]: *** [check_radius.o] Error 1
I see the ./configure does:
configure:22158: checking for rc_read_config in -lradiusclient
configure:22193: gcc -o conftest -g -O2 -L. conftest.c -lradiusclient >&5
ac_cv_lib_radiusclient_rc_read_config=yes
EXTRAS=' check_radius check_ide_smart check_mysql check_mysql_query
check_procs check_nagios check_dns check_hpjd check_snmp check_game
check_fping check_by_ssh check_swap check_dig check_apt check_nt'
RADIUSLIBS='-lradiusclient'
Then I find the radiusclient:
# dpkg -l | grep radius
ii libpam-radius-auth 1.3.16-4.3 The PAM RADIUS authentication module
# dpkg -purge libpam-radius-auth
Still no LUCKY
Updated OPENSSL