Nagios report WARNING: HTTP/1.1 403 Forbidden warning what to do
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!