CentOS7 installed nagios-4.2.x http warring/403 Forbiden Final resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.