Page 1 of 1
No apache site configuration when installing nagios core 4
Posted: Wed Oct 05, 2016 8:25 am
by survex
I'm trying to install nagios from source as described in -
https://assets.nagios.com/downloads/nag ... Source.pdf
I'm following all steps. But at the step where nagios site should be enabled to apache I'm getting:
$ a2ensite nagios
ERROR: Site nagios does not exist!
While:
$ make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/nagios.conf
So apache knows only about one config /etc/apache2/nagios.conf, but there are no config in /etc/apache2/site-available, so apache cannot enable any nagios site.
What am I doing wrong?
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 05, 2016 3:32 pm
by lmiltchev
Can you run the following commands and show the output?
Code: Select all
uname -a
cat /etc/*release
apache2 -v
php -v
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 12, 2016 4:07 am
by uhallgarn
I have same problems with no nagios or nagios.conf file in /etc/apache2/sites-avalable
I used the instructions on Installing_Nagios_Core_From_Source, but got same error message when I used the command sudo a2ensite nagios.
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 12, 2016 4:31 am
by uhallgarn
I got it working.
I made a copy of /etc/httpd/conf.d/nagios.conf/httpd.conf to /etc/apache2/sites-available
Then I renamed the httpd.conf (in sites-available) to nagios.conf
Then the apach2 must be reloded: service apache2 reload
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 12, 2016 10:05 am
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 12, 2016 10:17 am
by uhallgarn
I think the installation scripts are faulty. Should have worked without doing this manual work.
Someone maybe should write a tr?
Re: No apache site configuration when installing nagios core
Posted: Wed Oct 12, 2016 10:24 am
by dwhitfield
You are welcome to file a bug report at
https://github.com/NagiosEnterprises/nagioscore/issues
To clarify, your particular issue is resolved, correct?
Re: No apache site configuration when installing nagios core
Posted: Wed Mar 15, 2017 10:14 am
by rafael.petersen
I found the error into the make-install-webconf....
the scripts with the error is:
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2//nagios.conf
if [ 0 -eq 1 ]; then \
ln -s /etc/apache2//nagios.conf /etc/apache2/sites-enabled/nagios.conf; \
fi
the error is in the path "/etc/apache2//nagios.conf" the "sites-available" is missing between the slashes.....
just execute the command manually with the correct path.
Re: No apache site configuration when installing nagios core
Posted: Wed Mar 15, 2017 11:02 am
by cdienger
Thank you for the update. I did a quick search and didn't see a bug that fit so, if you haven't already, I would suggest again to file one at
https://github.com/NagiosEnterprises/nagioscore/issues.
Did you have any further questions or would it be okay to close the thread at this point?