nagios installation

jo smith joblow7777 at yahoo.com
Sat Aug 24 05:39:37 CEST 2002


I need some help.  I got nagios to compile without errors.  However, when I cd to /usr/local/nagios, there is not etc directory.  Any ideas?  Here's the output of the various parts of make:

host:# make all

cd ./base; make ; cd ..

make[1]: Entering directory `/u/software/nag/base'

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o commands.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o flapping.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o notifications.o notifications.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o sehandlers.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sretention.o sretention.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o perfdata.o perfdata.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c   -lm -o nagios

make[1]: Leaving directory `/u/software/nag/base'

cd ./cgi; make ; cd ..

make[1]: Entering directory `/u/software/nag/cgi'

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o getcgi.o getcgi.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o cgiutils.o cgiutils.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o auth.o auth.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o popen.o popen.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  avail.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o avail.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  cmd.c  getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/downtime.c ../xdata/xdddefault.c -o cmd.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  config.c  getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o config.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o edata.o edata.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  extinfo.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c edata.o ../xdata/xedtemplate.c ../common/downtime.c ../xdata/xdddefault.c -o extinfo.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o lifo.o lifo.c

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  history.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c lifo.o -o history.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  notifications.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c lifo.o -o notifications.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  outages.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c -o outages.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  showlog.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c lifo.o -o showlog.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  status.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c edata.o ../xdata/xedtemplate.c -o status.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statuswml.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o statuswml.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  summary.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o summary.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  tac.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c edata.o ../xdata/xedtemplate.c -o tac.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statuswrl.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lm edata.o ../xdata/xedtemplate.c -o statuswrl.cgi

gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  statusmap.c getcgi.o cgiutils.o auth.o popen.o  ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng edata.o ../xdata/xedtemplate.c -o statusmap.cgi

Undefined                       first referenced

 symbol                             in file

jpeg_simple_progression             /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_set_quality                    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_write_scanlines                /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_destroy_decompress             /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_destroy                        /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_start_compress                 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_write_marker                   /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_read_scanlines                 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_finish_decompress              /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_start_decompress               /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_destroy_compress               /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_resync_to_restart              /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_std_error                      /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_CreateDecompress               /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_set_defaults                   /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_CreateCompress                 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_read_header                    /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

jpeg_finish_compress                /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgd.a(gd_jpeg.o)

ld: fatal: Symbol referencing errors. No output written to statusmap.cgi

collect2: ld returned 1 exit status

make[1]: *** [statusmap.cgi] Error 1

make[1]: Leaving directory `/u/software/nag/cgi'

cd ./html; make ; cd ..

make[1]: Entering directory `/u/software/nag/html'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/u/software/nag/html'

 

*** Compile finished ***

 

If the main program and CGIs compiled without any errors, you

can continue with installing Nagios as follows (type 'make'

without any arguments for a list of all possible options):

 

  make install

     - This installs the main program, CGIs, and HTML files

 

  make install-init

     - This installs the init script in /etc/init.d

 

  make install-commandmode

     - This installs and configures permissions on the

       directory for holding the external command file

 

  make install-config

     - This installs *SAMPLE* config files in /usr/local/nagios/etc

       You'll have to modify these sample files before you can

       use Nagios.  Read the HTML documentation for more info

       on doing this.  Pay particular attention to the docs on

       object configuration files, as they determine what/how

       things get monitored!

 

host:# make install

cd ./base; make install ; cd ..

make[1]: Entering directory `/u/software/nag/base'

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin

.././install-sh -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin

/usr/local/sparc-sun-solaris2.8/bin/strip /usr/local/nagios/bin/nagios

BFD: /usr/local/nagios/bin/stoFaque: warning: allocated section `.interp' not in segment

make[1]: Leaving directory `/u/software/nag/base'

cd ./cgi; make install ; cd ..

make[1]: Entering directory `/u/software/nag/cgi'

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin

for file in *.cgi; do \

        .././install-sh -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin; \

        /usr/local/sparc-sun-solaris2.8/bin/strip /usr/local/nagios/sbin/$file; \

done

BFD: /usr/local/nagios/sbin/staMaaye: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stFQaqAe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stlVaGCe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stc0aWEe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/st04aaHe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stn9aqJe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stNbaGLe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stagaWNe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stMkaaQe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stEpaqSe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stjuaGUe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/stCyaWWe: warning: allocated section `.interp' not in segment

BFD: /usr/local/nagios/sbin/st8CaaZe: warning: allocated section `.interp' not in segment

make[1]: Leaving directory `/u/software/nag/cgi'

cd ./html; make install ; cd ..

make[1]: Entering directory `/u/software/nag/html'

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/stylesheets

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contexthelp

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/images

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images/logos

.././install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi

.././install-sh -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/share

.././install-sh -c -m 664 -o nagios -g nagios docs/robots.txt /usr/local/nagios/share/docs

for file in *.html; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share; done

for file in media/*.wav; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/media; done

for file in stylesheets/*.css; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/stylesheets; done

for file in contexthelp/*.html; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/contexthelp; done

for file in docs/*.html; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/docs; done

for file in docs/images/*.*; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/docs/images; done

for file in images/*.gif; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done

for file in images/*.jpg; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done

for file in images/*.png; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done

for file in images/logos/*.*; \

do .././install-sh -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images/logos; done

make[1]: Leaving directory `/u/software/nag/html'

./install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var

./install-sh -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives

if [ no = yes ]; then \

        ./install-sh -c -m 664 -o nagios -g nagios p1.pl /usr/local/nagios/bin; \

fi;

host:# make install-init

./install-sh -c -m 755 -d -o root -g root /etc/init.d

./install-sh -c -m 774 -o root -g root daemon-init /etc/init.d/nagios

host:# cd /usr/local/nagios

host:# ls

bin    sbin   share  var

host:#

 



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020823/baa82e02/attachment.html>


More information about the Users mailing list