From e1d2132cdd54d5375880ac637208ef10019b4424 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 16 Apr 2013 12:13:50 +0200 Subject: [PATCH] cleanup mysqladmin items --- .../etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All | 11 +++++------ .../bin/{mysqladmin_status => check_mysqladmin_status_sudo} | 0 2 files changed, 5 insertions(+), 6 deletions(-) rename root/var/lib/zabbix/bin/{mysqladmin_status => check_mysqladmin_status_sudo} (100%) diff --git a/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All b/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All index 7a93bdc..c9e31c2 100644 --- a/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All +++ b/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf.d/mysql.conf/10All @@ -7,10 +7,9 @@ # Unit: (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 diff --git a/root/var/lib/zabbix/bin/mysqladmin_status b/root/var/lib/zabbix/bin/check_mysqladmin_status_sudo similarity index 100% rename from root/var/lib/zabbix/bin/mysqladmin_status rename to root/var/lib/zabbix/bin/check_mysqladmin_status_sudo