"make install-webconf" FAILS while core installation.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nitmd
Posts: 5
Joined: Mon Nov 23, 2015 4:37 am

"make install-webconf" FAILS while core installation.

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: "make install-webconf" FAILS while core installation.

Post 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
Former Nagios Employee
nitmd
Posts: 5
Joined: Mon Nov 23, 2015 4:37 am

Re: "make install-webconf" FAILS while core installation.

Post 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"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: "make install-webconf" FAILS while core installation.

Post 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'?
Former Nagios Employee
nitmd
Posts: 5
Joined: Mon Nov 23, 2015 4:37 am

Re: "make install-webconf" FAILS while core installation.

Post 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
----------
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: "make install-webconf" FAILS while core installation.

Post 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:

Code: Select all

a2enmod rewrite
a2enmod cgi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nitmd
Posts: 5
Joined: Mon Nov 23, 2015 4:37 am

Re: "make install-webconf" FAILS while core installation.

Post by nitmd »

Thanks sir.
following option worked. May be it should be updated in the instructions doc.
--with-httpd-conf=/etc/apache2/sites-enabled
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: "make install-webconf" FAILS while core installation.

Post 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.
Former Nagios Employee
Locked