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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
|
MYSQL-STAT-MIB DEFINITIONS ::= BEGIN
-- *************************************************************
--
-- MySQL statistics MIB
--
-- *************************************************************
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises, Counter64,
Counter32, Integer32, Gauge32
FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString, TruthValue, TimeStamp
FROM SNMPv2-TC
OBJECT-GROUP, MODULE-COMPLIANCE
FROM SNMPv2-CONF
InetAddress, InetAddressType, InetPortNumber
FROM INET-ADDRESS-MIB;
mysql MODULE-IDENTITY
LAST-UPDATED "201606090926Z"
ORGANIZATION "Gray Software"
CONTACT-INFO "Sergey Poznyakoff <gray@gnu.org>"
DESCRIPTION
"This MIB module defines objects for MySQL statistics."
REVISION "201606090926Z"
DESCRIPTION
"First revision."
::= { enterprises 9163 102 }
replication OBJECT IDENTIFIER ::= { mysql 1 }
processList OBJECT IDENTIFIER ::= { mysql 2 }
--
-- Replication Slave Status
--
replSlaveStatusTable OBJECT-TYPE
SYNTAX SEQUENCE OF ReplSlaveStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table of replication status. On replication slave,
it contains a single row, describing the current
status."
::= { replication 1 }
replSlaveStatusEntry OBJECT-TYPE
SYNTAX ReplSlaveStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry describing slave status."
INDEX { replSlaveIndex }
::= { replSlaveStatusTable 1 }
ReplSlaveStatusEntry ::= SEQUENCE {
replSlaveIndex Integer32,
replSlaveIOState ThreadStatusString,
replMasterLogFile DisplayString,
replReadMasterLogPos Counter32,
replRelayLogFile DisplayString,
replRelayLogPos Counter32,
replRelayMasterLogFile DisplayString,
replSlaveIORunning SlaveRunningState,
replSlaveSQLRunning TruthValue,
replLastSQLErrno Integer32,
replLastSQLError SQLErrorString,
replLastIOErrno Integer32,
replLastIOError SQLErrorString,
replExecMasterLogPos Counter32,
replRelayLogSpace Gauge32,
replSecondsBehindMaster TimeStamp,
replMasterHost DisplayString,
replMasterUser DisplayString,
replMasterPort Integer32,
replConnectRetry TimeStamp,
replReplicateDoDB DisplayString,
replReplicateIgnoreDB DisplayString,
replReplicateDoTable DisplayString,
replReplicateIgnoreTable DisplayString,
replReplicateWildDoTable DisplayString,
replReplicateWildIgnoreTable DisplayString,
replSkipCounter Gauge32,
replUntilCondition DisplayString,
replUntilLogFile DisplayString,
replUntilLogPos DisplayString,
replMasterServerId Integer32,
replMasterSSLAllowed DisplayString,
replMasterSSLCAFile DisplayString,
replMasterSSLCAPath DisplayString,
replMasterSSLCert DisplayString,
replMasterSSLCipher DisplayString,
replMasterSSLKey DisplayString,
replMasterSSLVerifyServerCert TruthValue
}
replSlaveIndex OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A number uniquely identifying slave status row."
::= { replSlaveStatusEntry 1 }
ThreadStatusString ::= TEXTUAL-CONVENTION
DISPLAY-HINT "128t"
STATUS current
DESCRIPTION "A string representing thread status."
SYNTAX OCTET STRING (SIZE (0..128))
replSlaveIOState OBJECT-TYPE
SYNTAX ThreadStatusString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Describes what the thread is doing: trying to connect
to the master, waiting for events from the master,
reconnecting to the master, etc."
::= { replSlaveStatusEntry 2 }
replMasterLogFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the master binary log file from which the
I/O thread is currently reading."
::= { replSlaveStatusEntry 3 }
replReadMasterLogPos OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The position in the current master binary log file up
to which the I/O thread has read."
::= { replSlaveStatusEntry 4 }
replRelayLogFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the relay log file from which the SQL
thread is currently reading and executing."
::= { replSlaveStatusEntry 5 }
replRelayLogPos OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The position in the current relay log file up to
which the SQL thread has read and executed."
::= { replSlaveStatusEntry 6 }
replRelayMasterLogFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the master binary log file containing the
most recent event executed by the SQL thread."
::= { replSlaveStatusEntry 7 }
SlaveRunningState ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Represents slave I/O thread state."
SYNTAX INTEGER { yes(1), no(2), connecting(3) }
replSlaveIORunning OBJECT-TYPE
SYNTAX SlaveRunningState
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Whether the I/O thread is started and has connected
successfully to the master."
::= { replSlaveStatusEntry 8 }
replSlaveSQLRunning OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Whether the SQL thread is started."
::= { replSlaveStatusEntry 9 }
replLastSQLErrno OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The error code of the last error that caused the SQL
thread to stop."
::= { replSlaveStatusEntry 10 }
SQLErrorString ::= TEXTUAL-CONVENTION
DISPLAY-HINT "1024t"
STATUS current
DESCRIPTION "A string representing SQL error."
SYNTAX OCTET STRING (SIZE (0..1024))
replLastSQLError OBJECT-TYPE
SYNTAX SQLErrorString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The error message describing the last error that
caused the SQL thread to stop."
::= { replSlaveStatusEntry 11 }
replLastIOErrno OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The error code of the last error that caused the IO
thread to stop."
::= { replSlaveStatusEntry 12 }
replLastIOError OBJECT-TYPE
SYNTAX SQLErrorString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The error message describing the last error that
caused the IO thread to stop."
::= { replSlaveStatusEntry 13 }
replExecMasterLogPos OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The position in the current master binary log file to
which the SQL thread has read and executed, marking
the start of the next transaction or event to be
processed."
::= { replSlaveStatusEntry 14 }
replRelayLogSpace OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The total combined size of all existing relay log
files."
::= { replSlaveStatusEntry 15 }
replSecondsBehindMaster OBJECT-TYPE
SYNTAX TimeStamp
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This field is an indication of how `late' the slave
is. Basically, it reflects the time difference in
seconds between the slave SQL thread and the slave
I/O thread."
::= { replSlaveStatusEntry 16 }
replMasterHost OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The master host that the slave is connected to."
::= { replSlaveStatusEntry 17 }
replMasterUser OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The user name of the account used to connect to the
master."
::= { replSlaveStatusEntry 18 }
replMasterPort OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The port used to connect to the master."
::= { replSlaveStatusEntry 19 }
replConnectRetry OBJECT-TYPE
SYNTAX TimeStamp
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of seconds between connect retries."
::= { replSlaveStatusEntry 20 }
replReplicateDoDB OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of databases to replicate."
::= { replSlaveStatusEntry 21 }
replReplicateIgnoreDB OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of databases to exclude from replication."
::= { replSlaveStatusEntry 22 }
replReplicateDoTable OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of tables to replicate."
::= { replSlaveStatusEntry 23 }
replReplicateIgnoreTable OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of tables to exclude from replication."
::= { replSlaveStatusEntry 24 }
replReplicateWildDoTable OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The lists of table name patterns to replicate."
::= { replSlaveStatusEntry 25 }
replReplicateWildIgnoreTable OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The lists of table name patterns to exclude from replication."
::= { replSlaveStatusEntry 26 }
replSkipCounter OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The current value of the `sql_slave_skip_counter'
system variable."
::= { replSlaveStatusEntry 27 }
replUntilCondition OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The values specified in the `UNTIL' clause of the `START
SLAVE' statement.
Possible values:
* `None' if no `UNTIL' clause was specified
* `Master' if the slave is reading until a given
position in the master's binary log
* `Relay' if the slave is reading until a given
position in its relay log."
::= { replSlaveStatusEntry 28 }
replUntilLogFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The log file name at which the SQL thread stops executing."
::= { replSlaveStatusEntry 29 }
replUntilLogPos OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The position in replUntilLogFile at
which the SQL thread stops executing."
::= { replSlaveStatusEntry 30 }
replMasterServerId OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"ID of the master server."
::= { replSlaveStatusEntry 31 }
replMasterSSLAllowed OBJECT-TYPE
SYNTAX DisplayString
-- FIXME: special syntax for it?
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Possible values:
* `Yes' if an SSL connection to the master is
permitted .
* `No' if an SSL connection to the master is not
permitted.
* `Ignored' if an SSL connection is permitted but the
slave server does not have SSL support enabled."
::= { replSlaveStatusEntry 32 }
replMasterSSLCAFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"File name of the Master CA file."
::= { replSlaveStatusEntry 33 }
replMasterSSLCAPath OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Path to look for SSL CA files."
::= { replSlaveStatusEntry 34 }
replMasterSSLCert OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"File name of the master SSL certificate file."
::= { replSlaveStatusEntry 35 }
replMasterSSLCipher OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"SSL ciphersuites in use."
::= { replSlaveStatusEntry 36 }
replMasterSSLKey OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"File name of the master key file."
::= { replSlaveStatusEntry 37 }
replMasterSSLVerifyServerCert OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Whether to verify server SSL certificate."
::= { replSlaveStatusEntry 38 }
--
-- Replication master status
--
replMasterStatusTable OBJECT-TYPE
SYNTAX SEQUENCE OF ReplMasterStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table of replication master status. On replication master,
it contains a single row, describing the current
status."
::= { replication 2 }
replMasterStatusEntry OBJECT-TYPE
SYNTAX ReplMasterStatusEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry describing master status."
INDEX { replMasterIndex }
::= { replMasterStatusTable 1 }
ReplMasterStatusEntry ::= SEQUENCE {
replMasterIndex Integer32,
replMasterCurrentLogFile DisplayString,
replMasterCurrentLogPos Counter32,
replMasterBinlogDoDB DisplayString,
replMasterBinlogIgnoreDB DisplayString
}
replMasterIndex OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A number uniquely identifying master status row."
::= { replMasterStatusEntry 1 }
replMasterCurrentLogFile OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the master binary log file."
::= { replMasterStatusEntry 2 }
replMasterCurrentLogPos OBJECT-TYPE
SYNTAX Counter32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The position in the current master binary log file."
::= { replMasterStatusEntry 3 }
replMasterBinlogDoDB OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of database names to include in the binlog."
::= { replMasterStatusEntry 4 }
replMasterBinlogIgnoreDB OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The list of database names to exclude from the binlog."
::= { replMasterStatusEntry 5 }
--
-- Process List
--
processListTable OBJECT-TYPE
SYNTAX SEQUENCE OF ProcessListEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A table of active threads."
::= { processList 1 }
processListEntry OBJECT-TYPE
SYNTAX ProcessListEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A conceptual row of process list table."
INDEX { processIndex }
::= { processListTable 1 }
ProcessListEntry ::= SEQUENCE {
processIndex Integer32,
processID Integer32,
processUser DisplayString,
processHost DisplayString,
processDatabase DisplayString,
processCommand DisplayString,
processTime TimeStamp,
processState DisplayString,
processInfo DisplayString
}
processIndex OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A number uniquely identifying each process."
::= { processListEntry 1 }
processID OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Thread ID."
::= { processListEntry 2 }
processUser OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Connecting user."
::= { processListEntry 3 }
processHost OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Remote hostname or IP."
::= { processListEntry 4 }
processDatabase OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Database name."
::= { processListEntry 5 }
processCommand OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Command being processed."
::= { processListEntry 6 }
processTime OBJECT-TYPE
SYNTAX TimeStamp
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Running time of the thread."
::= { processListEntry 7 }
processState OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Process state."
::= { processListEntry 8 }
processInfo OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Information about the process."
::= { processListEntry 9 }
processTotalCount OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Total number of processes (threads)."
::= { processList 2 }
processActiveCount OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of active processes (threads)."
::= { processList 3 }
processSlaveCount OBJECT-TYPE
SYNTAX Gauge32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Number of replication slaves"
::= { processList 4 }
END
-- Local variables:
-- eval: (add-hook 'write-file-hooks 'time-stamp)
-- time-stamp-start: "\\(LAST-UPDATED\\|REVISION\\) *\""
-- time-stamp-end: "\""
-- time-stamp-format: "%:y%02m%02d%02H%02MZ"
-- time-stamp-line-limit: 32
-- time-stamp-count: 2
-- end:
|