logo资料库

zabbix3.4.x 数据库表结构说明文档.doc

第1页 / 共91页
第2页 / 共91页
第3页 / 共91页
第4页 / 共91页
第5页 / 共91页
第6页 / 共91页
第7页 / 共91页
第8页 / 共91页
资料共91页,剩余部分请下载后查看
1.acknowledges表(空)
2.actions表
3.alerts表
4.applications_discovery表(空)
5.applications_prototype表
6.applications_template表
7.applications表
8.auditlog表
9.auditlog_details表
10.autoreg_host表
11.conditions表
12.config
13.corr_condition表(空)
14.corr_condition_group表(空)
15.corr_condition_tag表(空)
16.corr_condition_tagpair表(空)
17.corr_condition_tagvalue表(空)
18.Corr_operation表(空)
19.correlation表(空)
20.dashboard表
21.Dashboard_user表
22.Dashboard_usrgrp表
23.dbversion表
24.dchecks表
25.dhosts表(空)
26.drules表
27.dservices表(空)
28.escalations表(空)
29.event_recovery表
30.event_tag表(空)
31.events表
32.expressions表
33.functions表
34.globalmacro表
35.globalvars表(空)
36.graph_discovery表
37.graph_theme表
38.graphs表
39.graphs_items表
40.group_discovery表(空)
41.group_prototype表
42.groups表
43.history表
44.history_log表
45.history_str表
46.history_text表(空)
47.history_uint表
48.host_discovery表
49.host_inventory表(空)
50.hostmacro表
51.hosts表
52.hosts_groups表
53.hosts_templates表
54.housekeeper表(空)
55.httpstep表(空)
56.httpstep_field表(空)
57.httpstepitem表(空)
58.httptest表(空)
59.httptest_field表(空)
60.httptestitem表(空)
61.icon_map表(空)
62.icon_mapping表(空)
63.ids表
64.images表
65.interface表
66.interface_discovery表(空)
67.item_application_prototype表(空)
68.item_condition表
69.item_discovery表
70.item_preproc表
71.items表
72.items_applications表
73.maintenances表(空)
74.maintenances_groups表(空)
75.maintenances_hosts表(空)
76.maintenances_windows表(空)
77.mappings表
78.media表
79.media_type表
80.opcommand表(空)
81.opcommand_grp表(空)
82.opcommand_hst表(空)
83.opconditions表
84.operations表
85.opgroup表
86.opinventory表(空)
87.opmessage表
88.opmessage_grp表
89.opmessage_usr表
90.optemplate表
91.problem表
92.problem_tag表(空)
93.profiles表
94.proxy_autoreg_host表(空)
95.proxy_dhistory表(空)
96.proxy_history表(空)
97.regexps表
98.rights表
99.screen_user表(空)
100.screen_usrgrp表(空)
101.screens表
102.screens_items表
103.scripts表
104.service_alarms表(空)
105.services表(空)
106.services_links表(空)
107.services_times表(空)
108.sessions表
109.slides表(空)
110.slideshow_user表(空)
111.slideshow_usrgrp表(空)
112.slideshows表(空)
113.sysmap_element_trigger表(空)
114.sysmap_element_url表(空)
115.sysmap_shape表
116.sysmap_url表(空)
117.sysmap_user表(空)
118.sysmap_usrgrp表(空)
119.sysmaps表
120.sysmaps_elements表
121.sysmaps_link_triggers表(空)
122.sysmaps_links表(空)
123.task表(空)
124.task_acknowledge表(空)
125.task_close_problem表(空)
126.task_remote_command表(空)
127.task_remote_command_result表(空)
128.timeperiods表(空)
129.trends表
130.trends_uint表
131.trigger_depends表
132.trigger_discovery表
133.trigger_tag表(空)
134.triggers表
135.users表
136.users_groups表
137.usrgrp表
138.valuemaps表
139.widget表
140.widget_field表
Zabbix 3.4.X 数据库表结构说明文档
目录 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. acknowledges表(空) ...................................................... 6 actions表 ................................................................. 6 alerts表 .................................................................. 7 applications_discovery表(空) ............................................ 8 applications_prototype表 .................................................. 9 applications_template表 ................................................... 9 applications表 ............................................................ 9 auditlog表 ............................................................... 10 auditlog_details表 ....................................................... 10 autoreg_host表 ........................................................... 11 conditions表 ............................................................. 11 config ................................................................... 12 corr_condition表(空) ..................................................... 15 corr_condition_group表(空) ............................................... 16 corr_condition_tag表(空) ................................................. 16 corr_condition_tagpair表(空) ............................................. 16 corr_condition_tagvalue表(空) ............................................ 16 Corr_operation表(空) ..................................................... 17 correlation表(空) ........................................................ 17 dashboard表 .............................................................. 17 Dashboard_user表 ......................................................... 18 Dashboard_usrgrp表 ....................................................... 18 dbversion表 .............................................................. 18 dchecks表 ................................................................ 19 dhosts表(空) ........................................................... 20 drules表 ................................................................. 20 dservices表(空) ........................................................ 21 escalations表(空) ...................................................... 22 event_recovery表 ......................................................... 22 event_tag表(空) ........................................................ 23 events表 ................................................................. 23 expressions表 ............................................................ 24 functions表 .............................................................. 24 globalmacro表 ............................................................ 25 globalvars表(空) ....................................................... 25 graph_discovery表 ........................................................ 25
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. graph_theme表 ............................................................ 26 graphs表 ................................................................. 26 graphs_items表 ........................................................... 28 group_discovery表(空) .................................................. 29 group_prototype表 ........................................................ 29 groups表 ................................................................. 29 history表 ................................................................ 30 history_log表 ............................................................ 30 history_str表 ............................................................ 31 history_text表(空) ..................................................... 31 history_uint表 ........................................................... 32 host_discovery表 ......................................................... 32 host_inventory表(空) ................................................... 32 hostmacro表 .............................................................. 35 hosts表 .................................................................. 35 hosts_groups表 ........................................................... 38 hosts_templates表 ........................................................ 39 housekeeper表(空) ...................................................... 39 httpstep表(空) ......................................................... 39 httpstep_field表(空) ................................................... 40 httpstepitem表(空) ..................................................... 40 httptest表(空) ......................................................... 41 httptest_field表(空) ................................................... 42 httptestitem表(空) ..................................................... 42 icon_map表(空) ......................................................... 43 icon_mapping表(空) ..................................................... 43 ids表 .................................................................... 44 images表 ................................................................. 44 interface表 .............................................................. 45 interface_discovery表(空) .............................................. 46 item_application_prototype表(空) ....................................... 46 item_condition表 ......................................................... 46 item_discovery表 ......................................................... 47 item_preproc表 ........................................................... 47 items表 .................................................................. 48 items_applications表 ..................................................... 51 maintenances表(空) ..................................................... 51 maintenances_groups表(空) .............................................. 52 maintenances_hosts表(空) ............................................... 52 maintenances_windows表(空) ............................................. 53 mappings表 ............................................................... 53
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. media表 .................................................................. 53 media_type表 ............................................................. 55 opcommand表(空) ........................................................ 56 opcommand_grp表(空) .................................................... 57 opcommand_hst表(空) .................................................... 57 opconditions表 ........................................................... 58 operations表 ............................................................. 59 opgroup表 ................................................................ 60 opinventory表(空) ...................................................... 60 opmessage表 .............................................................. 60 opmessage_grp表 .......................................................... 61 opmessage_usr表 .......................................................... 61 optemplate表 ............................................................. 62 problem表 ................................................................ 62 problem_tag表(空) ........................................................ 63 profiles表 ............................................................... 63 proxy_autoreg_host表(空) ............................................... 64 proxy_dhistory表(空) ................................................... 65 proxy_history表(空) .................................................... 65 regexps表 ................................................................ 66 rights表 ................................................................. 66 screen_user表(空) ...................................................... 67 screen_usrgrp表(空) .................................................. 67 screens表 .............................................................. 68 screens_items表 ........................................................ 68 scripts表 .............................................................. 70 service_alarms表(空) ................................................. 71 services表(空) ....................................................... 71 services_links表(空) ................................................. 72 services_times表(空) ................................................. 72 sessions表 ............................................................. 73 slides表(空) ......................................................... 73 slideshow_user表(空) ................................................. 74 slideshow_usrgrp表(空) ............................................... 74 slideshows表(空) ..................................................... 75 sysmap_element_trigger表(空) ......................................... 75 sysmap_element_url表(空) ............................................. 75 sysmap_shape表 ......................................................... 76 sysmap_url表(空) ..................................................... 76 sysmap_user表(空) .................................................... 77 sysmap_usrgrp表(空) .................................................. 77
119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. sysmaps表 .............................................................. 78 sysmaps_elements表 ..................................................... 80 sysmaps_link_triggers表(空) .......................................... 81 sysmaps_links表(空) .................................................. 81 task表(空) ........................................................... 82 task_acknowledge表(空) ............................................... 82 task_close_problem表(空) ............................................. 83 task_remote_command表(空) ............................................ 83 task_remote_command_result表(空) ..................................... 83 timeperiods表(空) .................................................... 84 trends表 ............................................................... 85 trends_uint表 .......................................................... 85 trigger_depends表 ...................................................... 85 trigger_discovery表 .................................................... 86 trigger_tag表(空) .................................................... 86 triggers表 ............................................................. 86 users表 ................................................................ 88 users_groups表 ......................................................... 89 usrgrp表 ............................................................... 89 valuemaps表 ............................................................ 90 widget表 ............................................................... 90 widget_field表 ......................................................... 90
该文档提供了 zabbix3.4.X 中 mysql 数据库中各个表及其中字段的详细解释。 1. acknowledges 表(空) 当trigger发生状态变化后,即产生某个事件(event)后,管理人员需要对这 些状态变化进行确认,记录告警的确认信息。 PK True False False False False False Name Type Not Null Unique Len Notes acknowledgeid BIGINT True True userid BIGINT True False BIGINT True False eventid INTEGE R VARCHA R INT True False True False True False clock message action 20 20 20 11 255 11 确认的唯一标识 用户ID 事件ID,外键 管理员确认的时间 管理员确认的备注 或留言 管理员确认的事件 2. actions 表 产生event后,会执行指定的动作(action),该表记录动作相关属性。 关键字段: 1)eventsource:同events表中的sources字段 2)status:0代表OK,1代表Problem PK True False Name actionid name Type Not Null BIGINT True VARCHAR True Unique Len Notes True False 20 255 动作的唯一标识 动作的名称 False eventsource INT True False 11 动作所关联的事件 ID: 0 指 来 源 为 触 发 器 trigger; 1 指 来 源 为 自 动 发 现 descover; 2 指 来 源 为 自 动 登 记 auto_register; 3 为网络发现产生的事件
False evaltype INT True False 11 源 表示执行 action 的前提 条件的逻辑关系: 0 表示 and/or 1 表示 and 2 表示 or status INT esc_period True False VARCHAR True False False def_shortdata VARCHAR True False True VARCHAR True False def_longdata r_shortdata TEXT False False False False False 是否 enable 11 255 默认的步骤时间间隔 action 的标题定义 255 0 action 内容的定义 255 恢复提醒的内容标题 False r_longdata TEXT True False 0 False False formula VARCHAR True False 255 maintenance_m ode INT True False 11 恢复提醒的内容,默认与 提醒一样 公式 维护模式 False ack_shortdata VARCHAR True False True ack_longdata TEXT False False 255 0 ack 的标题定义 ack 的内容定义 该表的相关数据查询语句: 1) 查询所有已创建的动作:select name from actions; 2) 查询某个动作的详细信息:select * from actions where name=’action_name’\G; 3. alerts 表 告警相关的表,与action、event、user关联,用于记录通过媒介(邮件、短信、 微信等方式)发送的告警信息。 PK Name Type True False False False False False False False False alertid actionid eventid userid clock mediatypeid sendto subject message BIGINT BIGINT BIGINT BIGINT INT BIGINT VARCHAR VARCHAR TEXT Not Null True True True False True False True True True Unique Len True False False False False False False False False 20 20 20 20 11 100 255 0 Notes 告警ID 关联的动作ID 关联的事件ID 关联的用户ID 产生告警的时间 媒介的类型 告警发送的地址 标题 信息内容
状态成功与否: define('ALERT_STATU S_NOT_SENT', 0); False status INT True False 11 define('ALERT_STATU S_SENT',1); define('ALERT_STATU S_FAILED',2); False False retries error INT VARCHAR True True False False 11 尝试次数,默认3次 2048 错误信息 False esc_step INT True False 11 False alerttype INTEGER True False 11 执行到operation的第 几步 告警类型,包含远程命 令 define('ALERT_TYPE_ MESSAGE',0); define('ALERT_TYPE_ COMMAND',1); False False p_eventid actionid BIGINT BIGINT False False False False 20 20 关连告警确认信息ID 该表的相关数据查询语句: 1) 查询某个 actions 下的所有告警信息:select messsage from alerts where actionid=’actionid’;(需要从 actions 表中查询对应 id 并填入) 4. applications_discovery 表(空) 应用自动发现表,与 applications、applications_prototype 表相关联。 PK Name Type Not Null Uniqu e Len Notes True application_d iscoveryid BIGINT True True 20 应用自动发现ID False applicationid BIGINT True False 20 应用ID False application_p rototypeid BIGINT True False 11 应用模型ID False name VARCHAR True False 11 应用自动发现名 称 False Lastcheck INT True False 11 最后检查时间
分享到:
收藏