icinga 添加http service
来源:互联网 发布:鼎力测试软件下载 编辑:程序博客网 时间:2024/06/04 20:00
紧接上文,现在监控了10.112.18.131 host,但是没有任何public service被监控。该机上已经安装了nginx,监听80端口,提供了静态文件服务器。
第一步:确保nginx提供了根目录的访问
location / { root /opt; index index.html; }手动通过浏览器测试一下:http://10.112.18.131
可以看到index.html的内容就行了。
第二步:在/usr/local/icinga/etc/object/linux.cfg文件中添加一个service
File Edit Options Buffers Tools Minibuf Help define host{ use linux-server ; Inherit default values from a template host_name StaticFileServer ; The name we're giving to this host alias static filer server for 3D and jenksins server for CloudEngine ; A longer name associated with the host address 10.112.18.131 ; IP address of the host contact_groups admins ; Host groups this host is associated with } # check that web services are running define service { host_name StaticFileServer service_description HTTP check_command check_http use generic-service action_url http://10.112.18.131/ArcGIS/rest/services/SanFrancisco/3DFeatureServer notification_interval 0 ; set > 0 if you want to be renotified }好。测试一下:
/usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg
然后重新加载:
service icinga reload
现在刷新网页:
一切OK. 点击HTTP右边的齿轮按钮,可以打开action_url的链接地址。
- icinga 添加http service
- icinga 1.9 添加host
- icinga
- Icinga Installation
- icinga-cn中文项目
- icinga安装PNP4Nagios
- 搭建ICINGA监控
- icinga-selinux的解决办法
- 如何部署Icinga客户端
- 如何部署Icinga服务端
- Icinga使用总结
- http mock service
- Spring HTTP Service
- Apache Felix HTTP Service
- AngularJS $http Service
- Http Invoker Service & Client
- AngularJS $http service
- HTTP Service服务去哪啦?
- 虚拟地址 线性地址 物理地址
- nginx负载均衡session共享解决方案
- 介绍各种压缩格式MPEG1--MPEG4--MPEG7—MPEG21-H.264
- 实现多个文件上传
- HDR阴影高光图像增强
- icinga 添加http service
- 通过iptables限制并发连接数20130515
- 给定一个集合,输出它的所有子集(JAVA实现)
- 初学者必读 MySQL 数据库常见问题汇总
- Nginx动静分离经典案例配置
- 编译安装lnmp步骤
- ACM参考算法集
- ORA-12505: TNS: 监听程序当前无法识别连接描述符中所给出的SID等错误解决方法
- socket编程指南