Cannot access nagios web directory remotely

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.
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Cannot access nagios web directory remotely

Post by raydha »

Hi,

I'm not sure why we cannot access nagios directory remotely. it does not happen when we locally access nagios. ie : http://localhost/nagios.

however from the httpd error log.
it shown :
"[autoindex:error] cannot serve durectiry /var/www/html/ No matching DirectoryIndex (index.html, index.html.var, index.php) found, and server-generated directory index forbidden by Options directive"

thanks in advance.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Cannot access nagios web directory remotely

Post by Box293 »

How did you install nagios, did you follow any guides? If so, please provide a link.

What OS is nagios installed on?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Cannot access nagios web directory remotely

Post by nozlaf »

if you are looking for a guide on how to install it give these a crack, they are foolproof
http://sites.box293.com/nagios/guides/installing-nagios
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Cannot access nagios web directory remotely

Post by raydha »

Box293 wrote:How did you install nagios, did you follow any guides? If so, please provide a link.

What OS is nagios installed on?
I follow this guide https://www.digitalocean.com/community/ ... n-centos-7

Centos 7 -1.1503.el7 x64
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Cannot access nagios web directory remotely

Post by raydha »

nozlaf wrote:if you are looking for a guide on how to install it give these a crack, they are foolproof
http://sites.box293.com/nagios/guides/installing-nagios
noted that. thanks. however, i need a solution on this issue. are you saying that re-install would be the option?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Cannot access nagios web directory remotely

Post by rkennedy »

It sounds like you may have had apache already installed on the system. I would recommend reinstalling.

I wrote instructions for installing Nagios Core on Centos 7 which will work for you without a doubt on a minimal install.
https://assets.nagios.com/downloads/nag ... entos7.pdf
Former Nagios Employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Cannot access nagios web directory remotely

Post by bwallace »

In addition to rkennedy's suggestion, one other thing to consider is iptables running on the Nagios server and have you allowed other hosts access? Run the command 'iptables --list' to check.
Be sure to check out the Knowledgebase for helpful articles and solutions!
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Cannot access nagios web directory remotely

Post by raydha »

surprisingly, the problem resolved without doing any changes but still the no matching directoryindex is still logged.

on top of that i did run setenforce 0 and stop iptables service, when the problem occurred.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Cannot access nagios web directory remotely

Post by rkennedy »

It was most likely a permissions issue that had to do with SELinux.

Can you please clarify what you mean by no matching directoryindex is logged? Show us a screenshot?
Former Nagios Employee
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Cannot access nagios web directory remotely

Post by raydha »

rkennedy wrote:It was most likely a permissions issue that had to do with SELinux.

Can you please clarify what you mean by no matching directoryindex is logged? Show us a screenshot?
please find below the screen shot for your review.
https://support.nagios.com/forum/downlo ... w&id=12704
Locked