Page 2 of 2
Re: localhost/nagios 404 not found
Posted: Tue Jan 20, 2015 3:56 pm
by Box293
In this guide it uses this command which takes into account the correct directory.
Code: Select all
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled
/etc/apache2/sites-enabled or /etc/apache2/conf-available are both valid from what I understand.
Re: localhost/nagios 404 not found
Posted: Tue Jan 20, 2015 5:18 pm
by abrist
This is a know issue. You need to use the configure option "--with-httpd-conf" as specified by Troy.
Re: localhost/nagios 404 not found
Posted: Wed Jan 21, 2015 4:52 am
by ziedmahjoub
Thanks a lot
Re: localhost/nagios 404 not found
Posted: Wed Jan 21, 2015 5:02 am
by ziedmahjoub
so if i wanna now change the HTTPD_CONF i go to the nagios-4.0.8/Makefile and edit the Makefile by changing :
HTTPD_CONF=/etc/httpd/conf.d to HTTPD_CONF=/etc/apache2/conf-available
Is this right ?
Re: localhost/nagios 404 not found
Posted: Wed Jan 21, 2015 3:24 pm
by abrist
yeah, but the "proper" way is to use the configure switch (--with-httpd-conf) as specified by Troy:
Code: Select all
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail --with-httpd-conf=/etc/apache2/sites-enabled
Re: localhost/nagios 404 not found
Posted: Thu Jan 22, 2015 5:06 am
by ziedmahjoub
ok thanks all guys , problem solved : )))
Re: localhost/nagios 404 not found
Posted: Thu Jan 22, 2015 10:37 am
by cmerchant
We'll go ahead and close the thread. Thanks.