Hi,
I had a zabbix 6.2 instance running on Ubuntu 22.04 with Postgres
something got tangled up with php on this machine and I have uninstalled everything and reinstalled zabbix according to the guide here:
https://www.zabbix.com/download?zabb...ubuntu&os_vers ion=22.04&components=server_frontend_agent&db=pgsq l&ws=apache
Its notable that the URL /zabbix first screen for 6.4 still says "Zabbix 5.0" - not sure if that is a bug
Im trying to follow the guide for installing zabbix 6.4 on ubuntu 22.04 but I get errors once I put the postgres database information & pw in to the setup form
I see these errors:
Details Cannot connect to the database.
It looks like I have php8.1
Questions:
1) Any thoughts how to get past this error?
2) Did I need to do anything to "transform the postgres DB" from 6.2 to 6.4 ? Is there some upgrade of the database needed?
3) Is the postgres database for Zabbix used for just the web front end or is the zabbix server storing long term data in there as well?
4) If we lost that postgres database, what would be the impact? Would we have to recreate all the zabbix alerts and rules and tests ?
thanks for the assist & great project- thank you !
Matt
I had a zabbix 6.2 instance running on Ubuntu 22.04 with Postgres
something got tangled up with php on this machine and I have uninstalled everything and reinstalled zabbix according to the guide here:
https://www.zabbix.com/download?zabb...ubuntu&os_vers ion=22.04&components=server_frontend_agent&db=pgsq l&ws=apache
Its notable that the URL /zabbix first screen for 6.4 still says "Zabbix 5.0" - not sure if that is a bug
Im trying to follow the guide for installing zabbix 6.4 on ubuntu 22.04 but I get errors once I put the postgres database information & pw in to the setup form
I see these errors:
Details Cannot connect to the database.
- pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → PostgresqlDbBackend->init() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:902]
- pg_parameter_status(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → PostgresqlDbBackend->init() → pg_parameter_status() in include/classes/db/PostgresqlDbBackend.php:249]
- pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → PostgresqlDbBackend->isConnectionSecure() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:902]
- pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:902]
- pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:902]
- pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [setup.php:100 → CSetupWizard->__construct() → CSetupWizard->eventHandler() → CSetupWizard->dbConnect() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:902]
- The Zabbix database version does not match current requirements. Your database version: 6040000. Required version: 5000000. Please contact your system administrator.
- substr(): Passing null to parameter #1 ($string) of type string is deprecated [setup.php:108 → CPageHeader->__construct() → substr() in include/classes/html/pageheader/CPageHeader.php:67]
It looks like I have php8.1
Questions:
1) Any thoughts how to get past this error?
2) Did I need to do anything to "transform the postgres DB" from 6.2 to 6.4 ? Is there some upgrade of the database needed?
3) Is the postgres database for Zabbix used for just the web front end or is the zabbix server storing long term data in there as well?
4) If we lost that postgres database, what would be the impact? Would we have to recreate all the zabbix alerts and rules and tests ?
thanks for the assist & great project- thank you !
Matt
Comment