Fwd: Fwd: Apache Server configuration for Nagios 3.0
Christoph Stoettner
info at stoeps.de
Sun Apr 19 22:22:56 CEST 2009
Hi,
I don't know your ubuntu version, but i think the path should be
/etc/apache2 and noch /etc/httpd
I didn't receive an error on this point, on my installations the
configure-Scripts returns the right path.
Greets
Stoeps
On Sat, Apr 18, 2009 at 7:09 AM, Jimmyboy <jimmyjose2980 at gmail.com> wrote:
> Hi James,
>
> I created a file *nagios.conf* under '*/usr/local/apache2/conf*' directory
> by typing the command *sudo touch nagios.conf*.
> Then, I keyed in the *ScriptAlias* and *Alias* directives.
> Then, I did a "*sudo make install-webconfig*", which was again
> unsuccessful.
> Same error!!
>
> So, I created the directories *httpd* & *conf.d* under the directories '*
> /etc*' & '*/etc/httpd*' respectively.
> Then, I copied the *nagios.conf* file into the */etc/httpd/conf.d*directory using the command "sudo cp
> */usr/local/apache2/conf/nagios.conf /etc/httpd/conf.d".*
> Ultimately, after running "*sudo make install-webconfig*", I got the web
> interface for Nagios successfully installed.
>
> I was finally able to complete Nagios installation according to the
> Quickstart Guide for Ubuntu. Now, I am left with its configuration.
>
> Appreciate your suggestion.
>
> Thanks,
> Jim
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Jimmyboy <jimmyjose2980 at gmail.com>
> Date: Apr 17, 2009 12:54 AM
> Subject: Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0
> To: James Pratt <jpratt at norwich.edu>
> Cc: nagios-users at lists.sourceforge.net
>
>
> Hi James,
>
> 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/'.
>
> 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'.
>
> =-=-=-=
>
> I had raised a query on the Apache forum, on which of *apache2.conf* and *
> httpd.con*f is the *config file* 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 *httpd.conf*, else, *apache2.conf*. So, it
> is true in my case.
>
> Based on this, I observed an already installed Nagios setup on a different
> machine. It's *config file* is *apache2.conf* (again true, it was
> installed using Synaptic Package Manager).
>
> 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 'archive.ubuntu.com', etc.
>
> Any idea, how to go about?
>
> Thanks,
> Jim
>
> =-=-=-=
>
>
> On Tue, Apr 14, 2009 at 3:50 AM, James Pratt <jpratt at norwich.edu> wrote:
>
>> Hi - sounds like your issue is that the generic make install in nagios
>> src tries to drop a file called nagios.conf into httpd's (usually the
>> default) location, /etc/httpd/conf.d/, which, appears does not exist on
>> your server...
>>
>> If you can find what directory your apache uses for "/etc/httpd/conf.d/"
>> you can manually copy and paste whatever is in nagios.conf (the one
>> trying to be installed from nagios src dir) into your
>> "/etc/httpd/conf/httpd.conf" (You can likely disregard the
>> "apache2.conf" stuff - sounds like they used their own file naming, as
>> the default is normally "httpd.conf") - Apache itself is very flexible,
>> there are many ways to configure it - nagios simply guesses you are
>> using redhat, so it tries to drop it's httpd config into
>> /etc/httpd/conf.d)
>>
>> HTH ...
>>
>> Regards,
>> jamie
>>
>> > -----Original Message-----
>> > From: Jimmyboy [mailto:jimmyjose2980 at gmail.com]
>> > Sent: Monday, April 13, 2009 2:25 PM
>> > To: nagios-users at lists.sourceforge.net
>>
>> > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios
>> 3.0
>> >
>>
>> > Hi,
>> >
>> > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I
>> > understand that /etc/apache2/apache2.conf is the most important file.
>> > Though I have installed Apache in /etc/apache2 location, I do not have
>> > apache2.conf file as mentioned in the site.
>> >
>> > However, when I stop/start the Apache service using the command
>> > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check
>>
>> > http://127.0.0.1 <http://127.0.0.1/> and ps -A | grep httpd, the
>> results
>> > are OK.
>> >
>> > Thanks,
>> > Jim
>> >
>> > =-=-=-=-=
>> >
>> >
>> > ---------- Forwarded message ----------
>> > From: Jimmyboy <jimmyjose2980 at gmail.com>
>> > Date: Mon, Apr 13, 2009 at 11:49 PM
>> > Subject: Apache Server configuration for Nagios 3.0
>> > To: nagios-users at lists.sourceforge.net
>> >
>> >
>> >
>> > Hi All,
>> >
>> > I am following the Quickstart Guide for installing NAGIOS using
>> > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html.
>> >
>> > One of the prerequisites is Apache2, which I installed, and was
>> successful
>>
>> > in getting "It Works!!" for http://127.0.0.1 <http://127.0.0.1/> .
>> >
>> > However, I am stuck at point 5) Configure the Web Interface, make
>> install-
>> > webconf.
>> >
>> > When this command is issued, this is what I get.
>> > /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
>> >
>> > Prefix for Apache: /etc/apache2
>> >
>> > I believe the httpd.conf file and a few others also need to be edited
>> for
>> > Nagios. Can some please guide me through this?
>> >
>> >
>> > Thanks,
>> > Jim
>> >
>> >
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Stay on top of everything new and different, both inside and
> around Java (TM) technology - register by April 22, and save
> $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> 300 plus technical and hands-on sessions. Register today.
> Use priority code J9JMT32. http://p.sf.net/sfu/p
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090419/ab16ba2f/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list