PDA

View Full Version : Zabbix_get em uma estrutura com proxy


Fatima R R Tonon
22-11-2010, 20:09
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
23-11-2010, 12:10
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?

exkg
24-11-2010, 04:32
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