# database: Connection details for the Zabbix database
database:
    type: mysql
    # host: Database server hostname or IP
    # host: localhost
    # socket: Path to the MySQL unix socket (overrides host if set)
    socket: /var/run/mysqld/mysqld.sock
    # port: Database port (default: 3306)
    # port: 3306
    # credentials
    user: zbx_part
    passwd: <password>
    db: zabbix
    # ssl: required  # Use system CAs (Mandatory for Azure/AWS/GCP)
    # ssl:           # Or use custom certificates
    #   ca: /etc/ssl/certs/ca-cert.pem
    #   cert: /etc/ssl/certs/client-cert.pem
    #   key: /etc/ssl/certs/client-key.pem

# partitions: Define retention periods for tables. 
# Format: table_name: duration (e.g., 14d, 12w, 1m, 1y)
partitions:
    # daily: Partitions created daily
    daily:
        - history: 14d
        - history_uint: 14d
        - history_str: 14d
        - history_text: 14d
        - history_log: 14d
        - history_bin: 14d
    # weekly: Partitions created weekly
    weekly:
        # - auditlog: 180d
        # Note: auditlog is not partitionable by default in Zabbix 7.0 (PK missing clock).
        # To partition, the Primary Key must be altered to include 'clock'.
    # monthly: Partitions created monthly
    monthly:
        - trends: 1y
        - trends_uint: 1y

# logging: Where to send log output. Options: syslog, console
logging: syslog

# premake: Number of partitions to create in advance
premake: 10

# replicate_sql: False - Disable binary logging. Partitioning changes are NOT replicated to slaves (use for independent maintenance).
# replicate_sql: True - Enable binary logging. Partitioning changes ARE replicated to slaves (use for consistent cluster schema).
replicate_sql: False