当我们第一次搭建好nagios后会有Nagios HTTP WARNING: HTTP/1.1 403 Forbidden告警

要解决这个问题, 可以创建一个html文件,然后重启两个服务,等待几分钟后即可正常

[root@rhel6 ~]# touch /var/www/html/index.html
[root@rhel6 ~]# /etc/init.d/nagios restart
[root@rhel6 ~]# /etc/init.d/httpd restart

[root@rhel6 nagios-plugins-1.4.14]# updatedb
[root@rhel6 nagios-plugins-1.4.14]# locate check_http
/root/nagios-plugins-1.4.14/contrib/check_http-with-client-certificate.c
/root/nagios-plugins-1.4.14/plugins/check_http
/root/nagios-plugins-1.4.14/plugins/check_http.c
/root/nagios-plugins-1.4.14/plugins/check_http.o
/root/nagios-plugins-1.4.14/plugins/.deps/check_http.Po
/root/nagios-plugins-1.4.14/plugins/t/check_http.t
/usr/local/nagios/libexec/check_http
[root@rhel6 nagios-plugins-1.4.14]# /usr/local/nagios/libexec/check_http -I 127.0.0.1
HTTP OK: HTTP/1.1 200 OK - 266 bytes in 0.002 second response time |time=0.002023s;;;0.000000 size=266B;;;0

最新文章

  1. suds调用webservice
  2. JS所谓的享元模式-->
  3. WFP: 读取XPS文件或将word、txt文件转化为XPS文件
  4. algorithms中计算时间的渐近表示
  5. 【Java基础】继承中的代码块和构造方法的执行顺序探索
  6. Python subprocess执行持续输出shell命令的控制
  7. fedora21 codeblocks在编辑装态下无法输入
  8. C#依据进程名称获取进程的句柄?
  9. 用ES6语法和方式写gulp
  10. Spring框架(4)---AOP讲解铺垫
  11. REDHAT YUM本地源的搭建和使用
  12. Exp2 后门原理与实践 20154320 李超
  13. 日程管理Demo4中的bug
  14. beta冲刺随笔集
  15. devexpress控件之ASPxCallback
  16. JavaScript 引入方式 语言规范 语言基础 数据类型 常用方法 数组 if_else 比较运算符 for while 函数 函数的全局变量和局部变量 {Javascript学习}
  17. 1003 Emergency (25)(25 point(s))
  18. Machine Learning系列--TF-IDF模型的概率解释
  19. iOS开发心得
  20. dedecms 后台登录地址

热门文章

  1. 浏览器解析js
  2. pandas-21 Series和Dataframe的画图方法
  3. DataPipeline CTO陈肃:构建批流一体数据融合平台的一致性语义保证
  4. web模拟终端 --使用shellinabox
  5. Docker 0x05: Dockerfile制作镜像
  6. 用Nodejs遍历云存储文件
  7. 《linux就该这么学》课堂笔记07 while、case、计划任务、用户增删改查命令
  8. [SourceInsight].source insight 使用技巧
  9. 性能测试基础---LR参数化相关
  10. Mysql insert on update