Skip to content

zabbix database setup fails #1029

@rmaeder

Description

@rmaeder

configuring the zabbix server failed, with both, mysql, and postgresql. the puppet run says

Notice: /Stage[main]/Zabbix::Database::Postgresql/Exec[zabbix_create.sql]/returns: /bin/sh: 1: cd: can't cd to /usr/share/zabbix-sql-scripts/postgresql/
that path is wrong. it should be /usr/share/zabbix/sql-scripts/postgresql/

the logic is in
https://github.com/voxpupuli/puppet-zabbix/blob/master/manifests/database/mysql.pp#L26-L28
and
https://github.com/voxpupuli/puppet-zabbix/blob/master/manifests/database/postgresql.pp#L26-L30

there should be a / rather than a - there

this is with Debian 13, and zabbix 1:7.4.7-1+debian13
installed from zabbix-release 1:7.4-1+debian13

workaround in hiera:
zabbix::database::postgresql::database_schema_path: /usr/share/zabbix/sql-scripts/postgresql/ zabbix::database::mysql::database_schema_path: /usr/share/zabbix/sql-scripts/mysql/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions