Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if there is a HTTP Warning/403 Forbidden error in the Nagios-4.2.x installed by CentOS7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces the CentOS7 installation of Nagios-4.2.x HTTP Warning/403 Forbidden errors how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.

Background:

Recently, I came into contact with the new company's Nagios-4.2.x monitoring platform, but there was a small problem: the apache-2.4.7 installed by CentOS7 showed a HTTP Warning/403 Forbidden warning in the nagios monitoring interface.

This monitoring platform has been running normally for more than two years, but the HTTP warning has not been eliminated, and because it is not configured by me, under the condition that it does not affect the normal operation of the business, I have built a similar operating system offline + monitoring platform to start testing and simulation. The same problem occurs.

Methods:

By analyzing / var/log/httpd/error.log, we can know that the index.html file could not be found under / var/www/html.

A: offline solution:

# vim index.html

Apache test page. Welcome to httpd.

Restart httpd

# systemctl restart httpd.service

Wait a minute or two, HTTP shows 200/OK.

B: online solution:

At first, it followed the steps of A, but found that the HTTP display was still Warning/403 Forbidden, and after checking the configuration file and restarting httpd and nagios again and again, it was found that only following A's method would not work.

Out of patience, I had to find an article through Google/Baidu.

How to enable & disable active checks for a host & service (s)

I had to talk about the operation of nagios service commands, and it became clear when I studied it patiently. It turned out that check HTTP was prohibited by the two commands Disable active checks of this service and Submit passive check result for this service.

So after manual enable active check, wait a moment, finally see http display 200/OK.

Thank you for reading this article carefully. I hope the article "what to do if there are HTTP Warning/403 Forbidden errors in the Nagios-4.2.x installed by CentOS7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report