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