首先要确认 check_mysql 与check_mysql_query 是否存在这插件 没有的话 要nagios-plugin中安装支持需要被监控机添加访问 据库授权:(登陆DB服务器,进行授权用户名 nagios,密码123456mysql> grant all privileges on *.* to nagios@localhost identified by '123456';Query OK, 0 rows...【阅读全文】
1.mysql用户创建:shell> mysql --user=root mysql mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost IDENTIFIED BY "something" WITH GRANT OPTION; mysql> GRANT ALL PRIVILEGES ON *.* TO monty@"%" IDENTIFIED BY "something" WITH GRANT OPTION; mysql> GRANT RELOAD,PROCESS ON *.* TO admin@localhos...【阅读全文】