From ffa2b69d4bc973386e213477cf0727e04bc6f9ad Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Thu, 29 Oct 2020 10:10:07 +0100 Subject: [PATCH] Added mysql db size to healthcheck utility Signed-off-by: Janos SUTO --- util/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/healthcheck.sh b/util/healthcheck.sh index 710cc508..6b0e9122 100755 --- a/util/healthcheck.sh +++ b/util/healthcheck.sh @@ -37,4 +37,4 @@ echo -e "\nError emails: $errors" echo -e "Sphinx data: $(du -hs "$SPHINX_DIR")\n" mysql -t -u "$mysqluser" -p"$mysqlpwd" "$mysqldb" <<< "select * from counter" - +mysql -t -u "$mysqluser" -p"$mysqlpwd" information_schema <<< "select table_schema as db, sum(data_length+index_length) as size from TABLES WHERE table_schema='$mysqldb' GROUP BY table_schema"