首页 > 代码库 > Nagios 监控 http 服务

Nagios 监控 http 服务

[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 服务