Page 1 of 1

Forbidden - You don't have permissions to access /nagios/ on

Posted: Fri Aug 10, 2018 2:05 pm
by jimt805
I am a Linux newbie, but I downloaded a fresh install and followed the directions exactly. In looking at previous post, I tailed the last 5 lines of the httpd.error.log file and see the following: Cannot server directory /usr/local/nagios//share/: no matching directoryIndex (index.html) found, and server-generated directory index forbidden by Options directive.

Can someone lead me in the right direction....

Jim

Re: Forbidden - You don't have permissions to access /nagios

Posted: Fri Aug 10, 2018 2:23 pm
by lmiltchev
What directions did you follow? Can you provide us with a URL to the document/guide/tutorial that you used? Can you log in to the web UI at all? What is the OS/architecture of the machine that you tried to install Nagios Core on?

Re: Forbidden - You don't have permissions to access /nagios

Posted: Fri Aug 10, 2018 2:48 pm
by jimt805
Thank you for your quick response!

Here is the instructions I used. The OS is Centos 7

https://assets.nagios.com/downloads/nag ... 1533651650

I am unable to login to the UI at all. I have tried localhost/nagios from the local machine and ip/nagios from another system, but prompt me for credentials, which a supply: username: nagiosadmin password: ****** and then I get the error.

Re: Forbidden - You don't have permissions to access /nagios

Posted: Fri Aug 10, 2018 3:47 pm
by npolovenko
@jimt805, Make sure you installed all the required packages:

Code: Select all

yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip
-y
And make sure that the firewall is disabled:

Code: Select all

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
If your server is a VM and you can wipe it clean, try to start all over but follow this tutorial instead:
https://support.nagios.com/kb/article/n ... ce-96.html

Re: Forbidden - You don't have permissions to access /nagios

Posted: Mon Aug 13, 2018 2:22 pm
by jimt805
Thanks npolovenko,

I went ahead and wiped out the install and started over via your suggestion and it works find now.

Re: Forbidden - You don't have permissions to access /nagios

Posted: Mon Aug 13, 2018 3:25 pm
by npolovenko
@jimt805, You're welcome ;) I'll be closing this thread as resolved.