Nagiosプロファイルパラメータの意味


Nagiosの中のパラメータはいつも忘れていて、書いて記録しておきます・・・

  
  
  
  
  1. define contact{   
  2.        name                            generic-contact        # ,   
  3.         service_notification_period     24x7                   # , , “7x24" timeperiods.cfg    
  4.         host_notification_period        24x7                   # , , “7x24" timeperiods.cfg
  5.  
  6.         service_notification_options    w,u,c,r         # “ ”。w warn, ,u unknown, ,c criticle, ,r recover, 。 、 、 。

 

  1.         host_notification_options       d,u,r         # ,d down, ,u unreachable, ,r recovery, 。

 

  1.         service_notification_commands   notify-service-by-email  # , , , , “notify-service-by-email” commands.cfg 。   

 

  1.         host_notification_commands      notify-host-by-email     # , , , , “notify-host-by-email” commands.cfg 。   
  2.         register                        0   
  3.         }   
  4.  define host{    
  5.         name                            generic-host    # , , , 。   
  6.         notifications_enabled           1               
  7.         event_handler_enabled           1                
  8.         flap_detection_enabled          1                
  9.         failure_prediction_enabled      1              
  10.         process_perf_data               1               
  11.         retain_status_information       1              
  12.         retain_nonstatus_information    1                 
  13.         notification_period             24x7           # “ ” , 。   
  14.         register                        0                 
  15.         }   
  16.   
  17. define host{   
  18.         name                            linux-server    #    
  19.         use                             generic-host    #use , generic-host linux-server , nagios , 。   
  20.         check_period                    24x7            # check_period nagios    
  21.         check_interval                  5                #nagios , 5 。   
  22.         retry_interval                  1               # , 。   
  23.         max_check_attempts              10               #nagios , nagios , , , , , , 10 10 。   
  24.         check_command                   check-host-alive  # , “check-host-alive” commands.cfg 。   
  25.         notification_period             workhours      # , , “workhours” timeperiods.cfg , 。   
  26.                                                           
  27.         notification_interval           120            # , ,nagios 。 。 , , 0   
  28.         notification_options            d,u,r          # ,d down, ,u unreachable, ,r recovery, 。   
  29.         contact_groups                  admins         # , “admins” contacts.cfg 。   
  30.         register                        0   
  31.         }   
  32.   
  33. define service{   
  34.         name                            generic-service   #    
  35.         active_checks_enabled           1      
  36.         passive_checks_enabled          1       
  37.         parallelize_check                1       
  38.         obsess_over_service             1       
  39.         check_freshness                0   
  40.         notifications_enabled            1                  
  41.         event_handler_enabled           1                    
  42.         flap_detection_enabled           1                     
  43.         failure_prediction_enabled        1                    
  44.         process_perf_data               1                    
  45.         retain_status_information       1                      
  46.         retain_nonstatus_information    1                         
  47.         is_volatile                     0    
  48.         check_period                    24x7      # check_period nagios 。               
  49.         max_check_attempts              3         #nagios 。            
  50.         normal_check_interval           10       # , ,nagios , 10 。    
  51.         retry_check_interval            2        # , 。             
  52.         contact_groups                  admins   # , 。               
  53.         notification_options            w,u,c,r  # “ ”。w warn, ,u unknown, ,c criticle, ,r recover, 。 、 、 。   
  54.         notification_interval           60       # , ,nagios 。 。 , , 0。   
  55.         notification_period             24x7     # “ ” , 。                
  56.          register                        0                        
  57.         }   

 
転入先http://www.cnblogs.com/hbycool/articles/2459304.html