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
"make install-webconf" FAILS while core installation.
Re: "make install-webconf" FAILS while core installation.
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
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
Re: "make install-webconf" FAILS while core installation.
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"
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.
Did you finish the remaining commands?
What error messages are you receiving when running 'service nagios start'?
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
Former Nagios Employee
Re: "make install-webconf" FAILS while core installation.
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
----------
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
----------
- 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.
Most likely it's the configure script that needs adjusting:
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
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled
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.
Re: "make install-webconf" FAILS while core installation.
Thanks sir.
following option worked. May be it should be updated in the instructions doc.
--with-httpd-conf=/etc/apache2/sites-enabled
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.
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