Further problems with NDO Utils

Andreas Ericsson ae at op5.se
Thu Sep 13 13:44:15 CEST 2007


Ton Voon wrote:
> On 12 Sep 2007, at 19:32, Ton Voon wrote:
> 
>> Can you try the Altinity patched version of NDO Utils? http://
>> altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html
>>
>> This incorporates a better detection of mysql (based on the Nagios
>> Plugins' one).
>>
>> I'm trying to get Ethan to apply to the core NDO, so every success is
>> an encouragement.
> 
> I've since realised that this problem is actually a linking issue,  
> not a compile issue.
> 
> There are three options (that I know of):
>    - ld.so.conf
>    - LD_LIBRARY_PATH at runtime
>    - LD_RUN_PATH at compile time (or some variation of, using linker  
> flags)
> 
> This is not a problem on the Nagios Plugins because we use libtool  
> which adds in the correct linker flags, which is why check_mysql  
> works okay (run ldd check_mysql and it will find the mysql libraries  
> in the non-standard directories).
> 
> This has not been included in the Altinity patch for NDO utils  
> because libtool is a bit of a sledgehammer to crack this nut.
> 

And an ugly one at that. The simplest way is to just add

	-Wl,-rpath /path/to/mysql-libs

in addition to
	-L/path/to/mysql-libs

if the libraries are in a non-standard path.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list