Page 1 of 1
"make install-webconf" FAILS while core installation.
Posted: Mon Nov 23, 2015 4:50 am
by nitmd
When installing nagios core on Ubuntu got following error. I guess it is the reason for not able to access "http://<your.nagios.server.ip>/nagios". Please help
root@ubuntuvm2:~/xyz/nagios-4.1.1# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file â/etc/httpd/conf.d/nagios.confâ: No such file or directory
make: *** [install-webconf] Error 1
root@ubuntuvm2:~/xyz/nagios-4.1.1# uname -a
Linux ubuntuvm2 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Re: "make install-webconf" FAILS while core installation.
Posted: Mon Nov 23, 2015 10:11 am
by rkennedy
What instructions are you following?
The command you mentioned is how it should install on a Centos or RHEL machine. This directory is changed in Ubuntu to /etc/apache2/sites-enabled/.
This should work in place of
make install-webconf
Code: Select all
sudo /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf
Re: "make install-webconf" FAILS while core installation.
Posted: Tue Nov 24, 2015 12:57 am
by nitmd
I am following the instructions mentioned in the following document:
https://assets.nagios.com/downloads/nag ... Source.pdf
Instructions don't mention that this command is for Centos or RHEL machine in fact it says "All systems".
tried "/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf" still not able to access "http://<your.nagios.server.ip>/nagios"
Re: "make install-webconf" FAILS while core installation.
Posted: Tue Nov 24, 2015 10:15 am
by rkennedy
Did you finish the remaining commands?
Code: Select all
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
What error messages are you receiving when running 'service nagios start'?
Re: "make install-webconf" FAILS while core installation.
Posted: Tue Nov 24, 2015 11:21 pm
by nitmd
yes i executed all the remaining commands.
there is no error message for command 'service nagios start'.
----------
# /etc/init.d/nagios start
Starting nagios: done.
#
----------
I get following error message when tried accessing nagios page
http://<sys_IP>/nagios
----------
Not Found
The requested URL /nagios was not found on this server.
Apache/2.4.7 (Ubuntu) Server at <sys_IP> Port 80
----------
Re: "make install-webconf" FAILS while core installation.
Posted: Wed Nov 25, 2015 12:13 am
by Box293
Most likely it's the configure script that needs adjusting:
Code: Select all
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled
Here's a guide I wrote for Core 4.0.8 which is pretty similar.
http://sites.box293.com/nagios/guides/i ... untu-14-04
Also you may need to do:
Re: "make install-webconf" FAILS while core installation.
Posted: Wed Nov 25, 2015 12:30 am
by nitmd
Thanks sir.
following option worked. May be it should be updated in the instructions doc.
--with-httpd-conf=/etc/apache2/sites-enabled
Re: "make install-webconf" FAILS while core installation.
Posted: Wed Nov 25, 2015 10:28 am
by rkennedy
Glad to see this worked for you! As this is resolved, I will now close this thread out. Feel free to open another if you ever need assistance in the future.