Ad Widget

Collapse

Montior Database Size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaniwoop
    Senior Member
    • Jan 2010
    • 232

    #1

    Montior Database Size

    My Zabbix database has grown over the years and deicided it is time to montior it's growth.

    I use MySQL with innodb file per table, so its not that obvious how much space it is taking up.

    I added two user parameters to the database server:

    Code:
    UserParameter=database.size.data,mysql -e 'select sum(data_length) from information_schema.tables where TABLE_SCHEMA = "zabbix";' -Ns 
    UserParameter=database.size.index,mysql -e 'select sum(index_length) from information_schema.tables where TABLE_SCHEMA = "zabbix';" -Ns
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    you also might be interested in the userparameter that's in the example files (misc/conf/zabbix_agentd/userparameter_mysql.conf)
    Zabbix 3.0 Network Monitoring book

    Comment

    Working...