Error while loading shared libraries:

Hi guys,

We recently updated one of our machines from mariadb to mysql.
This version of MySQL has given us the file in /usr/lib64/mysql.

On our other machinse that are monitoring mariadb, we have with a symlink to that file called

Is there a way we can change the plugin “check_mysql” to stop looking for the 18 version file and instead look for the 20 version?
The full error we’re getting is /usr/lib64/nagios/plugins/check_mysql: error while loading shared libraries: cannot open shared object file: No such file or directory.

Many thanks,

One way might be to create a wrapper script which sets the relevant environment variable to the location of and then execute check_mysql as usual.

Compile the script with the different versions of libmysqlclient yourself?