Page 1 of 1

Unable to open Nagios Core console on setup created on SLES

Posted: Mon Dec 02, 2019 10:06 am
by rajshekar_p
Hi Team,

I am hitting with below issue when i try to open Nagios Core console. There is no issue with Apache service.

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403
100.100.29.3
Apache


Below are the setup details:
Nagios Core version - 4.4.5
OS details - SLES 15 SP1

Can yo u please help on this.

Thanks & Regards,
Rajshekar P

Re: Unable to open Nagios Core console on setup created on S

Posted: Mon Dec 02, 2019 10:50 am
by scottwilkerson
Can you share the nagios.conf from the apache config directory?

Re: Unable to open Nagios Core console on setup created on S

Posted: Mon Dec 02, 2019 11:13 am
by rajshekar_p
Hi,

Please find attached nagios.cof file.

Thanks & Regards,
Rajshekar P

Re: Unable to open Nagios Core console on setup created on S

Posted: Mon Dec 02, 2019 11:16 am
by scottwilkerson
And you did restart Apache after the installation correct?

Do you see errors in the apache error log?

what are the permissions here

Code: Select all

ls -al /usr/local/nagios/share

Re: Unable to open Nagios Core console on setup created on S

Posted: Tue Dec 03, 2019 6:12 am
by rajshekar_p
Hi,

Please find attached "error_log" and "ls -al /usr/local/nagios/share" output.

I see few failures in "error"log".

Thanks & Regards,
Rajshekar P

Re: Unable to open Nagios Core console on setup created on S

Posted: Tue Dec 03, 2019 7:35 am
by scottwilkerson
Ok, you are getting

Code: Select all

No matching DirectoryIndex (index.html,index.html.var)
This leads me to believe php isn't installed

Did you install the prerequisites here?
https://support.nagios.com/kb/article/n ... .html#SUSE

Re: Unable to open Nagios Core console on setup created on S

Posted: Wed Dec 04, 2019 8:05 am
by rajshekar_p
Hi,

I installed PHP. And restarted "apache2" and "nagios" service.

PHP version - 7.4.0

Attached "error_log" post PHP installation.

Thanks & Regards,
Rajshekar P

Re: Unable to open Nagios Core console on setup created on S

Posted: Wed Dec 04, 2019 8:10 am
by scottwilkerson
You also need to run these

Code: Select all

sudo /usr/sbin/a2enmod rewrite
sudo /usr/sbin/a2enmod cgi
sudo /usr/sbin/a2enmod version
sudo /usr/sbin/a2enmod php7
sudo systemctl enable apache2.service

Re: Unable to open Nagios Core console on setup created on S

Posted: Wed Dec 04, 2019 8:28 am
by rajshekar_p
Hi,

Thanks for the quick help. post installation of "php7" and "apache2-mod_php7", issue is resolved.

Regards,
Rajshekar P

Re: Unable to open Nagios Core console on setup created on S

Posted: Wed Dec 04, 2019 8:35 am
by scottwilkerson
rajshekar_p wrote:Hi,

Thanks for the quick help. post installation of "php7" and "apache2-mod_php7", issue is resolved.

Regards,
Rajshekar P
Great!

Locking thread