Ad Widget

Collapse

installing ZABBIX 6 on ubuntu 18.04 / nginx/postgres

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dominix
    Junior Member
    • Jan 2022
    • 3

    #1

    installing ZABBIX 6 on ubuntu 18.04 / nginx/postgres

    went fine, but on web display pages are full of pg errors: any workaround ?

    Code:
    [LIST][*]pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → PostgresqlDbBackend->init() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_parameter_status(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → PostgresqlDbBackend->init() → pg_parameter_status() in include/classes/db/PostgresqlDbBackend.php:249]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initDB() → DBconnect() → DbBackend->checkDbVersion() → PostgresqlDbBackend->checkDbVersionTable() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	Return type of CCookieSession::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	Return type of CCookieSession::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	Return type of CCookieSession::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	Return type of CCookieSession::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	Return type of CCookieSession::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	Return type of CCookieSession::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CAutoloader->loadClass() → require() → CAutoloader->loadClass() → require() in include/classes/core/CCookieSession.php:25]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CUser->checkAuthentication() → DB::select() → DB::makeSql() → DB::createSelectQueryParts() → DB::applyQueryFilterOptions() → dbConditionString() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CUser->checkAuthentication() → CUser->addExtraFields() → CUser->getUserType() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CUser->checkAuthentication() → DB::update() → DB::checkValueTypes() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->authenticateUser() → CWebUser::checkAuthentication() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CUser->checkAuthentication() → DB::update() → dbConditionString() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → ZBase->initComponents() → CMenuHelper::getMainMenu() → CWebUser::checkAccess() → CRoleHelper::checkAccess() → CRoleHelper::loadRoleRules() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CRole->get() → CApiService->createSelectQuery() → CApiService->createSelectQueryParts() → CRole->applyQueryFilterOptions() → CApiService->applyQueryFilterOptions() → dbConditionString() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913]
    	pg_escape_string(): Automatic fetching of PostgreSQL connection is deprecated [actionconf.php:22 → require_once() → ZBase->run() → CViewHelper::loadSidebarMode() → CProfile::get() → zbx_dbstr() → pg_escape_string() in include/db.inc.php:913][/LIST]
  • dominix
    Junior Member
    • Jan 2022
    • 3

    #2
    here I try to show how it render in the web browser.

    Click image for larger version

Name:	Capture du 2022-01-18 16-46-29.png
Views:	1809
Size:	650.4 KB
ID:	438293

    Comment

    • rexfordnyrk
      Junior Member
      • Feb 2022
      • 2

      #3
      Hello dominix Please were you able to find a way around these errors?
      How did you solve this?
      Has it got to do with php version? I am using 8.1 on RHEL with PGSQL 12

      Comment

      • rexfordnyrk
        Junior Member
        • Feb 2022
        • 2

        #4
        I guess it turns out to be a php problem. I rolled back to php 7.4 and everything works great!

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          If you would read docs...
          PHP 7.2.5 or later PHP 8.0 is not supported.

          Comment

          • dominix
            Junior Member
            • Jan 2022
            • 3

            #6
            I installed ZABBIX on another server, and dropped this one

            Comment

            Working...