| 1 | define service { | 
|---|
| 2 |         name    scripts-service | 
|---|
| 3 |         use     generic-service | 
|---|
| 4 |         max_check_attempts      6 | 
|---|
| 5 |         normal_check_interval   2 | 
|---|
| 6 |         retry_check_interval    1 | 
|---|
| 7 |         contact_groups  scripts | 
|---|
| 8 |         notification_interval   240 | 
|---|
| 9 |         notification_period     24x7 | 
|---|
| 10 |         notification_options    w,u,c,r | 
|---|
| 11 |         register 0 | 
|---|
| 12 | } | 
|---|
| 13 |  | 
|---|
| 14 | define service { | 
|---|
| 15 |         use                             scripts-service | 
|---|
| 16 |         hostgroup_name                  scripts-all | 
|---|
| 17 |         service_description             PING | 
|---|
| 18 |         check_command                   check_ping!500.0,30%!3000.0,80% | 
|---|
| 19 |         } | 
|---|
| 20 |  | 
|---|
| 21 |  | 
|---|
| 22 | define service { | 
|---|
| 23 |         use     scripts-service | 
|---|
| 24 |         hostgroup_name  scripts-real | 
|---|
| 25 |         service_description     SSH | 
|---|
| 26 |         check_command   check_ssh | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 | define service { | 
|---|
| 30 |         use     scripts-service | 
|---|
| 31 |         host_name       scripts | 
|---|
| 32 |         service_description     SSH | 
|---|
| 33 |         check_command   check_ssh | 
|---|
| 34 |         notification_period     afs | 
|---|
| 35 |         contact_groups  scripts,pagers | 
|---|
| 36 | } | 
|---|
| 37 |  | 
|---|
| 38 | define service { | 
|---|
| 39 |         use     scripts-service | 
|---|
| 40 |         hostgroup_name  scripts-http | 
|---|
| 41 |         service_description     HTTP | 
|---|
| 42 |         notification_period     afs | 
|---|
| 43 |         check_command   check_http_heartbeat | 
|---|
| 44 |         contact_groups  scripts,pagers | 
|---|
| 45 | } | 
|---|
| 46 |  | 
|---|
| 47 | define service { | 
|---|
| 48 |         use     scripts-service | 
|---|
| 49 |         hostgroup_name          scripts-https | 
|---|
| 50 |         service_description     HTTPS | 
|---|
| 51 |         notification_period     afs | 
|---|
| 52 |         check_command   check_https_cert!14 | 
|---|
| 53 |         contact_groups  scripts,pagers | 
|---|
| 54 | } | 
|---|
| 55 |  | 
|---|
| 56 | define service { | 
|---|
| 57 |         use     scripts-service | 
|---|
| 58 |         hostgroup_name          scripts-https | 
|---|
| 59 |         service_description     HTTPS-CERT | 
|---|
| 60 |         notification_period     afs | 
|---|
| 61 |         check_command   check_https_cert_444!14 | 
|---|
| 62 |         contact_groups  scripts,pagers | 
|---|
| 63 | } | 
|---|
| 64 |  | 
|---|
| 65 | define service { | 
|---|
| 66 |         use     scripts-service | 
|---|
| 67 |         host_name       scripts | 
|---|
| 68 |         service_description     SVN | 
|---|
| 69 |         check_command   check_svn | 
|---|
| 70 |         notification_period     afs | 
|---|
| 71 | } | 
|---|
| 72 |  | 
|---|
| 73 | define service { | 
|---|
| 74 |         use     scripts-service | 
|---|
| 75 |         hostgroup_name  scripts-user | 
|---|
| 76 |         service_description     SVN | 
|---|
| 77 |         check_command   check_svn | 
|---|
| 78 |         notification_period     afs | 
|---|
| 79 | } | 
|---|
| 80 |  | 
|---|
| 81 | define servicedependency{ | 
|---|
| 82 |         host_name                       scripts | 
|---|
| 83 |         service_description             HTTP | 
|---|
| 84 |         dependent_host_name             scripts,scripts-cert,wildcard.scripts | 
|---|
| 85 |         dependent_service_description   HTTPS,HTTPS-CERT | 
|---|
| 86 |         execution_failure_criteria      n | 
|---|
| 87 |         notification_failure_criteria   w,u,c | 
|---|
| 88 |         } | 
|---|
| 89 |  | 
|---|
| 90 | define servicedependency{ | 
|---|
| 91 |         host_name                       scripts | 
|---|
| 92 |         service_description             HTTP | 
|---|
| 93 |         dependent_host_name             scripts-cert | 
|---|
| 94 |         dependent_service_description   HTTP | 
|---|
| 95 |         execution_failure_criteria      n | 
|---|
| 96 |         notification_failure_criteria   w,u,c | 
|---|
| 97 |         } | 
|---|
| 98 |  | 
|---|
| 99 |  | 
|---|
| 100 | define service { | 
|---|
| 101 |         use     scripts-service | 
|---|
| 102 |         hostgroup_name  scripts-mail | 
|---|
| 103 |         service_description     POSTFIX | 
|---|
| 104 |         check_command   check_remote_procs_u!1:128!1:256!postfix | 
|---|
| 105 | } | 
|---|
| 106 |  | 
|---|
| 107 | define service { | 
|---|
| 108 |         use     scripts-service | 
|---|
| 109 |         hostgroup_name  scripts-user | 
|---|
| 110 |         service_description     HTTP | 
|---|
| 111 |         notification_period     afs | 
|---|
| 112 |         check_command   check_http_heartbeat | 
|---|
| 113 |         contact_groups  scripts | 
|---|
| 114 | } | 
|---|
| 115 |  | 
|---|
| 116 | define service { | 
|---|
| 117 |         use     scripts-service | 
|---|
| 118 |         hostgroup_name          scripts-user | 
|---|
| 119 |         service_description     HTTPS | 
|---|
| 120 |         notification_period     afs | 
|---|
| 121 |         check_command   check_https_cert!14 | 
|---|
| 122 |         contact_groups  scripts | 
|---|
| 123 | } | 
|---|
| 124 |  | 
|---|
| 125 | define service { | 
|---|
| 126 |         use     scripts-service | 
|---|
| 127 |         hostgroup_name  scripts-user | 
|---|
| 128 |         service_description     NSCD | 
|---|
| 129 |         check_command   check_remote_procs_u!1:256!1:512!nscd | 
|---|
| 130 | } | 
|---|
| 131 |  | 
|---|
| 132 | define service { | 
|---|
| 133 |         use scripts-service | 
|---|
| 134 |         hostgroup_name scripts-user | 
|---|
| 135 |         service_description     AFS | 
|---|
| 136 |         check_command   check_remote_afs | 
|---|
| 137 | } | 
|---|
| 138 |  | 
|---|
| 139 | define service { | 
|---|
| 140 |         use scripts-service | 
|---|
| 141 |         hostgroup_name scripts-user | 
|---|
| 142 |         service_description     CRON-WORKING | 
|---|
| 143 |         notification_period     afs | 
|---|
| 144 |         check_command   check_remote_cron_working | 
|---|
| 145 | } | 
|---|
| 146 |  | 
|---|
| 147 | define service { | 
|---|
| 148 |     use scripts-service | 
|---|
| 149 |     hostgroup_name scripts-user | 
|---|
| 150 |     service_description LDAP | 
|---|
| 151 |     check_command check_scripts_ldap | 
|---|
| 152 | } | 
|---|
| 153 |  | 
|---|
| 154 | define service { | 
|---|
| 155 |        use     scripts-service | 
|---|
| 156 |        hostgroup_name   scripts-mail | 
|---|
| 157 |        service_description      SMTP | 
|---|
| 158 |        check_command    check_smtp | 
|---|
| 159 | } | 
|---|
| 160 |  | 
|---|
| 161 | define service { | 
|---|
| 162 |        use     scripts-service | 
|---|
| 163 |        host_name        scripts | 
|---|
| 164 |        notification_period      afs | 
|---|
| 165 |        service_description      SMTP | 
|---|
| 166 |        check_command    check_smtp | 
|---|
| 167 | } | 
|---|
| 168 |  | 
|---|
| 169 | define service { | 
|---|
| 170 |         use     scripts-service | 
|---|
| 171 |         hostgroup_name  scripts-cron | 
|---|
| 172 |         service_description     CRON | 
|---|
| 173 |         check_command   check_remote_procs_C!1:!1:!crond | 
|---|
| 174 | } | 
|---|
| 175 |  | 
|---|
| 176 | define service { | 
|---|
| 177 |         use     scripts-service | 
|---|
| 178 |         hostgroup_name  scripts-real | 
|---|
| 179 |         service_description     DISK | 
|---|
| 180 |         check_command   check_remote_disk!10%!5% | 
|---|
| 181 | } | 
|---|
| 182 |  | 
|---|
| 183 | define service { | 
|---|
| 184 |         use     scripts-service | 
|---|
| 185 |         host_name       b-m,o-f | 
|---|
| 186 |         service_description     LOAD | 
|---|
| 187 |         check_command   check_remote_load!16:10:10!20:15:15 | 
|---|
| 188 | } | 
|---|
| 189 |  | 
|---|
| 190 | define service { | 
|---|
| 191 |         use     scripts-service | 
|---|
| 192 |         hostgroup_name  mysql-masters,mysql-slaves | 
|---|
| 193 |         service_description     LOAD | 
|---|
| 194 |         check_command   check_remote_load!16:10:10!20:15:15 | 
|---|
| 195 |         contact_groups  sql | 
|---|
| 196 | } | 
|---|
| 197 |  | 
|---|
| 198 | define service { | 
|---|
| 199 |         use     scripts-service | 
|---|
| 200 |         hostgroup_name  scripts-user | 
|---|
| 201 |         service_description     USERS | 
|---|
| 202 |         check_command   check_remote_users!50!25 | 
|---|
| 203 | } | 
|---|
| 204 |  | 
|---|
| 205 | define service { | 
|---|
| 206 |         use     scripts-service | 
|---|
| 207 |         hostgroup_name  scripts-mysql | 
|---|
| 208 |         service_description     MYSQL | 
|---|
| 209 |         check_command   check_tcp!3306 | 
|---|
| 210 |         contact_groups  sql,scripts,pagers | 
|---|
| 211 | } | 
|---|
| 212 |  | 
|---|
| 213 | define service { | 
|---|
| 214 |         use     scripts-service | 
|---|
| 215 |         hostgroup_name  scripts-mysql | 
|---|
| 216 |         service_description     HTTP | 
|---|
| 217 |         notification_period     afs | 
|---|
| 218 |         check_command   check_http | 
|---|
| 219 |         contact_groups  sql,scripts,pagers | 
|---|
| 220 | } | 
|---|
| 221 |  | 
|---|
| 222 | define service { | 
|---|
| 223 |         use     scripts-service | 
|---|
| 224 |         hostgroup_name  mysql-masters | 
|---|
| 225 |         service_description     MYSQL-M | 
|---|
| 226 |         check_command   check_remote_mysql | 
|---|
| 227 |         contact_groups  sql,scripts | 
|---|
| 228 | } | 
|---|
| 229 |  | 
|---|
| 230 | define service { | 
|---|
| 231 |         use     scripts-service | 
|---|
| 232 |         hostgroup_name  mysql-slaves | 
|---|
| 233 |         service_description     MYSQL-S | 
|---|
| 234 |         check_command   check_remote_mysql_slave | 
|---|
| 235 |         contact_groups  sql,scripts | 
|---|
| 236 | } | 
|---|
| 237 |  | 
|---|
| 238 | define service { | 
|---|
| 239 |         use     scripts-service | 
|---|
| 240 |         host_name       b-m,o-f | 
|---|
| 241 |         service_description     CPU | 
|---|
| 242 |         notifications_enabled   0 | 
|---|
| 243 |         check_command   check_remote_procs_P!4!6!50 | 
|---|
| 244 | } | 
|---|