From c69b2c47eeb10fe41e00a7d9faf028d003f3d034 Mon Sep 17 00:00:00 2001 From: slerena Date: Tue, 9 Oct 2012 17:57:22 +0000 Subject: [PATCH] 2012-10-09 Sancho Lerena * util/plugin/mysql_plugin.sh: Fixed problem on composed name variables. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7060 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/plugin/mysql_plugin.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index fde3a960b2..0fda829612 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2012-10-09 Sancho Lerena + + * util/plugin/mysql_plugin.sh: Fixed problem on composed + name variables. + 2012-10-08 Vanessa Gil * util/tool_api.pl: Added: validate events using API. diff --git a/pandora_server/util/plugin/mysql_plugin.sh b/pandora_server/util/plugin/mysql_plugin.sh index 418e94e78e..bb62fceaf8 100755 --- a/pandora_server/util/plugin/mysql_plugin.sh +++ b/pandora_server/util/plugin/mysql_plugin.sh @@ -62,6 +62,6 @@ done # Execution -echo "show global status" | mysql -u $USER -p$PASSWORD -h$SERVER | grep "$QUERY" | awk '{ print $2 }' +echo "show global status" | mysql -u $USER -p$PASSWORD -h$SERVER | grep "$QUERY" | head -1 | awk '{ print $2 }'