[Nagiosplug-help] nagios plugin issues...

Werner Flamme werner.flamme at ufz.de
Wed Apr 24 10:50:00 CEST 2013


Tilakraj Rajasekar [04.04.2013 10:53]:
> Hi,
> 
> 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.

Hi Tilak,

try "ldd" against your plugin to see if any library is not found.

Example:

# ldd /usr/lib/nagios/plugins/check_mysql
        linux-vdso.so.1 (0x00007fff277ff000)
        libmysqlclient.so.18 => /usr/lib64/libmysqlclient.so.18
(0x00007f4895f84000)
        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)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4896489000)

So, my MySQL plugin found all requested libraries. Does your output look
similar?

HTH, Werner

-- 




More information about the Help mailing list