nagios监控mysql主从
编写的脚本用来监控mysql主从模式环境: Centos5.6mysql只做同步指定库,没有同步mysql库用户数据 登陆从服务器mysql,添加验证的用户 grantreplicationclienton*.*to'nagios'@localhostidentifiedby'123456'; flushprivileges; 查看是否添加成功 selectuser,hostfrommysql.user 在从服务器安装nrpe,然后在配置文件nrpe.cfg加入一行 command[check_mysql_slave]=/usr/
下载地址
用户评论