Boa tarde senhores, sou aprendiz ainda do zabbix, mas vamos lá.
Tinha a versão 3.4 instalada funcionando tudo certinho, migrei para a 5.2.1 e após isso não mais conecta com o banco.
Conectei uma vez e após reiniciar o PC não mais conecta e aparece os erros e Logs abaixo:
Envio tb um print dos usuarios e bancos do MySQL onde mostra o banco que fala que não existe:
23087:20201125:134153.323 Starting Zabbix Server. Zabbix 5.2.1 (revision 4d0d532fb0).
23087:20201125:134153.323 ****** Enabled features ******
23087:20201125:134153.324 SNMP monitoring: YES
23087:20201125:134153.324 IPMI monitoring: YES
23087:20201125:134153.324 Web monitoring: YES
23087:20201125:134153.325 VMware monitoring: YES
23087:20201125:134153.325 SMTP authentication: YES
23087:20201125:134153.325 ODBC: YES
23087:20201125:134153.325 SSH support: YES
23087:20201125:134153.326 IPv6 support: YES
23087:20201125:134153.326 TLS support: YES
23087:20201125:134153.326 ******************************
23087:20201125:134153.326 using configuration file: /etc/zabbix/zabbix_server.conf
23087:20201125:134153.343 current database version (mandatory/optional): 05010052/05010052
23087:20201125:134153.344 required mandatory version: 05020000
23087:20201125:134153.344 starting automatic database upgrade
23087:20201125:134153.345 [Z3005] query failed: [1050] Table 'role' already exists [create table role (
`roleid` bigint unsigned not null,
`name` varchar(255) default '' not null,
`type` integer default '0' not null,
`readonly` integer default '0' not null,
primary key (roleid)
) engine=innodb]
23087:20201125:134153.345 database upgrade failed
25236:20201124:150702.019 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150712.019 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150722.020 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150732.020 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150742.021 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150751.671 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25690:20201124:150752.007 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150802.037 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150812.067 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150822.097 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150832.127 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150842.157 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| zabbixbroto |
| zabbixpf |
+--------------------+
6 rows in set (0.03 sec)
mysql> SELECT user FROM mysql.user;
+------------------+
| user |
+------------------+
| zabbix |
| debian-sys-maint |
| mysql.session |
| mysql.sys |
| root |
| zabbixpf |
+------------------+
Alguma solução?
Tinha a versão 3.4 instalada funcionando tudo certinho, migrei para a 5.2.1 e após isso não mais conecta com o banco.
Conectei uma vez e após reiniciar o PC não mais conecta e aparece os erros e Logs abaixo:
Envio tb um print dos usuarios e bancos do MySQL onde mostra o banco que fala que não existe:
23087:20201125:134153.323 Starting Zabbix Server. Zabbix 5.2.1 (revision 4d0d532fb0).
23087:20201125:134153.323 ****** Enabled features ******
23087:20201125:134153.324 SNMP monitoring: YES
23087:20201125:134153.324 IPMI monitoring: YES
23087:20201125:134153.324 Web monitoring: YES
23087:20201125:134153.325 VMware monitoring: YES
23087:20201125:134153.325 SMTP authentication: YES
23087:20201125:134153.325 ODBC: YES
23087:20201125:134153.325 SSH support: YES
23087:20201125:134153.326 IPv6 support: YES
23087:20201125:134153.326 TLS support: YES
23087:20201125:134153.326 ******************************
23087:20201125:134153.326 using configuration file: /etc/zabbix/zabbix_server.conf
23087:20201125:134153.343 current database version (mandatory/optional): 05010052/05010052
23087:20201125:134153.344 required mandatory version: 05020000
23087:20201125:134153.344 starting automatic database upgrade
23087:20201125:134153.345 [Z3005] query failed: [1050] Table 'role' already exists [create table role (
`roleid` bigint unsigned not null,
`name` varchar(255) default '' not null,
`type` integer default '0' not null,
`readonly` integer default '0' not null,
primary key (roleid)
) engine=innodb]
23087:20201125:134153.345 database upgrade failed
25236:20201124:150702.019 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150712.019 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150722.020 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150732.020 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150742.021 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25236:20201124:150751.671 [Z3001] connection to database 'zabbixbroto' failed: [0] could not connect to server: Connection refused
25690:20201124:150752.007 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150802.037 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150812.067 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150822.097 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150832.127 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
25690:20201124:150842.157 [Z3001] connection to database 'zabbixbroto' failed: [0] FATAL: database "zabbixbroto" does not exist
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| zabbixbroto |
| zabbixpf |
+--------------------+
6 rows in set (0.03 sec)
mysql> SELECT user FROM mysql.user;
+------------------+
| user |
+------------------+
| zabbix |
| debian-sys-maint |
| mysql.session |
| mysql.sys |
| root |
| zabbixpf |
+------------------+
Alguma solução?
Comment