File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#4 For RHEL9 based systems use the CRB repository (Rocky Linux 9 specific) to get Perl-DataTime. dnf config-manager --set-enabled crb
10
10
11
- Make sure to uncomment the correct lines (see blog post), the default is setup for MySQL 5.6 or MariaDB.
11
+ #5 For ZBX7.0 a new table was added (history_bin). As such, for older version we can comment the line that partitions this table.
12
+
13
+ Make sure to uncomment the correct lines (see blog post), the default is setup for MySQL 5.6 or MariaDB and Zabbix version higher than 7.0.
12
14
13
15
Also, see common issues at the bottom of the blog post.
14
16
@@ -93,6 +95,11 @@ Uncomment the following line for Zabbix 5.4 and OLDER:
93
95
# $dbh->do("DELETE FROM auditlog_details WHERE NOT EXISTS (SELECT NULL FROM auditlog WHERE auditlog.auditid = auditlog_details.auditid)");
94
96
```
95
97
98
+ Comment the following line for Zabbix 6.4 and OLDER:
99
+ ```
100
+ 'history_bin' => { 'period' => 'day', 'keep_history' => '60'},
101
+ ```
102
+
96
103
That's it! You are now done and you have setup MySQL partitioning. We could execute the script manually with:
97
104
```
98
105
perl /usr/share/zabbix/mysql_zbx_part.pl
Original file line number Diff line number Diff line change 15
15
' history_str' => { ' period' => ' day' , ' keep_history' => ' 60' },
16
16
' history_text' => { ' period' => ' day' , ' keep_history' => ' 60' },
17
17
' history_uint' => { ' period' => ' day' , ' keep_history' => ' 60' },
18
+ # Comment the history_bin line below if you're running Zabbix versions older than 7.0
19
+ ' history_bin' => { ' period' => ' day' , ' keep_history' => ' 60' },
18
20
' trends' => { ' period' => ' month' , ' keep_history' => ' 12' },
19
21
' trends_uint' => { ' period' => ' month' , ' keep_history' => ' 12' },
20
22
You can’t perform that action at this time.
0 commit comments