| [48] | 1 | define service { | 
|---|
 | 2 |         name    scripts-service | 
|---|
 | 3 |         use     generic-service | 
|---|
| [535] | 4 |         max_check_attempts      6 | 
|---|
| [48] | 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                  all-remote | 
|---|
 | 17 |         service_description             PING | 
|---|
| [709] | 18 |         check_command                   check_ping!500.0,30%!3000.0,80% | 
|---|
| [48] | 19 |         } | 
|---|
 | 20 |  | 
|---|
 | 21 |  | 
|---|
 | 22 | define service { | 
|---|
 | 23 |         use     scripts-service | 
|---|
| [705] | 24 |         hostgroup_name  real-servers | 
|---|
| [48] | 25 |         service_description     SSH | 
|---|
 | 26 |         check_command   check_ssh | 
|---|
 | 27 | } | 
|---|
 | 28 |  | 
|---|
 | 29 | define service { | 
|---|
 | 30 |         use     scripts-service | 
|---|
| [429] | 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 | 
|---|
| [48] | 40 |         hostgroup_name  scripts-http | 
|---|
 | 41 |         service_description     HTTP | 
|---|
| [429] | 42 |         notification_period     afs | 
|---|
 | 43 |         check_command   check_http_heartbeat | 
|---|
 | 44 |         contact_groups  scripts,pagers | 
|---|
| [48] | 45 | } | 
|---|
 | 46 |  | 
|---|
 | 47 | define service { | 
|---|
 | 48 |         use     scripts-service | 
|---|
| [670] | 49 |         hostgroup_name          scripts-https | 
|---|
| [48] | 50 |         service_description     HTTPS | 
|---|
| [429] | 51 |         notification_period     afs | 
|---|
 | 52 |         check_command   check_https_cert!14 | 
|---|
 | 53 |         contact_groups  scripts,pagers | 
|---|
| [48] | 54 | } | 
|---|
 | 55 |  | 
|---|
 | 56 | define service { | 
|---|
 | 57 |         use     scripts-service | 
|---|
 | 58 |         hostgroup_name  scripts-mail | 
|---|
 | 59 |         service_description     POSTFIX | 
|---|
| [535] | 60 |         check_command   check_remote_procs_u!1:128!1:256!postfix | 
|---|
| [48] | 61 | } | 
|---|
 | 62 |  | 
|---|
 | 63 | define service { | 
|---|
| [709] | 64 |         use     scripts-service | 
|---|
 | 65 |         hostgroup_name  scripts-user | 
|---|
 | 66 |         service_description     NSCD | 
|---|
 | 67 |         check_command   check_remote_procs_u!1:256!1:512!nscd | 
|---|
 | 68 | } | 
|---|
 | 69 |  | 
|---|
 | 70 | define service { | 
|---|
| [429] | 71 |        use     scripts-service | 
|---|
 | 72 |        hostgroup_name   scripts-mail | 
|---|
 | 73 |        service_description      SMTP | 
|---|
 | 74 |        check_command    check_smtp | 
|---|
 | 75 | } | 
|---|
 | 76 |  | 
|---|
 | 77 | define service { | 
|---|
 | 78 |        use     scripts-service | 
|---|
 | 79 |        host_name        scripts | 
|---|
| [535] | 80 |        notification_period      afs | 
|---|
| [429] | 81 |        service_description      SMTP | 
|---|
 | 82 |        check_command    check_smtp | 
|---|
 | 83 | } | 
|---|
 | 84 |  | 
|---|
 | 85 | define service { | 
|---|
| [48] | 86 |         use     scripts-service | 
|---|
 | 87 |         hostgroup_name  scripts-cron | 
|---|
 | 88 |         service_description     CRON | 
|---|
 | 89 |         check_command   check_remote_procs_C!1:!1:!crond | 
|---|
 | 90 | } | 
|---|
 | 91 |  | 
|---|
 | 92 | define service { | 
|---|
 | 93 |         use     scripts-service | 
|---|
| [705] | 94 |         hostgroup_name  real-servers | 
|---|
| [48] | 95 |         service_description     DISK | 
|---|
 | 96 |         check_command   check_remote_disk!10%!5% | 
|---|
 | 97 | } | 
|---|
 | 98 |  | 
|---|
 | 99 | define service { | 
|---|
 | 100 |         use     scripts-service | 
|---|
 | 101 |         host_name       b-m,o-f | 
|---|
 | 102 |         service_description     LOAD | 
|---|
| [678] | 103 |         check_command   check_remote_load!16:10:10!20:15:15 | 
|---|
| [48] | 104 | } | 
|---|
 | 105 |  | 
|---|
 | 106 | define service { | 
|---|
 | 107 |         use     scripts-service | 
|---|
 | 108 |         hostgroup_name  mysql-masters,mysql-slaves | 
|---|
 | 109 |         service_description     LOAD | 
|---|
| [535] | 110 |         check_command   check_remote_load!13:5:5!15:7:7 | 
|---|
| [735] | 111 |         contact_groups  sql | 
|---|
| [48] | 112 | } | 
|---|
 | 113 |  | 
|---|
 | 114 | define service { | 
|---|
 | 115 |         use     scripts-service | 
|---|
 | 116 |         hostgroup_name  scripts-user | 
|---|
 | 117 |         service_description     USERS | 
|---|
 | 118 |         check_command   check_remote_users!50!25 | 
|---|
 | 119 | } | 
|---|
 | 120 |  | 
|---|
 | 121 | define service { | 
|---|
 | 122 |         use     scripts-service | 
|---|
 | 123 |         hostgroup_name  scripts-mysql | 
|---|
 | 124 |         service_description     MYSQL | 
|---|
 | 125 |         check_command   check_tcp!3306 | 
|---|
| [735] | 126 |         contact_groups  sql,scripts,pagers | 
|---|
| [48] | 127 | } | 
|---|
 | 128 |  | 
|---|
 | 129 | define service { | 
|---|
 | 130 |         use     scripts-service | 
|---|
| [429] | 131 |         hostgroup_name  scripts-mysql | 
|---|
 | 132 |         service_description     HTTP | 
|---|
 | 133 |         notification_period     afs | 
|---|
 | 134 |         check_command   check_http | 
|---|
| [735] | 135 |         contact_groups  sql,scripts,pagers | 
|---|
| [429] | 136 | } | 
|---|
 | 137 |  | 
|---|
 | 138 | define service { | 
|---|
 | 139 |         use     scripts-service | 
|---|
| [48] | 140 |         hostgroup_name  mysql-masters | 
|---|
 | 141 |         service_description     MYSQL-M | 
|---|
 | 142 |         check_command   check_remote_mysql | 
|---|
| [735] | 143 |         contact_groups  sql | 
|---|
| [48] | 144 | } | 
|---|
 | 145 |  | 
|---|
 | 146 | define service { | 
|---|
 | 147 |         use     scripts-service | 
|---|
 | 148 |         hostgroup_name  mysql-slaves | 
|---|
 | 149 |         service_description     MYSQL-S | 
|---|
 | 150 |         check_command   check_remote_mysql_slave | 
|---|
| [735] | 151 |         contact_groups  sql | 
|---|
| [48] | 152 | } | 
|---|
 | 153 |  | 
|---|
 | 154 | define service { | 
|---|
 | 155 |         use     scripts-service | 
|---|
 | 156 |         host_name       b-m,o-f | 
|---|
 | 157 |         service_description     CPU | 
|---|
 | 158 |         notifications_enabled   0 | 
|---|
| [670] | 159 |         check_command   check_remote_procs_P!4!6!50 | 
|---|
| [48] | 160 | } | 
|---|