File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ Or check out our Zabbix book for a detailed description:
30
30
https://www.amazon.com/Zabbix-Infrastructure-Monitoring-Cookbook-maintaining-dp-1801078327/dp/1801078327
31
31
32
32
33
- Place the script in:
33
+ Place the script in (create the folder if it doesn't exist) :
34
34
```
35
- /usr/share /zabbix/
35
+ /usr/lib /zabbix/
36
36
```
37
37
38
38
Then make it executable with:
39
39
```
40
- chmod +x /usr/share /zabbix/mysql_zbx_part.pl
40
+ chmod 750 /usr/lib /zabbix/mysql_zbx_part.pl
41
41
```
42
42
43
43
Now add a cronjob with:
@@ -47,7 +47,7 @@ crontab -e
47
47
48
48
Add the following line:
49
49
```
50
- 55 22 * * * /usr/share /zabbix/mysql_zbx_part.pl >/dev/null 2>&1
50
+ 55 22 * * * /usr/lib /zabbix/mysql_zbx_part.pl >/dev/null 2>&1
51
51
```
52
52
53
53
We also need to install some Perl dependencies with:
@@ -102,7 +102,7 @@ Comment the following line for Zabbix 6.4 and OLDER:
102
102
103
103
That's it! You are now done and you have setup MySQL partitioning. We could execute the script manually with:
104
104
```
105
- perl /usr/share /zabbix/mysql_zbx_part.pl
105
+ perl /usr/lib /zabbix/mysql_zbx_part.pl
106
106
```
107
107
108
108
Then we can check and see if it worked with:
You can’t perform that action at this time.
0 commit comments