ubuntu 16.04 nagios libmysqlclient.so.18

my mysql nagios plugin doesn’t work,

tested with this command /usr/lib/nagios/plugins/check_mysql

Error error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

It’s probably Ubuntu 16.04 is using higher mysql client version, while the nagios use lower version

Here is the fix:

cd ~root
wget http://files.directadmin.com/services/debian_7.0_64/libmysqlclient.so.18
copy libmysqlclient.so.18 /usr/lib/x86_64-linux-gnu/
cd /usr/lib/x86_64-linux-gnu
chmod 755 libmysqlclient.so.18
ldconfig

Leave a Reply

Your email address will not be published. Required fields are marked *