[root@cactiez plugins]# ll /usr/lib/nagios/plugins/check_mysql
-rwxr-xr-x 1 root root 27246 Jun 25 2007 /usr/lib/nagios/plugins/check_mysql
[root@cactiez plugins]#
nagios已经安装了这个插件 但是我运行该插件之后的提示信息是这样的:
[root@cactiez plugins]# ./check_mysql
./check_mysql: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
[root@cactiez plugins]#
查找之后已经安装了,但是是so.10的
[root@cactiez plugins]# rpm -qa | grep mysql
mysqlclient10-3.23.58-9.2.c4
mysql-server-5.0.62-1.el4_6
php-mysql-5.1.6-3.el4s1.9
mysql-libs-5.0.62-1.el4_6
mysql-5.0.62-1.el4_6
mysql-devel-5.0.62-1.el4_6
[root@cactiez plugins]# rpm -ql mysqlclient10-3.23.58-9.2.c4
/etc/ld.so.conf.d/mysqlclient10-i386.conf
/usr/lib/mysql/libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient_r.so.10
/usr/lib/mysql/libmysqlclient_r.so.10.0.0
/usr/share/doc/mysqlclient10-3.23.58
/usr/share/doc/mysqlclient10-3.23.58/COPYING
/usr/share/doc/mysqlclient10-3.23.58/COPYING.LIB
/usr/share/doc/mysqlclient10-3.23.58/README
[root@cactiez plugins]#
是不是需要我做个软连接呢?????/
ln -s /usr/lib/mysql/libmysqlclient.so.10 /usr/lib/mysql/libmysqlclient.so.14


[ 本帖最后由 ppiqq 于 2008-8-18 11:10 编辑 ]