标签:code desc vim web nbsp cts fine eric blog
[root@localhost ~]# vim /usr/local/nagios/etc/objects/services.cfg define service { use generic-service # 添加对22端口的监控 host_name web01 service_description ssh port check_command check_tcp!22 } define service { use generic-service # 添加对80端口的监控 host_name web01 service_description http port check_command check_tcp!80 }
[root@localhost ~]# /etc/init.d/nagios checkconfig
[root@localhost ~]# /etc/init.d/nagios reload
标签:code desc vim web nbsp cts fine eric blog
原文地址:http://www.cnblogs.com/pzk7788/p/6957071.html