mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
Added mysql db size to healthcheck utility
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4e378b09cd
commit
ffa2b69d4b
@ -37,4 +37,4 @@ echo -e "\nError emails: $errors"
|
|||||||
echo -e "Sphinx data: $(du -hs "$SPHINX_DIR")\n"
|
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" "$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"
|
||||||
|
Loading…
Reference in New Issue
Block a user