background:
Recently, access to the new company's nagios-4.2.x monitoring platform, but there is a small problem: CentOS7 installed apache-2.4.7, the Nagios monitoring interface appears HTTP warring/403 forbiden warning.
This monitoring platform has been running for more than two years, that is, HTTP warning has not been eliminated, and because it is not my configuration, it does not affect the normal operation of the situation, the line under their own built a similar operating system + monitoring platform to start testing, simulation, but also the same problem arises.
Method:
By analyzing/var/log/httpd/error.log, we know that index.html file could not be found under/var/www/html.
A: Offline Solution:
# vim Index.html
<! doctype>
Restart httpd
# systemctl Restart Httpd.service
Wait a two minutes, HTTP display 200/ok.
B: On-line workaround:
The first step is to follow the steps of a, but it is found that the HTTP display remains warring/403 Forbiden, also passes the repeatedly check configuration file and reboot httpd, Nagios, But it's not possible to find a way to just follow a.
Without resistance, had to pass through the Google/baidu, and finally surprised to find an article
How to enable & Disable active checks for a host & service (s)
Had to talk about the Nagios service commands operation, the patient study enlightened, the original is so <X>Disable Active checks of this service and <? >submit Passive Check result for this service these two commands function to disable check HTTP.
So after the manual enable active check, wait a moment, finally see HTTP display 200/ok.
The problem is resolved.
Ok.
This article is from the "Linux" blog, so be sure to keep this source http://lusiemen.blog.51cto.com/10589943/1941145
CentOS7 installed nagios-4.2.x http warring/403 Forbiden Final resolution