报错前提:
刚刚添加监控HTTP服务时,Nagios就报错了!
错误内容如下:
HTTP WARNING: HTTP/1.1 403 Forbidden - 5240 bytes in 0.001 second response time |time=0.001260s;;;0.000000 size=5240B;;;0
原因是nagios监控HTTP时,会监控到/var/www/html/下面的index.html文件,若没有就会提示错误,创建一个文件即可!
#touch /var/www/html/index.html#service httpd restart