At the time of writing, the Linode Longview agent is not working with MariaDB 10.5 onwards. This happens because there is a hard coded binary name in the Perl script responsible for determining if MySQL monitoring is required; from MariaDB 10.5 the binary name has changed from mysqld
to mariadbd
.
To fix this the Perl script can be edited and the binary name changed. For my system the script is located here:
/opt/linode/longview/Linode/Longview/DataGetter/Applications/MySQL.pm
Simply change the $SIGNATURES
variable:
# diff MySQL.pm MySQL.pm.bak 38c38 < our $SIGNATURES = ['mariadbd']; --- > our $SIGNATURES = ['mysqld'];
Restart Longview after making the changes and wait a few minutes, the MySQL tab should then appear.
One thought on “Linode Longview with MariaDB 10.5+”
This has been a head scratcher this morning. Thanks for the tip – all better now!