Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0

2009-04-16 Thread Jimmyboy
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 jpr...@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:jimmyjose2...@gmail.com]
  Sent: Monday, April 13, 2009 2:25 PM
  To: nagios-users@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 jimmyjose2...@gmail.com
  Date: Mon, Apr 13, 2009 at 11:49 PM
  Subject: Apache Server configuration for Nagios 3.0
  To: nagios-users@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@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

Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0

2009-04-13 Thread James Pratt
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:jimmyjose2...@gmail.com]
 Sent: Monday, April 13, 2009 2:25 PM
 To: nagios-users@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 jimmyjose2...@gmail.com
 Date: Mon, Apr 13, 2009 at 11:49 PM
 Subject: Apache Server configuration for Nagios 3.0
 To: nagios-users@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
 
 


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Nagios-users mailing list
Nagios-users@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