分类: LINUX
2011-03-03 12:29:16
Debug 自带nrpe插件无法正常运行
前言 安装好NRPE客户端及插件check_mysql之后,检查插件是否能运行成功。
Step 1
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_mysql #通过nrpe调用
NRPE: Unable to read output
Step 2
/usr/local/nagios/libexec/check_mysql -H localhost -P 3306 -S -s /tmp/mysql.sock -u nagios -p XXXXX #直接调用
error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
Step 3
找到问题,安装一下mysql客户端,问题解决
yum install mysql.x86_64
locate libmysqlclient.so.15