| [48] | 1 | define timeperiod{ | 
|---|
 | 2 |         timeperiod_name 24x7 | 
|---|
 | 3 |         alias           24 Hours A Day, 7 Days A Week | 
|---|
 | 4 |         sunday          00:00-24:00 | 
|---|
 | 5 |         monday          00:00-24:00 | 
|---|
 | 6 |         tuesday         00:00-24:00 | 
|---|
 | 7 |         wednesday       00:00-24:00 | 
|---|
 | 8 |         thursday        00:00-24:00 | 
|---|
 | 9 |         friday          00:00-24:00 | 
|---|
 | 10 |         saturday        00:00-24:00 | 
|---|
 | 11 |         } | 
|---|
 | 12 |  | 
|---|
 | 13 | define contact{ | 
|---|
 | 14 |         contact_name                    nagios-admin | 
|---|
 | 15 |         alias                           Nagios Admin | 
|---|
 | 16 |         service_notification_period     24x7 | 
|---|
 | 17 |         host_notification_period        24x7 | 
|---|
 | 18 |         service_notification_options    n | 
|---|
 | 19 |         host_notification_options       n | 
|---|
 | 20 |         service_notification_commands   notify-by-email | 
|---|
 | 21 |         host_notification_commands      host-notify-by-email | 
|---|
 | 22 |         email                           nagios-admin@localhost | 
|---|
 | 23 | } | 
|---|
 | 24 |  | 
|---|
 | 25 | define contactgroup{ | 
|---|
 | 26 |         contactgroup_name       admins | 
|---|
 | 27 |         alias                   Administrators | 
|---|
 | 28 |         members                 nagios-admin | 
|---|
 | 29 |         } | 
|---|
 | 30 |  | 
|---|
 | 31 | define host{ | 
|---|
 | 32 |         name                            generic-host    ; The name of this host template | 
|---|
 | 33 |         notifications_enabled           1       ; Host notifications are enabled | 
|---|
 | 34 |         event_handler_enabled           1       ; Host event handler is enabled | 
|---|
 | 35 |         flap_detection_enabled          1       ; Flap detection is enabled | 
|---|
 | 36 |         failure_prediction_enabled      1       ; Failure prediction is enabled | 
|---|
 | 37 |         process_perf_data               1       ; Process performance data | 
|---|
 | 38 |         retain_status_information       1       ; Retain status information across program restarts | 
|---|
 | 39 |         retain_nonstatus_information    1       ; Retain non-status information across program restarts | 
|---|
 | 40 |         register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! | 
|---|
 | 41 |         } | 
|---|
 | 42 |  | 
|---|
 | 43 | define host { | 
|---|
 | 44 |         use                     generic-host            ; Name of host template to use | 
|---|
 | 45 |         host_name               localhost | 
|---|
 | 46 |         alias                   localhost | 
|---|
 | 47 |         address                 127.0.0.1 | 
|---|
 | 48 |         check_command           check-host-alive | 
|---|
 | 49 |         max_check_attempts      10 | 
|---|
 | 50 |         check_period            24x7 | 
|---|
 | 51 |         notification_interval   240 | 
|---|
 | 52 |         notification_period     24x7 | 
|---|
 | 53 |         contact_groups  admins | 
|---|
 | 54 |         } | 
|---|
 | 55 | #        notification_options    n | 
|---|
 | 56 |  | 
|---|
 | 57 | define hostgroup { | 
|---|
 | 58 |         hostgroup_name  all | 
|---|
 | 59 |         alias   All Servers | 
|---|
 | 60 |         members * | 
|---|
 | 61 |         } | 
|---|
 | 62 |  | 
|---|
 | 63 | define service{ | 
|---|
 | 64 |         name                            generic-service ; The 'name' of this service template | 
|---|
 | 65 |         active_checks_enabled           1       ; Active service checks are enabled | 
|---|
 | 66 |         passive_checks_enabled          1       ; Passive service checks are enabled/accepted | 
|---|
 | 67 |         parallelize_check               1       ; Active service checks should be parallelized (disabling this can lead to major performance problems) | 
|---|
 | 68 |         obsess_over_service             1       ; We should obsess over this service (if necessary) | 
|---|
 | 69 |         check_freshness                 0       ; Default is to NOT check service 'freshness' | 
|---|
 | 70 |         notifications_enabled           1       ; Service notifications are enabled | 
|---|
 | 71 |         event_handler_enabled           1       ; Service event handler is enabled | 
|---|
 | 72 |         flap_detection_enabled          1       ; Flap detection is enabled | 
|---|
 | 73 |         failure_prediction_enabled      1       ; Failure prediction is enabled | 
|---|
 | 74 |         process_perf_data               1       ; Process performance data | 
|---|
 | 75 |         retain_status_information       1       ; Retain status information across program restarts | 
|---|
 | 76 |         retain_nonstatus_information    1       ; Retain non-status information across program restarts | 
|---|
 | 77 |         register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! | 
|---|
 | 78 |         check_period                    24x7 | 
|---|
 | 79 |         max_check_attempts              4 | 
|---|
 | 80 |         normal_check_interval           5 | 
|---|
 | 81 |         retry_check_interval            1 | 
|---|
 | 82 |         contact_groups                  admins | 
|---|
 | 83 |         notification_interval           1920 | 
|---|
 | 84 |         notification_period             24x7 | 
|---|
 | 85 |         is_volatile                     0 | 
|---|
 | 86 | } | 
|---|
 | 87 | #       notification_options            n | 
|---|
 | 88 |  | 
|---|
 | 89 | define service { | 
|---|
 | 90 |         use                             generic-service | 
|---|
 | 91 |         host_name                       localhost | 
|---|
 | 92 |         service_description             PING | 
|---|
 | 93 |         check_command                   check_ping!100.0,20%!500.0,60% | 
|---|
 | 94 |         } | 
|---|
 | 95 |  | 
|---|
 | 96 | define service { | 
|---|
 | 97 |         use                             generic-service | 
|---|
 | 98 |         host_name                       localhost | 
|---|
 | 99 |         service_description             DISK: / | 
|---|
 | 100 |         check_command                   check_local_disk!20%!10%!/ | 
|---|
 | 101 | } | 
|---|
 | 102 |  | 
|---|
 | 103 | define service { | 
|---|
 | 104 |         use                             generic-service | 
|---|
 | 105 |         host_name                       localhost | 
|---|
 | 106 |         service_description             USERS | 
|---|
 | 107 |         check_command                   check_local_users!20!50 | 
|---|
 | 108 | } | 
|---|
 | 109 |  | 
|---|
 | 110 | define service{ | 
|---|
 | 111 |         use                             generic-service | 
|---|
 | 112 |         host_name                       localhost | 
|---|
 | 113 |         service_description             PROCS | 
|---|
 | 114 |         check_command                   check_local_procs!250!400 | 
|---|
 | 115 | } | 
|---|
 | 116 |  | 
|---|
 | 117 | define service{ | 
|---|
 | 118 |         use                             generic-service | 
|---|
 | 119 |         host_name                       localhost | 
|---|
 | 120 |         service_description             LOAD | 
|---|
 | 121 |         check_command                   check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 | 
|---|
 | 122 | } | 
|---|