Home > Database > Mysql Tutorial > nagiosql centos6.4 x64 nagios mysql监控设置

nagiosql centos6.4 x64 nagios mysql监控设置

WBOY
Release: 2016-06-07 16:38:51
Original
1239 people have browsed it

nagios3.5 监控 mysql 需要用到 check_mysql 和 check_mysql_query 两个插件. 安装完成 nagios 后,发现目录: /usr/local/nagios/libexec 下没有 check_mysql 这个插件. 解决办法: yum?install?mysql-devel 然后进入 nagios-plugins 的安装目录重新编译安装

nagios3.5

监控 mysql 需要用到 check_mysql 和 check_mysql_query 两个插件.
安装完成 nagios 后,发现目录: /usr/local/nagios/libexec 下没有 check_mysql 这个插件.

解决办法:

yum?install?mysql-devel

然后进入 nagios-plugins 的安装目录重新编译安装一下.我本机:

cd /var/install/soft/nagios-plugins-1.4.16

./configure

make && make install

然后再到 /usr/local/nagios/libexec 下看,有了 check_mysql 和 check_mysql_query 两个插件.

测试:

/usr/local/nagios/libexec/check_mysql -H 127.0.0.1 -P 3306 -u root -p root

结果:

Uptime: 2219627 Threads: 1 Questions: 2391 Slow queries: 1 Opens: 31 Flush tables: 1 Open tables: 17 Queries per second avg: 0.1

1. 登入nagiosql??? 进入命令—》定义选项:新建check_mysql的服务项

$USER1$/check_mysql -H $ARG1$ -u $ARG2$ -p $ARG3$

2.进入监督—-》服务:新建服务

3.在监督—hosts主机中添加服务

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template