LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2009, 02:26 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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]#
 
Old 09-03-2009, 02:33 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

Do you have SSL installed and configured?

Kind regards,

Eric
 
Old 09-03-2009, 02:34 AM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

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

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

cheers,

kbp
 
Old 09-03-2009, 03:14 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
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:
 
Old 09-03-2009, 05:22 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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?
 
Old 09-03-2009, 07:04 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by your_shadow03 View Post
]# 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 View Post
/root/nagios-plugins-1.4.13/
...at least build software as unprivileged user, not root account user.
 
Old 09-03-2009, 07:37 AM   #7
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Is there any harm buiding software as root?
 
Old 09-03-2009, 08:11 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 08:26 AM
Nagios installation issue stancy.abraham Linux - Networking 3 02-01-2008 06:28 AM
Issue during Nagios Setup????? ajeetraina Linux - Software 1 12-07-2007 03:52 PM
regarding nagios issue wellspringblossom Linux - Server 1 02-21-2007 09:28 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration