Hi,
I cloned the "mysql" module into "mysql_bytes" and immediately started to get an error message about missing "mysql_keys" file. In the log there is
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 162) info : create /usr/share/webmin/sysstats//modules/mysql_bytes
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/Changelog link to Changelog
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/config.txt link to config.txt
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/defaults.cfg link to defaults.cfg
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/help link to help
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/images link to images
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 180) info : recursive copy ../mysql/lang to lang
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 176) info : copy ../mysql/module.info to module.info
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/mysql-lib.pl link to mysql_bytes-lib.pl
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/mysql.pl link to mysql_bytes.pl
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/mysql_keys link to mysql_bytes_keys
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/readme link to readme
2022/02/23 14:18:20 sysstats::clone_mod(sysstats-clone-lib.pl 186) info : ../mysql/Todo link to Todo
so I went and renamed "mysql_bytes_keys" to "mysql_keys" as that seems to be the name referenced in "/modules/mysql/mysql-lib.pl @ 37", and the new module is fine now.
It seems the problem may be that static name used in "/modules/mysql/mysql-lib.pl @ 37" but I'm not totally sure.
Cheers
Anonymous
thanks for this report
the problem is fixed in devel branch. It will be available in webminstats 2.23