Can't start nagios if apache is in custom location
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
If I execute above command, I am getting following line in the console
cp: omitting directory ‘/etc/httpd/conf.d/nagios.conf’
Note: My apache is in custom location.. /apps/apache-http/bin
cp: omitting directory ‘/etc/httpd/conf.d/nagios.conf’
Note: My apache is in custom location.. /apps/apache-http/bin
Re: Can't start nagios if apache is in custom location
A directory huh? What is the output of:
Code: Select all
ls -la /etc/httpd/conf.d/nagios.conf
cat /etc/httpd/conf.d/nagios.confFormer 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.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
abrist wrote:A directory huh? What is the output of:Code: Select all
ls -la /etc/httpd/conf.d/nagios.conf cat /etc/httpd/conf.d/nagios.conf
total 12
drwxr-xr-x 2 root root 4096 Nov 25 05:27 .
drwxr-xr-x 3 root root 4096 Nov 19 16:30 ..
-rw-r--r-- 1 root root 982 Nov 25 05:27 httpd.conf
cat: /etc/httpd/conf.d/nagios.conf: Is a directory
Re: Can't start nagios if apache is in custom location
This really does not seem right, it is at least VERY far from default/standard. What is in the httpd file?
Code: Select all
cat /etc/httpd/conf.d/nagios.conf/httpd.confFormer 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.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
abrist wrote:This really does not seem right, it is at least VERY far from default/standard. What is in the httpd file?Code: Select all
cat /etc/httpd/conf.d/nagios.conf/httpd.conf
total 12
drwxr-xr-x 2 root root 4096 Nov 25 05:27 .
drwxr-xr-x 3 root root 4096 Nov 19 16:30 ..
-rw-r--r-- 1 root root 982 Nov 25 05:27 httpd.conf
vinoth@velocitylinux:~$ ^C
vinoth@velocitylinux:~$ cat /etc/httpd/conf.d/nagios.conf
cat: /etc/httpd/conf.d/nagios.conf: Is a directory
vinoth@velocitylinux:~$ ^C
vinoth@velocitylinux:~$ cat /etc/httpd/conf.d/nagios.conf/httpd.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: Can't start nagios if apache is in custom location
I have no idea if apache can handle the vhost conf as a directory. Do you have other vhost files located at:
Code: Select all
ls -laR /apps/apache-http/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.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
abrist wrote:I have no idea if apache can handle the vhost conf as a directory. Do you have other vhost files located at:Code: Select all
ls -laR /apps/apache-http/
vinoth@velocitylinux:~$ sudo ls -laR /apps/apache-http/
ls: cannot access /apps/apache-http/: No such file or directory
Re: Can't start nagios if apache is in custom location
vinothsethuram wrote:Note: My apache is in custom location.. /apps/apache-http/bin
Well, where is it?vinothsethuram wrote:vinoth@velocitylinux:~$ sudo ls -laR /apps/apache-http/
ls: cannot access /apps/apache-http/: No such file or directory
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.
-
vinothsethuram
- Posts: 147
- Joined: Thu Nov 07, 2013 11:44 am
Re: Can't start nagios if apache is in custom location
ls -laR /apps/apache-httpd/ listing more than 1000 lines..
-
slansing
- 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
Okay:
Edit: difference in pathing.
This indicates you can't access the directory, yet you said it is outputting over 1000 files in that directory? How can that be? We need solid answers so we can work towards a solution with you.ls: cannot access /apps/apache-http/: No such file or directory
Edit: difference in pathing.