Can't start nagios if apache is in custom location
-
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
Correct path is /apps/apache-httpd/ not /apps/apache-http/
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Can't start nagios if apache is in custom location
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
Not sure. I followed below installation guide.
http://nagios.sourceforge.net/docs/3_0/ ... buntu.html
http://nagios.sourceforge.net/docs/3_0/ ... buntu.html
Re: Can't start nagios if apache is in custom location
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/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
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
How about:
Code: Select all
ls -la /apps/apache-httpd/conf/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
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
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
Can you attach a copy of:
Code: Select all
/apps/apache-httpd/conf/httpd.conf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
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:~#
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Can't start nagios if apache is in custom location
Can you attach a copy of it?