[[email protected] ~]# vim /usr/local/nagios/etc/objects/services.cfg# 在末尾添加 define service { use generic-service host_name web01 service_description HTTP URL check_command check_http }
[[email protected] ~]# echo "192.168.123.102 www.abc.com" >> /etc/hosts
[[email protected] ~]# /etc/init.d/nagios checkconfig [[email protected] ~]# /etc/init.d/nagios reload
时间: 2024-12-10 23:42:44