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

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
jimt805
Posts: 6
Joined: Fri Aug 10, 2018 1:54 pm

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

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jimt805
Posts: 6
Joined: Fri Aug 10, 2018 1:54 pm

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

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jimt805
Posts: 6
Joined: Fri Aug 10, 2018 1:54 pm

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

Post by jimt805 »

Thanks npolovenko,

I went ahead and wiped out the install and started over via your suggestion and it works find now.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post by npolovenko »

@jimt805, You're welcome ;) I'll be closing this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked