Nagios监控HTTP服务时,出现“HTTP WARNING: HTTP/1.1 403 Forbidden - 5237 bytes in 0.008 second response time ”。
check_http 是检测“/var/www/html/index.html”。当没有这个文件,就会有warn警告。
为了解决这个警告,你可以添加这个文件。执行脚本:
touch /var/www/html/index.html
重启apache和nagios,过2分钟后,warn警告会消失。
$ /etc/init.d/nagios restart
$ /etc/init.d/httpd restart
本文详细介绍了如何解决Nagios监控HTTP服务时出现的HTTPWARNING警告问题,通过添加缺失文件和重启相关服务来解决。
5473

被折叠的 条评论
为什么被折叠?



