| 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                  all-remote | 
|---|
| 17 |         service_description             PING | 
|---|
| 18 |         check_command                   check_ping!100.0,20%!500.0,60% | 
|---|
| 19 |         } | 
|---|
| 20 |  | 
|---|
| 21 |  | 
|---|
| 22 | define service { | 
|---|
| 23 |         use     scripts-service | 
|---|
| 24 |         hostgroup_name  all-remote | 
|---|
| 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-mail | 
|---|
| 59 |         service_description     POSTFIX | 
|---|
| 60 |         check_command   check_remote_procs_u!1:128!1:256!postfix | 
|---|
| 61 | } | 
|---|
| 62 |  | 
|---|
| 63 | define service { | 
|---|
| 64 |        use     scripts-service | 
|---|
| 65 |        hostgroup_name   scripts-mail | 
|---|
| 66 |        service_description      SMTP | 
|---|
| 67 |        check_command    check_smtp | 
|---|
| 68 | } | 
|---|
| 69 |  | 
|---|
| 70 | define service { | 
|---|
| 71 |        use     scripts-service | 
|---|
| 72 |        host_name        scripts | 
|---|
| 73 |        notification_period      afs | 
|---|
| 74 |        service_description      SMTP | 
|---|
| 75 |        check_command    check_smtp | 
|---|
| 76 | } | 
|---|
| 77 |  | 
|---|
| 78 | define service { | 
|---|
| 79 |         use     scripts-service | 
|---|
| 80 |         hostgroup_name  scripts-cron | 
|---|
| 81 |         service_description     CRON | 
|---|
| 82 |         check_command   check_remote_procs_C!1:!1:!crond | 
|---|
| 83 | } | 
|---|
| 84 |  | 
|---|
| 85 | #define service { | 
|---|
| 86 | #       use     scripts-service | 
|---|
| 87 | #       hostgroup_name  all-remote | 
|---|
| 88 | #       service_description     DISK: / | 
|---|
| 89 | #       check_command   check_remote_disk!10%!5%!/ | 
|---|
| 90 | #} | 
|---|
| 91 |  | 
|---|
| 92 | #define service { | 
|---|
| 93 | #       use     scripts-service | 
|---|
| 94 | #       hostgroup_name  mysql-masters,mysql-slaves | 
|---|
| 95 | #       service_description     DISK: /srv | 
|---|
| 96 | #       check_command   check_remote_disk!10%!5%!/srv | 
|---|
| 97 | #} | 
|---|
| 98 |  | 
|---|
| 99 | define service { | 
|---|
| 100 |         use     scripts-service | 
|---|
| 101 |         hostgroup_name  all-remote | 
|---|
| 102 |         service_description     DISK | 
|---|
| 103 |         check_command   check_remote_disk!10%!5% | 
|---|
| 104 | } | 
|---|
| 105 |  | 
|---|
| 106 | define service { | 
|---|
| 107 |         use     scripts-service | 
|---|
| 108 |         host_name       b-m,o-f | 
|---|
| 109 |         service_description     LOAD | 
|---|
| 110 |         check_command   check_remote_load!7:4:2!12:8:2 | 
|---|
| 111 | } | 
|---|
| 112 |  | 
|---|
| 113 | define service { | 
|---|
| 114 |         use     scripts-service | 
|---|
| 115 |         hostgroup_name  mysql-masters,mysql-slaves | 
|---|
| 116 |         service_description     LOAD | 
|---|
| 117 |         check_command   check_remote_load!13:5:5!15:7:7 | 
|---|
| 118 | } | 
|---|
| 119 |  | 
|---|
| 120 | define service { | 
|---|
| 121 |         use     scripts-service | 
|---|
| 122 |         hostgroup_name  scripts-user | 
|---|
| 123 |         service_description     USERS | 
|---|
| 124 |         check_command   check_remote_users!50!25 | 
|---|
| 125 | } | 
|---|
| 126 |  | 
|---|
| 127 | define service { | 
|---|
| 128 |         use     scripts-service | 
|---|
| 129 |         hostgroup_name  scripts-mysql | 
|---|
| 130 |         service_description     MYSQL | 
|---|
| 131 |         check_command   check_tcp!3306 | 
|---|
| 132 |         contact_groups  scripts,pagers | 
|---|
| 133 | } | 
|---|
| 134 |  | 
|---|
| 135 | define service { | 
|---|
| 136 |         use     scripts-service | 
|---|
| 137 |         hostgroup_name  scripts-mysql | 
|---|
| 138 |         service_description     HTTP | 
|---|
| 139 |         notification_period     afs | 
|---|
| 140 |         check_command   check_http | 
|---|
| 141 |         contact_groups  scripts,pagers | 
|---|
| 142 | } | 
|---|
| 143 |  | 
|---|
| 144 | define service { | 
|---|
| 145 |         use     scripts-service | 
|---|
| 146 |         hostgroup_name  mysql-masters | 
|---|
| 147 |         service_description     MYSQL-M | 
|---|
| 148 |         check_command   check_remote_mysql | 
|---|
| 149 | } | 
|---|
| 150 |  | 
|---|
| 151 | define service { | 
|---|
| 152 |         use     scripts-service | 
|---|
| 153 |         hostgroup_name  mysql-slaves | 
|---|
| 154 |         service_description     MYSQL-S | 
|---|
| 155 |         check_command   check_remote_mysql_slave | 
|---|
| 156 | } | 
|---|
| 157 |  | 
|---|
| 158 | define service { | 
|---|
| 159 |         use     scripts-service | 
|---|
| 160 |         host_name       b-m,o-f | 
|---|
| 161 |         service_description     CPU | 
|---|
| 162 |         notifications_enabled   0 | 
|---|
| 163 |         check_command   check_remote_procs_P!1!1!25 | 
|---|
| 164 |          | 
|---|
| 165 | } | 
|---|