Nagiosプロファイルパラメータの意味
Nagiosの中のパラメータはいつも忘れていて、書いて記録しておきます・・・
転入先http://www.cnblogs.com/hbycool/articles/2459304.html
- define contact{
- name generic-contact # ,
- service_notification_period 24x7 # , , “7x24" timeperiods.cfg
- host_notification_period 24x7 # , , “7x24" timeperiods.cfg
-
- service_notification_options w,u,c,r # “ ”。w warn, ,u unknown, ,c criticle, ,r recover, 。 、 、 。
- host_notification_options d,u,r # ,d down, ,u unreachable, ,r recovery, 。
- service_notification_commands notify-service-by-email # , , , , “notify-service-by-email” commands.cfg 。
- host_notification_commands notify-host-by-email # , , , , “notify-host-by-email” commands.cfg 。
- register 0
- }
- define host{
- name generic-host # , , , 。
- notifications_enabled 1
- event_handler_enabled 1
- flap_detection_enabled 1
- failure_prediction_enabled 1
- process_perf_data 1
- retain_status_information 1
- retain_nonstatus_information 1
- notification_period 24x7 # “ ” , 。
- register 0
- }
-
- define host{
- name linux-server #
- use generic-host #use , generic-host linux-server , nagios , 。
- check_period 24x7 # check_period nagios
- check_interval 5 #nagios , 5 。
- retry_interval 1 # , 。
- max_check_attempts 10 #nagios , nagios , , , , , , 10 10 。
- check_command check-host-alive # , “check-host-alive” commands.cfg 。
- notification_period workhours # , , “workhours” timeperiods.cfg , 。
-
- notification_interval 120 # , ,nagios 。 。 , , 0
- notification_options d,u,r # ,d down, ,u unreachable, ,r recovery, 。
- contact_groups admins # , “admins” contacts.cfg 。
- register 0
- }
-
- define service{
- name generic-service #
- active_checks_enabled 1
- passive_checks_enabled 1
- parallelize_check 1
- obsess_over_service 1
- check_freshness 0
- notifications_enabled 1
- event_handler_enabled 1
- flap_detection_enabled 1
- failure_prediction_enabled 1
- process_perf_data 1
- retain_status_information 1
- retain_nonstatus_information 1
- is_volatile 0
- check_period 24x7 # check_period nagios 。
- max_check_attempts 3 #nagios 。
- normal_check_interval 10 # , ,nagios , 10 。
- retry_check_interval 2 # , 。
- contact_groups admins # , 。
- notification_options w,u,c,r # “ ”。w warn, ,u unknown, ,c criticle, ,r recover, 。 、 、 。
- notification_interval 60 # , ,nagios 。 。 , , 0。
- notification_period 24x7 # “ ” , 。
- register 0
- }
転入先http://www.cnblogs.com/hbycool/articles/2459304.html