<div>Hi James,</div>
<div> </div>
<div>I created a file <strong><em><font color="#009900">nagios.conf</font></em></strong> under '<em>/usr/local/apache2/conf</em>' directory by typing the command <strong>sudo touch nagios.conf</strong>.</div>
<div>Then, I keyed in the <strong>ScriptAlias</strong> and <strong>Alias</strong> directives.</div>
<div>Then, I did a "<u>sudo make install-webconfig</u>", which was again unsuccessful.</div>
<div>Same error!!</div>
<div> </div>
<div>So, I created the directories <em><strong>httpd</strong></em> & <em><strong>conf.d</strong></em> under the directories '<strong>/etc</strong>' & '<strong>/etc/httpd</strong>' respectively.</div>

<div>Then, I copied the <strong><em><font color="#009900">nagios.conf</font></em></strong> file into the <u>/etc/httpd/conf.d</u> directory using the command "sudo cp <em>/usr/local/apache2/conf/<strong><font color="#009900">nagios.conf</font></strong> /etc/httpd/conf.d".</em></div>

<div>Ultimately, after running "<u>sudo make install-webconfig</u>", I got the web interface for Nagios successfully installed.</div>
<div> </div>
<div>I was finally able to complete Nagios installation according to the Quickstart Guide for Ubuntu. Now, I am left with its configuration.</div>
<div> </div>
<div>Appreciate  your suggestion.</div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div><font face="Courier--Identity-H" size="1"></font> </div>
<div><font face="Courier--Identity-H" size="1"> </font></div>
<div>
<p align="left"><br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Jimmyboy</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>><br>
Date: Apr 17, 2009 12:54 AM<br>Subject: Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0<br>To: James Pratt <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jpratt@norwich.edu" target="_blank">jpratt@norwich.edu</a>><br>
Cc: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br><br> </span></p></div>
<div>Hi James,</div>
<div> </div>
<div>You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not know how to find out the directory, Apache on my system refers to '/etc/httpd/conf.d/'.</div>
<div> </div>
<div>However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to the default location). Still, I am getting the same error on doing a 'sudo make install-webconf'.</div>

<div> </div>
<div>=-=-=-=</div>
<div> </div>
<div>I had raised a query on the Apache forum, on which of <strong>apache2.conf</strong> and <strong>httpd.con</strong>f is the <em>config file</em> of Apache. I got an answer stating that it depends on type of installation method followed. If the source files (.tar.gz) are used, then it is <strong>httpd.conf</strong>, else, <strong>apache2.conf</strong>. So, it is true in my case.</div>

<div> </div>
<div>Based on this, I observed an already installed Nagios setup on a different machine. It's <em>config file</em> is <strong>apache2.conf</strong> (again true, it was installed using Synaptic Package Manager).</div>

<div> </div>
<div>So, I was thinking to try installing using the 'Synaptic Package Manager' or 'apt-get'. However, both aren't working for me. Though I am able to proxy the internet (sitting behind a proxy server), Synaptic & sudo apt-get say, they cannot resolve '<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://archive.ubuntu.com/" target="_blank">archive.ubuntu.com</a>', etc.</div>

<div> </div>
<div>Any idea, how to go about?</div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div>=-=-=-=</div>
<div><span>
<div><br> </div>
<div class="gmail_quote">On Tue, Apr 14, 2009 at 3:50 AM, James Pratt <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jpratt@norwich.edu" target="_blank">jpratt@norwich.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi - sounds like your issue is that the generic make install in nagios<br>src tries to drop a file called nagios.conf into httpd's (usually the<br>
default) location, /etc/httpd/conf.d/, which, appears does not exist on<br>your server...<br><br>If you can find what directory your apache uses for "/etc/httpd/conf.d/"<br>you can manually copy and paste whatever is in nagios.conf (the one<br>
trying to be installed from nagios src dir) into your<br>"/etc/httpd/conf/httpd.conf" (You can likely disregard the<br>"apache2.conf" stuff - sounds like they used their own file naming, as<br>the default is normally "httpd.conf")  - Apache itself is very flexible,<br>
there are many ways to configure it - nagios simply guesses you are<br>using redhat, so it tries to drop it's httpd config into<br>/etc/httpd/conf.d)<br><br>HTH ...<br><br>Regards,<br>jamie<br>
<div><br>> -----Original Message-----<br>> From: Jimmyboy [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>]<br>> Sent: Monday, April 13, 2009 2:25 PM<br>
> To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br> </div>
<div>> Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios<br>3.0<br>><br> </div>
<div>> Hi,<br>><br>> On reading <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://help.ubuntu.com/8.10/serverguide/C/httpd.html" target="_blank">https://help.ubuntu.com/8.10/serverguide/C/httpd.html</a>, I<br>
> understand that /etc/apache2/apache2.conf is the most important file.<br>> Though I have installed Apache in /etc/apache2 location, I do not have<br>> apache2.conf file as mentioned in the site.<br>><br>> However, when I stop/start the Apache service using the command<br>
> '/etc/apache2/bin/apachectl -k stop/start' respectively, and check<br> </div>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>>  and ps -A | grep httpd, the<br>

<div>results<br>> are OK.<br>><br>> Thanks,<br>> Jim<br>><br>> =-=-=-=-=<br>><br>><br>> ---------- Forwarded message ----------<br>> From: Jimmyboy <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>><br>
> Date: Mon, Apr 13, 2009 at 11:49 PM<br>> Subject: Apache Server configuration for Nagios 3.0<br>> To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
><br>><br>><br>> Hi All,<br>><br>> I am following the Quickstart Guide for installing NAGIOS using<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html</a>.<br>
><br>> One of the prerequisites is Apache2, which I installed, and was<br>successful<br> </div>> in getting "It Works!!" for <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>> .<br>

<div>
<div></div>
<div>><br>> However, I am stuck at point 5) Configure the Web Interface, make<br>install-<br>> webconf.<br>><br>> When this command is issued, this is what I get.<br>> /usr/bin/install -c -m 644 sample-config/httpd.conf<br>
> /etc/httpd/conf.d/nagios.conf<br>> /usr/bin/install: cannot create regular file<br>> '/etc/httpd/conf.d/nagios.conf': No such file or directory<br>> make: *** [install-webconf] Error 1<br>><br>> Prefix for Apache: /etc/apache2<br>
><br>> I believe the httpd.conf file and a few others also need to be edited<br>for<br>> Nagios. Can some please guide me through this?<br>><br>><br>> Thanks,<br>> Jim<br>><br>><br><br> </div></div>
</blockquote></div><br></span></div>