Page 3 of 4

Re: Can't start nagios if apache is in custom location

Posted: Wed Jan 15, 2014 4:26 pm
by vinothsethuram
Correct path is /apps/apache-httpd/ not /apps/apache-http/

Re: Can't start nagios if apache is in custom location

Posted: Wed Jan 15, 2014 5:36 pm
by sreinhardt
Did you configure this when building nagios, such as ./configure --webdir=/apps/apache-httpd/nagios/ ? That likely is not a correct config option, but if you are not going to use the standards that configure and make expect, gcc and make will not create your cgi's and nagios binaries correctly. At this point I can only assume you wish to use that directory instead of /var/www or wherever it may currently be in ubuntu land, is this thought correct?

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 10:51 am
by vinothsethuram
Not sure. I followed below installation guide.

http://nagios.sourceforge.net/docs/3_0/ ... buntu.html

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 11:27 am
by abrist
We are looking for the location of your apache vhost files, as we need to copy the nagios vhost file into it.

Code: Select all

ls -la  /apps/apache-httpd/conf.d/

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 11:40 am
by vinothsethuram
abrist wrote:We are looking for the location of your apache vhost files, as we need to copy the nagios vhost file into it.

Code: Select all

ls -la  /apps/apache-httpd/conf.d/

root@velocitylinux:~/downloads/nagios-plugins-1.5# ls -la /apps/apache-httpd/
total 68
drwxr-xr-x 15 velocity velocity 4096 Nov 21 00:45 .
drwxrwxr-x 8 velocity velocity 4096 Dec 4 00:21 ..
drwxr-xr-x 2 velocity velocity 4096 Nov 15 02:38 bin
drwxr-xr-x 2 velocity velocity 4096 Nov 15 02:38 build
drwxr-xr-x 2 velocity velocity 4096 Nov 15 02:38 cgi-bin
drwxr-xr-x 4 velocity velocity 4096 Dec 4 00:35 conf
drwxr-xr-x 3 velocity velocity 4096 Nov 15 02:38 error
drwxr-xr-x 2 velocity velocity 4096 Dec 10 01:56 htdocs
drwxr-xr-x 3 velocity velocity 4096 Nov 15 02:38 icons
drwxr-xr-x 2 velocity velocity 4096 Nov 15 02:38 include
drwxr-xr-x 3 velocity velocity 4096 Nov 15 02:38 lib
drwxr-xr-x 2 velocity velocity 4096 Dec 4 00:28 logs
drwxr-xr-x 4 velocity velocity 4096 Nov 15 02:38 man
drwxr-xr-x 14 velocity velocity 12288 Jul 15 2013 manual
drwxr-xr-x 2 velocity velocity 4096 Nov 15 04:10 modules

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 11:42 am
by abrist
How about:

Code: Select all

ls -la  /apps/apache-httpd/conf/

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 11:48 am
by vinothsethuram
root@velocitylinux:~/downloads/nagios-plugins-1.5# ls -la /apps/apache-httpd/conf/
total 108
drwxr-xr-x 4 velocity velocity 4096 Dec 4 00:35 .
drwxr-xr-x 15 velocity velocity 4096 Nov 21 00:45 ..
drwxr-xr-x 2 velocity velocity 4096 Nov 15 02:38 extra
-rw-r--r-- 1 velocity velocity 18425 Dec 4 00:28 httpd.conf
-rw-r--r-- 1 velocity velocity 13077 Nov 15 02:38 magic
-rw-r--r-- 1 velocity velocity 53011 Nov 15 02:38 mime.types
drwxr-xr-x 3 velocity velocity 4096 Nov 15 02:38 original
-rw-rw-r-- 1 velocity velocity 232 Nov 21 00:45 workers.properties

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 12:20 pm
by abrist
Can you attach a copy of:

Code: Select all

/apps/apache-httpd/conf/httpd.conf

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 12:55 pm
by vinothsethuram
abrist wrote:Can you attach a copy of:

Code: Select all

/apps/apache-httpd/conf/httpd.conf

root@velocitylinux:~# sudo /apps/apache-httpd/conf/httpd.conf
sudo: /apps/apache-httpd/conf/httpd.conf: command not found
root@velocitylinux:~#

Re: Can't start nagios if apache is in custom location

Posted: Thu Jan 16, 2014 1:01 pm
by slansing
Can you attach a copy of it?