Dashboard

43 views
Skip to first unread message

Alessandro Carvalho

unread,
Jun 11, 2019, 4:31:13 PM6/11/19
to OpMon
boa tarde, 

Estou com problemas no dashboard que estou criando, quando tento dar o share retorna o erro anexo.

outro problema é que a versão free diz ter disponibilidade para 2 dash, mas quando salvo o segundo ele diz q o limite foi excedido.


Obrigado
Capturar.PNG

Alessandro Carvalho

unread,
Jun 17, 2019, 2:56:20 PM6/17/19
to OpMon
boa tarde, ainda continuo com o problema, tentei subir outro opmon e migrar os dados mas o erro foi junto.

Ednilson Correa

unread,
Jun 18, 2019, 3:54:06 PM6/18/19
to OpMon
Olá Alessandro,
Baixei a ISO do nosso site, e criei dois dashboards sem que fosse gerado o erro informado! (segue anexo)


Houve algum erro na instalação do seu OpMon?
Pode tentar reinstalar o pacote opmon-dashboard-9.0.0-1.noarch

E também verificar a estrutura das tabelas na base de dados:

A estrutura correta é essa:

MariaDB [opmon4]> show create table dashboards;
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table      | Create Table                                                                                                                                                                                  |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dashboards | CREATE TABLE `dashboards` (
  `id` int(10) NOT NULL DEFAULT '0',
  `var` varchar(50) NOT NULL DEFAULT '',
  `value` longblob,
  PRIMARY KEY (`id`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)



MariaDB [opmon4]> show create table dashboards_resources;
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table                | Create Table                                                                                                                                                                                            |
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dashboards_resources | CREATE TABLE `dashboards_resources` (
  `id` int(10) NOT NULL DEFAULT '0',
  `var` varchar(50) NOT NULL DEFAULT '',
  `value` longblob,
  PRIMARY KEY (`id`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)


Se alguma delas estiver diferente, pode dropar a tabela e recriar com essa estrutura.
Se houver necessidade, faça backup delas antes e depois importe na estrutura nova.

[ ]'s
Ednilson
2019-06-18_16-44.png
2019-06-18_16-43.png

Alessandro Carvalho

unread,
Jun 18, 2019, 4:06:07 PM6/18/19
to OpMon
Oi Ednilson, 

Estava funcionando, parou de uma hora pra outra quando removi um dash e recriei outro, fiz o procedimento informado mas o problema persiste, segue log

[root@opmon ~]# yum reinstall  opmon-dashboard-9.0.0-1.noarch
Loaded plugins: fastestmirror
Setting up Reinstall Process
Loading mirror speeds from cached hostfile
 * base: ftp.unicamp.br
 * extras: centos.xpg.com.br
 * updates: linorg.usp.br
Resolving Dependencies
--> Running transaction check
---> Package opmon-dashboard.noarch 0:9.0.0-1 will be reinstalled
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================
 Package                                        Arch                                  Version                                  Repository                                 Size
===============================================================================================================================================================================
Reinstalling:
 opmon-dashboard                                noarch                                9.0.0-1                                  opmon-base                                 18 M

Transaction Summary
===============================================================================================================================================================================
Reinstall     1 Package(s)

Total download size: 18 M
Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
opmon-dashboard-9.0.0-1.noarch.rpm                                                                                                                      |  18 MB     00:28
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : opmon-dashboard-9.0.0-1.noarch                                                                                                                              1/1
  Verifying  : opmon-dashboard-9.0.0-1.noarch                                                                                                                              1/1

Installed:
  opmon-dashboard.noarch 0:9.0.0-1

Complete!
[root@opmon ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 32374
Server version: 10.0.38-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use opmon4
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [opmon4]> show create table dashboards;
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table      | Create Table                                                                                                                                                                                  |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dashboards | CREATE TABLE `dashboards` (
  `id` int(10) NOT NULL DEFAULT '0',
  `var` varchar(50) NOT NULL DEFAULT '',
  `value` longblob,
  PRIMARY KEY (`id`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

MariaDB [opmon4]> show create table dashboards_resources;
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table                | Create Table                                                                                                                                                                                            |
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| dashboards_resources | CREATE TABLE `dashboards_resources` (
  `id` int(10) NOT NULL DEFAULT '0',
  `var` varchar(50) NOT NULL DEFAULT '',
  `value` longblob,
  PRIMARY KEY (`id`,`var`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

MariaDB [opmon4]>

Alessandro Carvalho

unread,
Jun 19, 2019, 8:57:27 AM6/19/19
to OpMon
Bom dia, 

Consegui resolver mas de uma maneira não muito boa.

subi um novo opmon e restaurei o backup todo, o problema continuou, subi um outro opmon e migrei apenas a tabela opcfg, fiz um full export e funcionou normalmente.

Alessandro Carvalho

unread,
Jun 19, 2019, 9:10:25 AM6/19/19
to OpMon
Consegui restaurar o opmon original sobrescrevendo a opmon4 que retirei do opmon que subi pra testes

obrigado Ednilson por mostrar o caminho!

Ednilson Correa

unread,
Jun 19, 2019, 9:26:15 AM6/19/19
to OpMon
Está certo então!

As bases que você estava importando anteriormente deviam estar com alguma coisa corrompida..

[ ]'s
Ednilson
Reply all
Reply to author
Forward
0 new messages