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