Page 1 of 2
Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 12:31 am
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.
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 12:52 am
by Box293
How did you install nagios, did you follow any guides? If so, please provide a link.
What OS is nagios installed on?
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 2:17 am
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
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 4:54 am
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
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 4:55 am
by raydha
noted that. thanks. however, i need a solution on this issue. are you saying that re-install would be the option?
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 12:03 pm
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
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 12:05 pm
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.
Re: Cannot access nagios web directory remotely
Posted: Thu Mar 03, 2016 11:59 pm
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.
Re: Cannot access nagios web directory remotely
Posted: Fri Mar 04, 2016 11:10 am
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?
Re: Cannot access nagios web directory remotely
Posted: Sun Mar 13, 2016 10:05 pm
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