nagios监控mysql连接数

下载check_mysql_health-2.1.8.2.tar.gz
我自己网盘的下载地址http://pan.baidu.com/s/1dDgtRR7

# tar -zxf check_mysql_health-2.1.8.2.tar.gz
# cd check_mysql_health-2.1.8.2
# yum install perl-DBI perl-DBD-MySQL -y
# ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios-with-perl=/usr/bin/perl
make && make install
# cd /usr/local/nagios/libexec/
./check_mysql_health --hostname 192.168.0.1 --port 3306 --username myname --password mypassword --mode threads-connected --warning 700 --critical 1000
返回值为正确
OK – 9 client connection threads | threads_connected=9;700;1000

Zack

逗逼一枚!

您可能还喜欢...

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注