I'm having difficulty with MySQL monitoring on one of my servers. Using the same template and (standard) user-defined checks that work fine on another (MySQL) host, the agent spits out "ZBX_NOTSUPPORTED" errors when (I think) it shouldn't.
When I run 'zabbix_agentd -p' on the server, the MySQL section is:
When I shoot 'zabbix_get' commands at the host from my zabbix server, I get ZBX_NOTSUPPORTED errors:
I'm assuming I'm overlooking something very obvious and very stupid, but I have no idea what it is.
Hope someone can shove me in the right direction...
Code:
The content of the zabbix_agentd.conf is this: UserParameter=mysql.ping,mysqladmin -uroot -ppassword ping|grep alive|wc -l UserParameter=mysql.uptime,mysqladmin -uroot -ppassword status|cut -f2 -d":"|cut -f1 -d"T" UserParameter=mysql.threads,mysqladmin -uroot -ppassword status|cut -f3 -d":"|cut -f1 -d"Q" UserParameter=mysql.questions,mysqladmin -uroot -ppassword status|cut -f4 -d":"|cut -f1 -d"S" UserParameter=mysql.slowqueries,mysqladmin -uroot -ppassword status|cut -f5 -d":"|cut -f1 -d"O" UserParameter=mysql.qps,mysqladmin -uroot -ppassword status|cut -f9 -d":" UserParameter=mysql.version,mysql -V
Code:
mysql.ping [t|1] mysql.uptime [t| 1712921 ] mysql.threads [t| 1 ] mysql.questions [t| 1471253 ] mysql.slowqueries [t| 0 ] mysql.qps [t| 0.859] mysql.version [t|mysql Ver 14.12 Distrib 5.0.18, for suse-linux (i686) using readline 5.1]
Code:
# zabbix_get -s mysqlhost -k system.uptime 1715014 # zabbix_get -s mysqlhost -k mysql.uptime ZBX_NOTSUPPORTED # zabbix_get -s mysqlhost -k mysql.questions ZBX_NOTSUPPORTED
Hope someone can shove me in the right direction...
Comment