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

Nagios report WARNING: HTTP/1.1 403 Forbidden warning what to do

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the Nagios newspaper WARNING: HTTP/1.1 403 Forbidden warning 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 the editor take you to understand.

Recently, newly installed Nagios,localhost will always warn: "WARNING: HTTP/1.1 403 Forbidden". This afternoon I had some free Google and found a solution to share it.

In dashboard it shows alert on localhost i.e our own newly set up nagios server.

Create an index.html file in this directory: / var/www/html

Touch / var/www/html/index.html

Restart the httpd and nagios services and wait a few minutes for the warning to be cleared automatically.

/ etc/init.d/nagios restart/etc/init.d/httpd restart

Wait for a few minutes the alert will be gone. Yes we are done here.

Here are the steps

[root@localhost html] # whoamiroot [root@localhost html] # / usr/local/nagios/libexec/check_http-I 127.0.0.1HTTP WARNING: HTTP/1.1 403 Forbidden-5237 bytes in 0.001 second response time | time=0.000719s;;;0.000000 size=5237B 0 [root@localhost html] # pwd/var/www/html [root@localhost html] # touch index.html [root@localhost html] # service nagios restart [root@localhost html] # service httpd restart [root@localhost html] # / usr/local/nagios/libexec/check_http-I 127.0.0.1HTTP OK: HTTP/1.1 200OK-265bytes in 0.001 second response time | time=0.000574s;;;0.000000 size=265B;;;0

Note: check your check_http plugin where it is located in server. This file is on my host at: / usr/local/nagios/libexec/check_http

Thank you for reading this article carefully. I hope the article "Nagios China News WARNING: HTTP/1.1 403 Forbidden warning how to do" shared by the editor will be helpful to everyone. At the same time, I also hope 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