使用nagios插件 check_mysql_health 过程中遇到的error                               

1.如果在运行监控mysql插件的时候遇到了error安装以下依赖包就可以解决:

yum install perl-DBD-MySQL 

yum install -y perl-Time-HiRes

 

2.check_mysql_health插件使用方法:

./check_mysql_health  --hostname=127.0.0.1 --port=3306  --username=root --password=123456 --mode threads-connected  --warning=60 --critical=70

./check_mysql_health  --hostname=127.0.0.1 --port=3306  --username=root --password=123456 --mode slow-queries
 
./check_mysql_health  --hostname=127.0.0.1 --port=3306  --username=root --password=123456 --mode table-lock-contention

--mode  后面是监控的模块,模块名运行 ./check_mysql_health 获取。

相关文章:

  • 2021-10-25
  • 2022-12-23
  • 2021-09-27
  • 2022-01-20
  • 2021-04-01
  • 2021-11-07
  • 2021-04-14
猜你喜欢
  • 2021-06-11
  • 2021-04-27
  • 2021-11-04
  • 2022-12-23
  • 2021-04-11
  • 2021-09-24
  • 2021-04-28
相关资源
相似解决方案