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. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- 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@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