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