service check_http 会检查/var/www/html/index.html 文件,
如果没有监控会返回警告信息:
HTTP WARNING: HTTP/1.1 403 Forbidden - 5240 bytes in 0.001 second response time |time=0.001260s;;;0.000000 size=5240B;;;0
在/var/中添加一个/www/html/index.index文件并重启nagios即可
阅读(207) | 评论(1) | 转发(0) |