LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Issue during Nagios Installation? (https://www.linuxquestions.org/questions/linux-server-73/issue-during-nagios-installation-752298/)

your_shadow03 09-03-2009 01:26 AM

Issue during Nagios Installation?
 
I have RHEl 5.2 System on which I attempted to install Nagios.
I was following http://74.125.77.132/search?q=cache:...&ct=clnk&gl=in link and reached out to point:
Code:

./configure --with-nagios-user=nagios --with-nagios-group=nagios
with ease.
Once I run :
Code:

make
it throws error:
Code:

[root@jabber nagios-plugins-1.4.13]# make
make  all-recursive
make[1]: Entering directory `/root/nagios-plugins-1.4.13'
Making all in gl
make[2]: Entering directory `/root/nagios-plugins-1.4.13/gl'
rm -f configmake.h-t configmake.h
{ 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
mv configmake.h-t configmake.h
make  all-am
make[3]: Entering directory `/root/nagios-plugins-1.4.13/gl'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -I/usr  -g -O2 -MT localcharset.o -MD -MP -MF ".deps/localcharset.Tpo" -c -o localcharset.o localcharset.c; \
        then mv -f ".deps/localcharset.Tpo" ".deps/localcharset.Po"; else rm -f ".deps/localcharset.Tpo"; exit 1; fi
rm -f libgnu.a
ar cru libgnu.a base64.o full-read.o full-write.o localcharset.o xalloc-die.o xstrndup.o asnprintf.o basename.o c-strtod.o cloexec.o creat-safer.o dirname.o dup-safer.o exitfail.o fd-safer.o fsusage.o mountlist.o open-safer.o pipe-safer.o printf-args.o printf-parse.o regex.o safe-read.o safe-write.o stripslash.o vasnprintf.o xmalloc.o
ranlib libgnu.a
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/gl'
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/gl'
Making all in lib
make[2]: Entering directory `/root/nagios-plugins-1.4.13/lib'
Making all in tests
make[3]: Entering directory `/root/nagios-plugins-1.4.13/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/lib/tests'
make[3]: Entering directory `/root/nagios-plugins-1.4.13/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/lib'
Making all in plugins
make[2]: Entering directory `/root/nagios-plugins-1.4.13/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_apt  check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -ldl
gcc -g -O2 -o check_apt check_apt.o utils.o runcmd.o  -L/root/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -ldl
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_cluster  check_cluster.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -ldl
gcc -g -O2 -o check_cluster check_cluster.o utils.o  -L/root/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -ldl
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_disk  check_disk.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a popen.o -ldl
gcc -g -O2 -o check_disk check_disk.o utils.o popen.o  -L/root/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -ldl
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_http  check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv  -ldl
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  -L/root/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -ldl
sslutils.o: In function `np_net_ssl_cleanup':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:71: undefined reference to `SSL_shutdown'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:72: undefined reference to `SSL_free'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:74: undefined reference to `SSL_CTX_free'
sslutils.o: In function `np_net_ssl_init':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:49: undefined reference to `SSLv23_client_method'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:49: undefined reference to `SSL_CTX_new'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:44: undefined reference to `SSL_library_init'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:45: undefined reference to `SSL_load_error_strings'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:46: undefined reference to `OpenSSL_add_all_algorithms'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:53: undefined reference to `SSL_new'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:54: undefined reference to `SSL_set_fd'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:55: undefined reference to `SSL_connect'
sslutils.o: In function `np_net_ssl_read':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:86: undefined reference to `SSL_read'
sslutils.o: In function `np_net_ssl_write':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:82: undefined reference to `SSL_write'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.13'
make: *** [all] Error 2
[root@jabber nagios-plugins-1.4.13]#
[root@jabber nagios-plugins-1.4.13]#


EricTRA 09-03-2009 01:33 AM

Hello,

Do you have SSL installed and configured?

Kind regards,

Eric

kbp 09-03-2009 01:34 AM

Hi,

Any reason for building manually ? ... you could use the EPEL repo...

https://fedoraproject.org/wiki/EPEL/FAQ#howtouse

cheers,

kbp

your_shadow03 09-03-2009 02:14 AM

I tried running:
Code:

yum install openssl
[root@jabber nagios-plugins-1.4.13]# yum install ssl
Yum Version: 3.2.8
COMMAND: yum install ssl
Installroot: /
Ext Commands:

  ssl
Reading Local RPMDB
Setting up Package Sacks
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Checking for virtual provide or file-provide for ssl
No package ssl available.
Nothing to do
[root@jabber nagios-plugins-1.4.13]# yum install openssl*
Yum Version: 3.2.8
COMMAND: yum install openssl*
Installroot: /
Ext Commands:

  openssl*
Reading Local RPMDB
Setting up Package Sacks
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package openssl-devel - 0.9.8b-10.el5.i386 is already installed.
Package openssl - 0.9.8b-10.el5.i686 is already installed.
Package openssl - 0.9.8b-10.el5.x86_64 is already installed.
reduced installs :
  openssl-perl.x86_64 0:0.9.8b-10.el5
Building updates object
  openssl097a.x86_64 0:0.9.7a-9
  openssl-devel.x86_64 0:0.9.8b-10.el5
Resolving Dependencies
1252002405.19
--> Running transaction check
---> Package openssl-perl.x86_64 0:0.9.8b-10.el5 set to be updated
---> Package openssl-devel.x86_64 0:0.9.8b-10.el5 set to be updated
---> Package openssl097a.x86_64 0:0.9.7a-9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved
1252002409.19

=============================================================================
 Package                Arch      Version          Repository        Size
=============================================================================
Installing:
 openssl-devel          x86_64    0.9.8b-10.el5    base              1.8 M
 openssl-perl            x86_64    0.9.8b-10.el5    base              32 k
 openssl097a            x86_64    0.9.7a-9        base              824 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update      0 Package(s)
Remove      0 Package(s)

Total download size: 2.7 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): openssl-devel-0.9. 100% |=========================| 1.8 MB    00:00
(2/3): openssl-perl-0.9.8 100% |=========================|  32 kB    00:00
(3/3): openssl097a-0.9.7a 100% |=========================| 824 kB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: openssl097a                  ######################### [1/3]
  Installing: openssl-perl                ######################### [2/3]
  Installing: openssl-devel                ######################### [3/3]

Installed: openssl-devel.x86_64 0:0.9.8b-10.el5 openssl-perl.x86_64 0:0.9.8b-10.el5 openssl097a.x86_64 0:0.9.7a-9
Complete!
[root@jabber nagios-plugins-1.4.13]# make
make  all-recursive
make[1]: Entering directory `/root/nagios-plugins-1.4.13'
Making all in gl
make[2]: Entering directory `/root/nagios-plugins-1.4.13/gl'
make  all-am
make[3]: Entering directory `/root/nagios-plugins-1.4.13/gl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/gl'
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/gl'
Making all in lib
make[2]: Entering directory `/root/nagios-plugins-1.4.13/lib'
Making all in tests
make[3]: Entering directory `/root/nagios-plugins-1.4.13/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/lib/tests'
make[3]: Entering directory `/root/nagios-plugins-1.4.13/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/nagios-plugins-1.4.13/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/lib'
Making all in plugins
make[2]: Entering directory `/root/nagios-plugins-1.4.13/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -L. -o check_http  check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a  -lnsl -lresolv  -ldl
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o  -L/root/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -ldl
sslutils.o: In function `np_net_ssl_cleanup':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:71: undefined reference to `SSL_shutdown'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:72: undefined reference to `SSL_free'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:74: undefined reference to `SSL_CTX_free'
sslutils.o: In function `np_net_ssl_init':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:49: undefined reference to `SSLv23_client_method'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:49: undefined reference to `SSL_CTX_new'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:44: undefined reference to `SSL_library_init'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:45: undefined reference to `SSL_load_error_strings'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:46: undefined reference to `OpenSSL_add_all_algorithms'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:53: undefined reference to `SSL_new'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:54: undefined reference to `SSL_set_fd'
/root/nagios-plugins-1.4.13/plugins/sslutils.c:55: undefined reference to `SSL_connect'
sslutils.o: In function `np_net_ssl_read':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:86: undefined reference to `SSL_read'
sslutils.o: In function `np_net_ssl_write':
/root/nagios-plugins-1.4.13/plugins/sslutils.c:82: undefined reference to `SSL_write'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.13/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.13'
make: *** [all] Error 2
[root@jabber nagios-plugins-1.4.13]# yum install ssl-utils-*
Yum Version: 3.2.8
COMMAND: yum install ssl-utils-*
Installroot: /
Ext Commands:

  ssl-utils-*
Reading Local RPMDB
Setting up Package Sacks
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Checking for virtual provide or file-provide for ssl-utils-*
No package ssl-utils-* available.
Nothing to do
[root@jabber nagios-plugins-1.4.13]# yum install sslutils-*
Yum Version: 3.2.8
COMMAND: yum install sslutils-*
Installroot: /
Ext Commands:

  sslutils-*
Reading Local RPMDB
Setting up Package Sacks
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Checking for virtual provide or file-provide for sslutils-*
No package sslutils-* available.
Nothing to do
[root@jabber nagios-plugins-1.4.13]#

And its still not working saying:

kirukan 09-03-2009 04:22 AM

why you referring 3rd party information for installation because nagios have proper document on their official website
http://support.nagios.com/knowledgebase/officialdocs

Did you install nagios first and then nagios-plugins?

unSpawn 09-03-2009 06:04 AM

Quote:

Originally Posted by your_shadow03 (Post 3667838)
]# make

Aren't you supposed to run 'configure' again so it can properly pick up libs/includes?


I'd second EPEL repo use but if you must build things yourself then
Quote:

Originally Posted by your_shadow03 (Post 3667838)
/root/nagios-plugins-1.4.13/

...at least build software as unprivileged user, not root account user.

your_shadow03 09-03-2009 06:37 AM

Is there any harm buiding software as root?

unSpawn 09-03-2009 07:11 AM

Is me saying there is, from both conceptual (least privilege principle) and practical (software or human error, best practices, system integrity / pollution) points of view, enough to change you building software as unprivileged user?


All times are GMT -5. The time now is 03:58 AM.