Code: Select all
https://support.nagios.com/forum/viewtopic.php?f=16&t=56543I am concerned that this issue is happening again so soon. Is there a way to prevent the corruption for happening?
Code: Select all
https://support.nagios.com/forum/viewtopic.php?f=16&t=56543Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --tableCode: Select all
grep mysql /usr/local/nagiosxi/html/config.inc.php | wc -lCode: Select all
echo "SELECT relname as Table, pg_size_pretty(pg_total_relation_size(relid)) As Size, pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as ExternalSize FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;" | psql nagiosxi nagiosxi