内容摘要:复制hosts.cfg definehost{ host_nameWWW-Server aliasWWW-Server

复制 hosts.cfg define host{ host_name WWW-Server alias WWW-Server address 193.1.16.100 check_command check-host-alive max_check_attempts 5 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options d,限制
u,r notifications_enabled 1 contact_groups chengnan } Services.cfg define service{ host_name WWW-Server service_description Check_HTTP check_command check_http max_check_attempts 10 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 5 notification_period 24x7 notification_options w,u,c,r contact_groups admin } define service{ host_name WWW-Server service_description Check_Jetty check_command check_tcp!8080 max_check_attempts 10 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 5 notification_period 24x7 notification_options w,u,c,r contact_groups admin } Contacts.cfg define contact{ contact_name chengnan alias chengnan service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email chengnan@139.com //手机邮箱 } define contactgroup{ contactgroup_name chengnan alias Nagios Administrators members chengnan } 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.87.88.89.90.91.92.93.94.95.96.97.98.99.100.101.102.103.104.105.106.107.108.109.110.111.112.113.114.115.116.