Hi,<br><br>I don't know your ubuntu version, but i think the path should be /etc/apache2 and noch /etc/httpd<br><br>I didn't receive an error on this point, on my installations the configure-Scripts returns the right path.<br>
<br>Greets<br>Stoeps<br><br><div class="gmail_quote">On Sat, Apr 18, 2009 at 7:09 AM, Jimmyboy <span dir="ltr"><<a href="mailto:jimmyjose2980@gmail.com">jimmyjose2980@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi James,</div>
<div> </div>
<div>I created a file <b><i><font color="#009900">nagios.conf</font></i></b> under '<i>/usr/local/apache2/conf</i>' directory by typing the command <b>sudo touch nagios.conf</b>.</div>
<div>Then, I keyed in the <b>ScriptAlias</b> and <b>Alias</b> 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 <i><b>httpd</b></i> & <i><b>conf.d</b></i> under the directories '<b>/etc</b>' & '<b>/etc/httpd</b>' respectively.</div>
<div>Then, I copied the <b><i><font color="#009900">nagios.conf</font></i></b> file into the <u>/etc/httpd/conf.d</u> directory using the command "sudo cp <i>/usr/local/apache2/conf/<b><font color="#009900">nagios.conf</font></b> /etc/httpd/conf.d".</i></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"><div class="im">From: <b class="gmail_sendername">Jimmyboy</b> <<a href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>><br>
</div><div><div></div><div class="h5">
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 href="mailto:jpratt@norwich.edu" target="_blank">jpratt@norwich.edu</a>><br>
Cc: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br><br> </div></div></span></p></div><div><div></div><div class="h5">
<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 <b>apache2.conf</b> and <b>httpd.con</b>f is the <i>config file</i> 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 <b>httpd.conf</b>, else, <b>apache2.conf</b>. 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 <i>config file</i> is <b>apache2.conf</b> (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 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 href="mailto:jpratt@norwich.edu" target="_blank">jpratt@norwich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">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 href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>]<br>> Sent: Monday, April 13, 2009 2:25 PM<br>
> To: <a 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 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 href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a 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 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 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 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 href="http://127.0.0.1/" target="_blank">http://127.0.0.1</a> <<a 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>
</div></div><br>------------------------------------------------------------------------------<br>
Stay on top of everything new and different, both inside and<br>
around Java (TM) technology - register by April 22, and save<br>
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.<br>
300 plus technical and hands-on sessions. Register today.<br>
Use priority code J9JMT32. <a href="http://p.sf.net/sfu/p" target="_blank">http://p.sf.net/sfu/p</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>