Ad Widget

Collapse

Problemas ao coletar os dados

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rbragatce
    Junior Member
    • Jan 2015
    • 8

    #1

    Problemas ao coletar os dados

    Olá amigos
    Configurei o postbix como manda o tutorial na propria pagina do zabbix e os arquivos do postbix, mas os items não estão coletando dados estam zerados !!! Gostaria de uma ajuda para coletar os dados, vou colocar minhas configurações logo abaixo:
    /opt/postbix/conf/config.props
    #Comma separed list of zabbix servers and ports
    ZabbixServerList=ZabbixServer
    ZabbixServer.Address=10.0.0.1
    ZabbixServer.Port=10051


    PostbixDaemon.PidFile=./logs/postbix.pid
    #frequency of item's refresh
    PostbixDaemon.Sleep=120
    #MaxThreadNumber should be >= than the number of your databases
    PostbixDaemon.MaxThreadNumber=100

    #put here your databases in a comma separated list
    #DatabaseList=DB1,DB2,DB3
    DatabaseList=DB1,DB2

    #Configuration of Connection pool
    #Maximum number of active connection inside pool
    DatabaseList.MaxActive=10
    #The maximum number of milliseconds that the pool will wait
    #(when there are no available connections) for a connection to be returned
    #before throwing an exception, or <= 0 to wait indefinitely.
    DatabaseList.MaxWait=100
    DatabaseList.MaxIdle=1

    #define here your connection string for each database
    DB1.Url=jdbcostgresql://localhost:5432/meudb
    DB1.User=zabbix
    DB1.Password=123456


    DB2.Url=jdbcostgresql://localhost:5433/meudb2
    DB2.User=zabbix
    DB2.Password=123456

    #Query Parameter Files
    QueryListFile=/opt/postbix/conf/query.props
    Essa ae a minha saida do log do postbix

    2015-01-13 14:22:23,226 [main] INFO Postbix - Starting Postbix Version 1.1.0
    2015-01-13 14:22:23,262 [main] INFO Postbix - Postbix started with pid:18750
    2015-01-13 14:22:23,263 [main] INFO Postbix - PidFile -> ./logs/postbix.pid
    2015-01-13 14:22:23,533 [main] INFO Postbix - Connected as zabbix
    2015-01-13 14:22:23,535 [main] INFO Postbix - --------- on Database -> meudb
    2015-01-13 14:22:23,563 [main] INFO Postbix - Connected as zabbix
    2015-01-13 14:22:23,565 [main] INFO Postbix - --------- on Database -> meudb2
    2015-01-13 14:22:23,760 [pool-1-thread-1] INFO Postbix - Done with dbJob on database DB1 QueryList elapsed time 134 ms
    2015-01-13 14:22:23,971 [pool-1-thread-2] INFO Postbix - Done with dbJob on database DB2 QueryList elapsed time 335 ms
    Last edited by rbragatce; 15-01-2015, 16:14. Reason: foi resolvido meu problema
  • guidoms
    Junior Member
    • Nov 2014
    • 2

    #2
    Poste o seu query.props. E a como foi feita a configuração da chave de um dos itens configurados no zabbix.

    Comment

    • rbragatce
      Junior Member
      • Jan 2015
      • 8

      #3
      [RESOLVIDO] problema ao coletar os dados

      Olá hoje descobri como resolver o problema da coleta de dados no itens do postbix, apos ler essa mensagem da criadora do postbix no forum, colocarei logo abaixo:
      from your log seem that you have a database called "DB1" inside config file
      DEBUG Orabbix - Ready to run DBJob for dbname ->DB1
      and you should have the same host
      DB1 inside zabbix server.
      if you don't have an host with the name DB1 zabbix simply discard the item received.
      __________________
      Andrea Dalle Vacche
      website:http://www.smartmarmot.com/
      e-mail:[email protected]
      Author of:Mastering Zabbix Book
      Reply With Quote
      Descobri que deveria setar o arquivo config.props com o nome do meu host que estava configurado no zabbix, entâo mudei de DB1 para o nome do meu host que era servidorDB, e no zabbix deveria ter um host com o mesmo nome , se nâo estiver usando o mesmo nome o zabbix descarta ...

      um abraçco

      Comment

      Working...