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