Unable to open Nagios Core console on setup created on SLES

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.
Locked
rajshekar_p
Posts: 11
Joined: Mon Mar 07, 2016 5:59 am

Unable to open Nagios Core console on setup created on SLES

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Can you share the nagios.conf from the apache config directory?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rajshekar_p
Posts: 11
Joined: Mon Mar 07, 2016 5:59 am

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

Post by rajshekar_p »

Hi,

Please find attached nagios.cof file.

Thanks & Regards,
Rajshekar P
Attachments
nagios.conf
nagios.conf file
(1.64 KiB) Downloaded 117 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rajshekar_p
Posts: 11
Joined: Mon Mar 07, 2016 5:59 am

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

Post 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
Attachments
error_log.txt
error_log
(1.42 KiB) Downloaded 105 times
"share" directory permissions
"share" directory permissions
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rajshekar_p
Posts: 11
Joined: Mon Mar 07, 2016 5:59 am

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

Post 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
Attachments
error_log-Post_PHP_Installation.txt
error_log-Post PHP Installation
(1.43 KiB) Downloaded 100 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
rajshekar_p
Posts: 11
Joined: Mon Mar 07, 2016 5:59 am

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

Post by rajshekar_p »

Hi,

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

Regards,
Rajshekar P
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked