Hi all, I would appreciate if you will share some statistics from your zabbix database.
I need it to be sure is a calculation in documentation correct. Here http://www.zabbix.com/documentation/...#database_size
So please perform this SQL query (it is very "light" and fast) and show its output.
If you are using innodb_file_per_table for MySQL it would be good to show also output of this command:
* adjust the path if yours is different
Check please also which zabbix server version you are using and mention here.
I need it to be sure is a calculation in documentation correct. Here http://www.zabbix.com/documentation/...#database_size
So please perform this SQL query (it is very "light" and fast) and show its output.
Code:
SELECT TABLE_NAME, TABLE_ROWS, AVG_ROW_LENGTH, ((DATA_LENGTH + INDEX_LENGTH)/TABLE_ROWS) AS AVG_ROW_LENGTH_CALCULATED,
DATA_LENGTH, INDEX_LENGTH, DATA_FREE,
((DATA_LENGTH + INDEX_LENGTH + DATA_FREE)/(1024*1024)) AS SUMMARY_SPACE_IN_MBYTES, CREATE_TIME
from information_schema.tables
where TABLE_SCHEMA='zabbix'
AND TABLE_NAME IN ('history', 'history_uint', 'history_log', 'history_str', 'history_text', 'trends', 'trends_uint', 'events')
ORDER BY SUMMARY_SPACE_IN_MBYTES DESC;
If you are using innodb_file_per_table for MySQL it would be good to show also output of this command:
Code:
# ls -lhS /var/lib/mysql/zabbix | head -n 15
Check please also which zabbix server version you are using and mention here.
Comment