这篇文章主要介绍了Nagios中报WARNING: HTTP/1.1 403 Forbidden警告怎么办,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
最近新裝的Nagios,localhost总是会报警告:“WARNING: HTTP/1.1 403 Forbidden ”,今天下午得空Google了一番,找到一个解决方法分享出来。
In dashboard it shows alert on localhost i.e our own newly set up nagios server.
在此目录创建一个index.html文件: /var/www/html
touch /var/www/html/index.html
重启httpd和nagios服务,等待几分钟警告就自动清除了。
/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.
以下是操作步骤
[root@localhost html]# whoami root [root@localhost html]# /usr/local/nagios/libexec/check_http -I 127.0.0.1 HTTP 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.1 HTTP OK: HTTP/1.1 200 OK – 265 bytes 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. 我的主机上此文件在:/usr/local/nagios/libexec/check_http
感谢你能够认真阅读完这篇文章,希望小编分享的“Nagios中报WARNING: HTTP/1.1 403 Forbidden警告怎么办”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。