make install command for nagios-3.3.1

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

make install command for nagios-3.3.1

Postby rctanaman » Fri Jul 29, 2011 3:55 am

Hi,


Help...
I'm getting error 2 when trying to do a # make install command for nagios-3.3.1 see result below... Thank you..

root@localhost:/home/dco/Desktop/Nagios/nagios# make install
cd ./base && make install
make[1]: Entering directory `/home/dco/Desktop/Nagios/nagios/base'
make install-basic
make[2]: Entering directory `/home/dco/Desktop/Nagios/nagios/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Leaving directory `/home/dco/Desktop/Nagios/nagios/base'
make strip-post-install
make[2]: Entering directory `/home/dco/Desktop/Nagios/nagios/base'
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Leaving directory `/home/dco/Desktop/Nagios/nagios/base'
make[1]: Leaving directory `/home/dco/Desktop/Nagios/nagios/base'
cd ./cgi && make install
make[1]: Entering directory `/home/dco/Desktop/Nagios/nagios/cgi'
make install-basic
make[2]: Entering directory `/home/dco/Desktop/Nagios/nagios/cgi'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/ nagios/sbin; \
done
make[2]: Leaving directory `/home/dco/Desktop/Nagios/nagios/cgi'
make strip-post-install
make[2]: Entering directory `/home/dco/Desktop/Nagios/nagios/cgi'
for file in *.cgi; do \
/usr/bin/strip /usr/local/nagios/sbin/$file; \
done
make[2]: Leaving directory `/home/dco/Desktop/Nagios/nagios/cgi'
make[1]: Leaving directory `/home/dco/Desktop/Nagios/nagios/cgi'
cd ./html && make install
make[1]: Entering directory `/home/dco/Desktop/Nagios/nagios/html'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/styles heets
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contex thelp
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/i mages
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images /logos
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includ es
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includ es/rss
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includ es/rss/extlib
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi
/usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/shar e
rm -f /usr/local/nagios/share/index.html
rm -f /usr/local/nagios/share/main.html
rm -f /usr/local/nagios/share/side.html
for file in *.php; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share; done
for file in stylesheets/*.css; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/stylesheets; done
for file in contexthelp/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/contexthelp; done
for file in images/*.gif; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/images; done
for file in images/*.jpg; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/images; done
for file in images/*.png; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/images; done
for file in images/*.ico; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/images; done
for file in images/logos/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/images/logos; done
for file in includes/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/includes; done
for file in includes/rss/*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagio s/share/includes/rss; done
/usr/bin/install: omitting directory `includes/rss/extlib'
/usr/bin/install: omitting directory `includes/rss/htdocs'
/usr/bin/install: omitting directory `includes/rss/scripts'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/dco/Desktop/Nagios/nagios/html'
make: *** [install] Error 2
root@localhost:/home/dco/Desktop/Nagios/nagios#
rctanaman
 
Posts: 4
Joined: Thu Jul 28, 2011 3:01 am

Re: make install command for nagios-3.3.1

Postby Master_Chief_Jon » Mon Aug 01, 2011 9:59 am

I just upgraded from 3.2.3 to 3.3.1 on my Nagios test system, and I had this same error. In addition, the main.php page would not display. I looked in the apache2 error_log (/var/log/apache2) and found that there were class files missing from the folder <nagios_install_dir>/share/includes/rss/extlib. In addition, the other 2 directories under includes/rss were not created. That generated the error you saw in the make install results. I simply created the missing directories, and copied the files from the /tmp directory where I extracted them, set the permissions on all of these files to 664 and owner/group to nagios/nagios. A quick nagios service restart and it was working.
P.S., I did not like the Exfoliation UI, so I went back and ran make install-classicui and restarted the nagios service to get back to the old look & feel.
Master_Chief_Jon
 
Posts: 22
Joined: Fri Nov 19, 2010 1:31 pm

Re: make install command for nagios-3.3.1

Postby mguthrie » Wed Aug 03, 2011 9:27 am

From browsing the nagios users list on sourceforge, it sounds like this could be related to the exfoliation theme on some systems, here's the solution that was suggested.
Try :

% gmake install
mguthrie
 
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am


Return to Community Support

Who is online

Users browsing this forum: artemis and 42 guests