-
Notifications
You must be signed in to change notification settings - Fork 91
/
MySQL_Health.cfg
223 lines (191 loc) · 7.4 KB
/
MySQL_Health.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
###############################################################################
#
# HOST DEFINITION
#
###############################################################################
define host {
use linux-techarkit
host_name linuxserver
alias linuxserver
address 127.0.0.1
}
###############################################################################
#
# SERVICE DEFINITIONS check_mysql_health parameters config file
#
###############################################################################
define service {
use service-techarkit ; Name of service template to use
host_name linuxserver
service_description PING
check_command check_ping!100.0,20%!500.0,60%
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service Uptime
check_command check_mysql_health!root!mysql!index-usage
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service connection-time
check_command check_mysql_health!root!mysql!connection-time
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service uptime
check_command check_mysql_health!root!mysql!uptime
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service threads-connected
check_command check_mysql_health!root!mysql!threads-connected
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service threadcache-hitrate
check_command check_mysql_health!root!mysql!threadcache-hitrate
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service threads-created
check_command check_mysql_health!root!mysql!threads-created
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service threads-running
check_command check_mysql_health!root!mysql!threads-running
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service threads-cached
check_command check_mysql_health!root!mysql!threads-cached
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service connects-aborted
check_command check_mysql_health!root!mysql!connects-aborted
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service clients-aborted
check_command check_mysql_health!root!mysql!clients-aborted
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service slave-lag
check_command check_mysql_health!root!mysql!slave-lag
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service slave-io-running
check_command check_mysql_health!root!mysql!slave-io-running
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service slave-sql-running
check_command check_mysql_health!root!mysql!slave-sql-running
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service qcache-hitrate
check_command check_mysql_health!root!mysql!qcache-hitrate
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service qcache-lowmem-prunes
check_command check_mysql_health!root!mysql!qcache-lowmem-prunes
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service keycache-hitrate
check_command check_mysql_health!root!mysql!keycache-hitrate
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service bufferpool-hitrate
check_command check_mysql_health!root!mysql!bufferpool-hitrate
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service bufferpool-wait-free
check_command check_mysql_health!root!mysql!bufferpool-wait-free
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service log-waits
check_command check_mysql_health!root!mysql!log-waits
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service tablecache-hitrate
check_command check_mysql_health!root!mysql!tablecache-hitrate
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service table-lock-contention
check_command check_mysql_health!root!mysql!table-lock-contention
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service index-usage
check_command check_mysql_health!root!mysql!index-usage
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service tmp-disk-tables
check_command check_mysql_health!root!mysql!tmp-disk-tables
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service table-fragmentation
check_command check_mysql_health!root!mysql!table-fragmentation
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service open-files
check_command check_mysql_health!root!mysql!open-files
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service slow-queries
check_command check_mysql_health!root!mysql!slow-queries
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service long-running-procs
check_command check_mysql_health!root!mysql!long-running-procs
}
define service {
use service-techarkit
host_name linuxserver
service_description MySQL Service cluster-ndbd-running
check_command check_mysql_health!root!mysql!cluster-ndbd-running
}