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 | hostgroup_name scripts-http |
---|
32 | service_description HTTP |
---|
33 | check_command check_http |
---|
34 | } |
---|
35 | |
---|
36 | define service { |
---|
37 | use scripts-service |
---|
38 | hostgroup_name scripts-https |
---|
39 | service_description HTTPS |
---|
40 | check_command check_tcp!443 |
---|
41 | } |
---|
42 | |
---|
43 | define service { |
---|
44 | use scripts-service |
---|
45 | hostgroup_name scripts-mail |
---|
46 | service_description POSTFIX |
---|
47 | check_command check_remote_procs_u!2:50!2:100!postfix |
---|
48 | } |
---|
49 | |
---|
50 | define service { |
---|
51 | use scripts-service |
---|
52 | hostgroup_name scripts-cron |
---|
53 | service_description CRON |
---|
54 | check_command check_remote_procs_C!1:!1:!crond |
---|
55 | } |
---|
56 | |
---|
57 | #define service { |
---|
58 | # use scripts-service |
---|
59 | # hostgroup_name all-remote |
---|
60 | # service_description DISK: / |
---|
61 | # check_command check_remote_disk!10%!5%!/ |
---|
62 | #} |
---|
63 | |
---|
64 | #define service { |
---|
65 | # use scripts-service |
---|
66 | # hostgroup_name mysql-masters,mysql-slaves |
---|
67 | # service_description DISK: /srv |
---|
68 | # check_command check_remote_disk!10%!5%!/srv |
---|
69 | #} |
---|
70 | |
---|
71 | define service { |
---|
72 | use scripts-service |
---|
73 | hostgroup_name all-remote |
---|
74 | service_description DISK |
---|
75 | check_command check_remote_disk!10%!5% |
---|
76 | } |
---|
77 | |
---|
78 | define service { |
---|
79 | use scripts-service |
---|
80 | host_name b-m,o-f |
---|
81 | service_description LOAD |
---|
82 | check_command check_remote_load!7:4:2!12:8:2 |
---|
83 | } |
---|
84 | |
---|
85 | define service { |
---|
86 | use scripts-service |
---|
87 | hostgroup_name mysql-masters,mysql-slaves |
---|
88 | service_description LOAD |
---|
89 | check_command check_remote_load!5:5:2!10:10:2 |
---|
90 | } |
---|
91 | |
---|
92 | define service { |
---|
93 | use scripts-service |
---|
94 | hostgroup_name scripts-user |
---|
95 | service_description USERS |
---|
96 | check_command check_remote_users!50!25 |
---|
97 | } |
---|
98 | |
---|
99 | define service { |
---|
100 | use scripts-service |
---|
101 | hostgroup_name scripts-mysql |
---|
102 | service_description MYSQL |
---|
103 | check_command check_tcp!3306 |
---|
104 | } |
---|
105 | |
---|
106 | define service { |
---|
107 | use scripts-service |
---|
108 | hostgroup_name mysql-masters |
---|
109 | service_description MYSQL-M |
---|
110 | check_command check_remote_mysql |
---|
111 | } |
---|
112 | |
---|
113 | define service { |
---|
114 | use scripts-service |
---|
115 | hostgroup_name mysql-slaves |
---|
116 | service_description MYSQL-S |
---|
117 | check_command check_remote_mysql_slave |
---|
118 | } |
---|
119 | |
---|
120 | define service { |
---|
121 | use scripts-service |
---|
122 | host_name b-m,o-f |
---|
123 | service_description CPU |
---|
124 | notifications_enabled 0 |
---|
125 | check_command check_remote_procs_P!1!1!25 |
---|
126 | |
---|
127 | } |
---|