In this version of the script:
https://raw.githubusercontent.com/OpensourceICTSolutions/zabbix-mysql-partitioning-perl/5f3e78ee90b1f18cc00099f3a3deda45eb9f76bd/mysql_zbx_part.pl
the $dsn can be declared on line 12, however on lines 37 and 48 they are manually re-declared, wiping out a config set at the front. This seems like it is in error.