cleanup mysqladmin items

tags/smeserver-zabbix-agent-0.4.3-1
Daniel Berteaud 12 years ago
parent c81263b47e
commit e1d2132cdd
  1. 11
      root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All
  2. 0
      root/var/lib/zabbix/bin/check_mysqladmin_status_sudo

@ -7,10 +7,9 @@
# Unit: <depend on the key> (for example, qps)
# Use multiplier: do not use
# Store Value: As is
UserParameter=mysql.uptime,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f2
UserParameter=mysql.threads,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f5
UserParameter=mysql.questions,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f8
UserParameter=mysql.slowqueries,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f12
UserParameter=mysql.qps,/var/lib/zabbix/bin/mysqladmin_status | cut -d" " -f29
UserParameter=mysql.size,/usr/bin/sudo -u mysql /usr/bin/du -s /var/lib/mysql | awk '\{print $1\}'
UserParameter=mysql.uptime,/var/lib/zabbix/bin/check_mysqladmin_status_sudo | cut -d" " -f2
UserParameter=mysql.threads,/var/lib/zabbix/bin/check_mysqladmin_status_sudo | cut -d" " -f5
UserParameter=mysql.questions,/var/lib/zabbix/bin/check_mysqladmin_status_sudo | cut -d" " -f8
UserParameter=mysql.slowqueries,/var/lib/zabbix/bin/check_mysqladmin_status_sudo | cut -d" " -f12
UserParameter=mysql.qps,/var/lib/zabbix/bin/check_mysqladmin_status_sudo | cut -d" " -f29

Loading…
Cancel
Save