Re: nagios plugin issues...

Werner Flamme <[email protected]>
Newsgroups gmane.network.nagios.plugins
Message-ID <[email protected]>
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

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.