mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:50:12 +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