報錯前提:
剛剛添加監控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