[Nagiosplug-help] Check_mysql crashing

Bryan Bateman bryanbateman at earthlink.net
Fri Feb 18 11:19:14 CET 2005


I am in the process of installing the nagios plugins.  They seem to compile
and install without error however it crashes when trying to run.  All the
other plugins that I have checked so far are running.  Mysql is working and
I can attach remote and local with MySQL Administrator.  MySQL is running on
the same box as nagios.

Below are details:


./configure --prefix=/export/home1/nagios --with-mysql=/usr/local/mysql/ . .
. . checking for mysql_init in -lmysqlclient... yes checking for mysql_close
in -lmysqlclient... no checking mysql/mysql.h usability... yes checking
mysql/mysql.h presence... yes checking for mysql/mysql.h... yes checking
mysql/errmsg.h usability... yes checking mysql/errmsg.h presence... yes
checking for mysql/errmsg.h... yes . . . .
                     --with-cgiurl: /nagios/cgi-bin
                --with-nagios-user: nagios
               --with-nagios-group: nagios
               --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
               --with-ping-command: /usr/sbin/ping -n -s %s 56 %d
              --with-ping6-command:
                      --with-lwres: no
                       --with-ipv6: yes
                    --with-openssl: no
      --enable-emulate-getaddrinfo: no




# ./check_mysql -h
ld.so.1: ./check_mysql: fatal: libmysqlclient.so.12: open failed: No such
file or directory Killed


# pwd
/
# find . libmysqlclient|grep libmysqlclient
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.so.12.0.0
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.so.12
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.so
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.a
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.lai
./export/home1/source/mysql-4.0.20/libmysql/.libs/libmysqlclient.la
./export/home1/source/mysql-4.0.20/libmysql/libmysqlclient.la
./usr/local/mysql/lib/mysql/libmysqlclient.so.12.0.0
./usr/local/mysql/lib/mysql/libmysqlclient.so.12
./usr/local/mysql/lib/mysql/libmysqlclient.so
./usr/local/mysql/lib/mysql/libmysqlclient.la
./usr/local/mysql/lib/mysql/libmysqlclient.a

# cd /usr/local/mysql/lib/mysql
# ls -la
total 2168
drwxr-xr-x   2 root     mysql        512 Jul 30  2004 .
drwxr-xr-x   3 root     mysql        512 Jul 30  2004 ..
-rw-r--r--   1 root     mysql      11252 Jul 30  2004 libdbug.a
-rw-r--r--   1 root     mysql      30324 Jul 30  2004 libheap.a
-rw-r--r--   1 root     mysql      12828 Jul 30  2004 libmerge.a
-rw-r--r--   1 root     mysql     253696 Jul 30  2004 libmyisam.a
-rw-r--r--   1 root     mysql      22348 Jul 30  2004 libmyisammrg.a
-rw-r--r--   1 root     mysql     204428 Jul 30  2004 libmysqlclient.a
-rwxr-xr-x   1 root     mysql        898 Jul 30  2004 libmysqlclient.la
lrwxrwxrwx   1 root     other         24 Jul 30  2004 libmysqlclient.so ->
libmy
sqlclient.so.12.0.0
lrwxrwxrwx   1 root     other         24 Jul 30  2004 libmysqlclient.so.12
-> li
bmysqlclient.so.12.0.0
-rwxr-xr-x   1 root     mysql     177832 Jul 30  2004
libmysqlclient.so.12.0.0
-rw-r--r--   1 root     mysql      25436 Jul 30  2004 libmystrings.a
-rw-r--r--   1 root     mysql     222896 Jul 30  2004 libmysys.a
-rw-r--r--   1 root     mysql      93928 Jul 30  2004 libnisam.a
-rw-r--r--   1 root     mysql       5124 Jul 30  2004 libvio.a
#






More information about the Help mailing list