Nagios Core installation failure

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
jsamson
Posts: 3
Joined: Fri Dec 05, 2014 8:21 am

Nagios Core installation failure

Post by jsamson »

Hello,

While I am installing nagios core 4.0.x in Ubuntu 14.0, I am getting this below error. Can someone please help in resolving this.

I am following this below link..

http://assets.nagios.com/downloads/nagi ... Source.pdf


root@asi-nagiossvr02:/tmp/nagios-4.0.4# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/conf.d/nagios.conf
/usr/bin/install: cannot create regular file â/etc/apache2/conf.d/nagios.confâ: No such file or directory
make: *** [install-webconf] Error 1
root@asi-nagiossvr02:/tmp/nagios-4.0.4#


Sam..
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Core installation failure

Post by tmcdonald »

Do you have apache installed already? If so, what version? If might be under /etc/apache3 or possibly /etc/httpd if you compiled from source. Can you show us what apache-related directories you have under /etc?
Former Nagios employee
jsamson
Posts: 3
Joined: Fri Dec 05, 2014 8:21 am

Re: Nagios Core installation failure

Post by jsamson »

Hai,

Here is the apache version info..

Server version: Apache/2.4.7 (Ubuntu)
Server built: Jul 22 2014 14:36:38

I dont have any folder by httpd, instead i have only apache2 folder.

Sam.
emislivec
Posts: 52
Joined: Tue Feb 25, 2014 10:06 am

Re: Nagios Core installation failure

Post by emislivec »

The conf locations are different: https://help.ubuntu.com/14.04/serverguide/httpd.html
conf-available: this directory contains available configuration files. All files that were previously in /etc/apache2/conf.d should be moved to /etc/apache2/conf-available.
We can tell configure to install there by adding:

Code: Select all

--with-httpd-conf=/etc/apache2/conf-available
to the ./configure command line.

(The Nagios site conf file should live in /etc/apache2/sites-available with a syhmlink in /etc/apache2/sites-enabled to match the conventions on Ubuntu, but the install commands need to be modified to do that.)

I think you will also need to install sysv-rc-conf to get chkconfig for the later installations commands.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Core installation failure

Post by Box293 »

I have a full guide you can follow which shows you how to install Core 4.0.8 on Ubuntu 14.04.

http://sites.box293.com/nagios/guides/i ... untu-14-04
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jsamson
Posts: 3
Joined: Fri Dec 05, 2014 8:21 am

Re: Nagios Core installation failure

Post by jsamson »

Thank you so much. I have installed it successfully and mails are getting.
Locked