Ad Widget

Collapse

Zabbix_get em uma estrutura com proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fatima R R Tonon
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Oct 2004
    • 29

    #1

    Zabbix_get em uma estrutura com proxy

    Estamos tendo dificuldade de recuperar itens coletados via zabbix_get, a partir de um script php, na estrutura com proxy.

    Estrutura
    Server (ceonectando via porta 10051) --> proxy (se conectando ao agente com trap - 10052 e agente 10050)

    A partir do server precisamos recuperar algumas informações através um script que emitiria por exemplo o comando abaixo, onde 10.30.202.208 é o endereço do proxy e 10.30.202.63 o endereço do servidor monitorador.

    zabbix_get -I10.30.202.208 -s10.30.202.63 -p10050 -ksystem.swap.size[,total]

    Estamos recebendo a seguinte mensagem de erro:

    zabbix_get [4766]: Get value error: bind() failed with error 99: Cannot assign requested address

    Como eu poderia utilizar o comando zabbix-get a partir de programas e recuperar a informação quando se tem uma estrutura de proxy ?
  • Luciano Komosinski
    Junior Member
    Zabbix Certified Specialist
    • Sep 2006
    • 8

    #2
    Zabbix_get with proxy

    We are having difficulty retrieving items collected via zabbix_get from a php script, the structure with proxy.

    Structure
    Server (connecting with port 10051) -> proxy (connecting to the agent to trap - and agent 10052 10050)

    From the server must retrieve some information using a script that would send for example the command below, where is the address of 10.30.202.208 and 10.30.202.63 proxy server address tracker.

    zabbix_get-I10.30.202.208-s10.30.202.63-p10050-ksystem.swap.size [in full]

    We are getting the following error message:

    zabbix_get [4766]: Get value error: bind () failed with error 99: Can not assign requested address

    How could I use zabbix-get command from the program and retrieve information when it has a structure of proxy?

    Comment

    • exkg
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified Specialist
      • Mar 2007
      • 718

      #3
      Oi,

      A questao eh que um zabbix_get nao vai atravessar o Proxy.
      O zabbix_get soh vai funcionar diretamente do proxy. Se o ZABBIX Server nao tiver acesso a rede host monitorado e nem mesmo ao proxy nao vai ser possivel executar o zabbix_get partindo do ZABBIX Server contra o host monitorado.

      A opcao -I do zabbix_get server para especificar o IP de origem de alguma interface existente no ZABBIX Server (de onde partiu o zabbix_get).


      []s,
      Luciano
      Last edited by exkg; 24-11-2010, 05:35.
      --
      Luciano Alves
      www.zabbix.com
      Brazil | México | Argentina | Colômbia | Chile
      Zabbix Performance Tuning

      Comment

      Working...