I have a Zabbix 7.2.1 install (from the repo, not a container) on Ubuntu 24.04 which has been upgraded over the years, and I'm now finding my partitioning routine is not working. I'm using the partitioning perl script from here (an official Zabbix publication):
https://blog.zabbix.com/partitioning...cedures/13531/
Specifically a newly downloaded copy of the perl script here (which is NOT an official Zabbix publication, but was directly referred to in one):
However the script is producing the following error:
The issue is, I updated the script per the instructions to point to Ubuntu's version of the DSI:
However the error indicates it's using the wrong DSN, and instead pointing to the original version of the .sock from the raw script. For confirmation, the sock as I put it in the script exists:
I don't know enough perl to debug this, but any help is appreciated. I believe this has been failing for a bit and I didn't notice, and I'm starting to have performance issues.
https://blog.zabbix.com/partitioning...cedures/13531/
Specifically a newly downloaded copy of the perl script here (which is NOT an official Zabbix publication, but was directly referred to in one):
However the script is producing the following error:
Code:
root@sr66-zbx-01:/usr/share/zabbix# perl /usr/share/zabbix/mysql_zbx_part.pl
DBI connect('zabbix:mysql_socket=/var/lib/mysql/mysql.sock','zabbix',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/share/zabbix/mysql_zbx_part.pl line 83.
Can't call method "prepare" on an undefined value at /usr/share/zabbix/mysql_zbx_part.pl line 127.
Code:
my $db_schema; my $db_host; my $db_port; my $dsn = 'DBI:mysql:'.$db_schema.':mysql_socket=/var/run/mysqld/mysqld.sock';
Code:
root@sr66-zbx-01:/usr/share/zabbix# ls /var/run/mysqld/mysqld.sock 0 srwxrwxrwx 1 mysql mysql 0 Dec 26 15:11 /var/run/mysqld/mysqld.sock
Comment