Problems Compile Nagios Plugin 1.4.13

Fernando Rocha fernando.rocha at opservices.com.br
Wed Jan 28 21:05:22 CET 2009


Hello Felipe!

To compile MySQLPerf plugin i just did it:

- compile the nagios plugins

$ tar -zxvf nagios-plugins-1.4.13.tar.gz
$ cd nagios-plugins-1.4.13
$ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin
$pwd
/usr/local/src/nagios-plugins-1.4.13

- put the plugins path at --with-officialplugins

$ tar -zxvf check_mysql_perf-1.3.2.3.tar.gz
$ cd check_mysql_perf-1.3.2.3
$ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-officialplugins=/usr/local/src/nagios-plugins-1.4.13

And it works fine!

About the packages that you have talked about I got installed the following packages:

openssl-0.9.7a-42.2
openssl-devel-0.9.7a-42.2

freeradius-1.0.1-2.FC3.1

openldap-2.2.13-2
openldap-servers-2.2.13-2
openldap-clients-2.2.13-2
openldap-devel-2.2.13-2

I hope it helps you!

[]'s
--
Fernando Rocha <fernando.rocha at opservices.com.br>
Analista de Suporte - Operação
OpServices - Porto Alegre - RS - Brasil
+55 51 3275.3588
www.opservices.com.br
www.opmon.org

----- "Felipe Ferreira" <fferreira at osiatis.es> wrote:

> 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
>  From openssl 0.9.8c-4etch3 to openssl_0.9.8c-4etch4_i386.deb
> 
> Installed both debian radius called "libradius1" and "libradius1-dev".
> 
> Still same problem!
> 2 questions,
> 1.Is it possible to do the ./Configure --.without (radiusclient) I
> have
> tried many ways but it always find it then gives me errors and exits.
> 2. Is my problem with OpenSSL instead? If so how to fix it?
> 
> Thanks in Advance,
> 
> Felipe Ferreira
> www.felipeferreira.net
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list