Tilakraj Rajasekar [04.04.2013 10:53]:
> I installed nagios plugin in my one of our server centos 64-bit, other
> nagios plugin are working fine but only that mysql plugin was not working
> it asking "libmysqlclient18.so" but it actually available in lib64/mysql/
> folder but it's still asking.
> What we suspect is, that installed nagios mysql plugin it checking that
> mysql library in lib/ folder not in lib64/ folder.
> We copied that required "mysqlclient18.so" in lib64/ to lib/ folder, after
> we try to run the nagios mysql plugin the same error only it generates.
> Even we tried with the nagios-plugin 64-bit package, But sill the same
> error exist.
> We need your assistance to solve this problem.
try "ldd" against your plugin to see if any library is not found.
# ldd /usr/lib/nagios/plugins/check_mysql
libmysqlclient.so.18 => /usr/lib64/libmysqlclient.so.18
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4895d68000)
libc.so.6 => /lib64/libc.so.6 (0x00007f48959ba000)
libz.so.1 => /lib64/libz.so.1 (0x00007f48957a4000)
libssl.so.1.0.0 => /lib64/libssl.so.1.0.0 (0x00007f489553a000)
libcrypto.so.1.0.0 => /lib64/libcrypto.so.1.0.0 (0x00007f4895167000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f4894f63000)
libm.so.6 => /lib64/libm.so.6 (0x00007f4894c65000)
So, my MySQL plugin found all requested libraries. Does your output look