Can't start nagios if apache is in custom location

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

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

Post by vinothsethuram »

Getting command not found error. what copy you need from me?
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

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

Post by vinothsethuram »

ot@velocitylinux:/apps/apache-httpd/conf# ls
extra httpd.conf magic mime.types original workers.properties
root@velocitylinux:/apps/apache-httpd/conf# cd /httpd.conf
bash: cd: /httpd.conf: No such file or directory
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

vino, we need you to give us a copy of the file located at:

/apps/apache-httpd/conf/httpd.conf
Former Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Open up PuTTY, maximize the window, and run this:

Code: Select all

cat /etc/httpd/conf/httpd.conf | grep --invert-match "#" | sed '/^\s*$/d' | tr '\n' '#'
Then copy and paste the output here.
Former Nagios employee
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

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

Post by vinothsethuram »

root@velocitylinux:~# cat /etc/httpd/conf/httpd.conf | grep --invert-match "#" | sed '/^\s*$/d' | tr '\n' '#'
cat: /etc/httpd/conf/httpd.conf: No such file or directory


I sent PM with attachment
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

I got your PM. As for the command I had you run, I neglected to change the file path to yours.

We will review your file and get back to you.
Former Nagios employee
vinothsethuram
Posts: 147
Joined: Thu Nov 07, 2013 11:44 am

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

Post by vinothsethuram »

Hi,

Any updates?

Thanks
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

Post by slansing »

We looked over the config file and did not notice anything that would cause this issue, it looks in order. At this point we need to make it clear that we only support installations on clean minimal distro installs, and the packages that are grabbed as a part of nagios prerequisites are in their expected, default, installation locations. This is where Nagios expects to find what it requires. While we try to support installations that go beyond this, at a certain point it is no longer feasible to try and hunt down changes that are not officially supported.
Locked