码迷,mamicode.com
首页 > 移动开发 > 详细

Nagios 监控 http 服务

时间:2017-06-07 15:49:14      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:config   fine   reload   name   conf   com   des   init   ges   

[root@localhost ~]# vim /usr/local/nagios/etc/objects/services.cfg
# 在末尾添加 define service { use generic
-service host_name web01 service_description HTTP URL check_command check_http }
[root@localhost ~]# echo "192.168.123.102 www.abc.com" >> /etc/hosts
[root@localhost ~]# /etc/init.d/nagios checkconfig
[root@localhost ~]# /etc/init.d/nagios reload

技术分享

 

 

 

 

     

Nagios 监控 http 服务

标签:config   fine   reload   name   conf   com   des   init   ges   

原文地址:http://www.cnblogs.com/pzk7788/p/6956980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!