PDA

View Full Version : zabbix with dynamic ip (agentd)


axel
30-08-2005, 10:39
Hi

I have a new zabbix @ a local network with a dynamic IP.

How can i configure the agents @ the clients.

i have to set the zabbix server @ each client .

for example:

server="zabbix server ip"

But i have a dynamic zabbix Server ip.

Anyone can help me to fix the Problem ?

Alex Rabotiajev
30-08-2005, 11:52
Hi

I have a new zabbix @ a local network with a dynamic IP.

How can i configure the agents @ the clients.

i have to set the zabbix server @ each client .

for example:

server="zabbix server ip"

But i have a dynamic zabbix Server ip.

Anyone can help me to fix the Problem ?

You mast use computer name from dns. Not ip addres.

axel
30-08-2005, 12:16
But if i set.

Server=host.dyndns.org

the zabbix_agentd.log say me .

Connection from [xx.xx.193.201] rejected. Allowed server is [host.dynalias.org]

What can i do ? :)

James Wells
30-08-2005, 14:36
Greetings,

I actually just reposted Simon Matter's patch for this last night. The patch is in the thread called;
PATCH: Allow use of server Hostname or IP in agent config (http://www.zabbix.com/forum/showthread.php?t=1290)

axel
08-09-2005, 11:49
hi again :)

ok i edit my security.c with the changes.
Than i recompile it with ./configure --enable-agent --prefix=/..../...

now i start the new agentd again but i have the same Problem

do i miss something ?

James Wells
08-09-2005, 14:45
Grrrr. I guess I misunderstood your original message. What you are dealing with is different from the intent of the patch. The patch supports server naming, however, it uses DNS to look up the hostname of the servrer connecting to it. Unfortunately, dynalias.org does not update the DNS PTR records, which is what the agent has to use as it is looking up the host name from the server IP.

In your case, you will have to use the Zabbix agent in active mode.

axel
08-09-2005, 16:05
ok thx i try it :)

James Wells
08-09-2005, 16:28
Good luck. ;) And sorry for the misunderstanding.

ruckus37
08-09-2005, 19:37
Just for interest are you also monitoring client pc's

James Wells
08-09-2005, 19:54
Was just thinking about this a bit more. and I think I see HUGE problem.

On startup, the agent reads the config file to obtain the server's IP address, or if you use the patch, the servers IP address or hostname which it translates into an IP address. The agent will continue to use that IP address, and that IP address only until it is restarted. Now, depending on how often you recieve a new IP address, this could cause you to completely lose contact with the agents, and even more importantly, open the agents up to possible compromise.

For example. You recieve a DHCP assigned IP address, you remote over and start the agent. The agent gets the IP address and starts communicating with the server. 15 minutes later, you get a new DHCP IP addressfor whatever reason. You will have to restart the agent or competely lose access to it. However, agent, is still sending data to the old IP address and if someone just happens to have a Zabbix server running at that old IP address, they now have full access to the Zabbix agent.

axel
09-09-2005, 00:28
i find out another way but not stable way ;). (only for testing)

I write a script that if the firewall @ the local network get a new ip the firewall connect to a monitored server and edit the zabbix_agentd.cfg and restart agent.

But tomorrow i try the aktive checks i hope that everything i need is supported

hwinkel
12-09-2005, 15:46
Hi,

We also thinking of using Zabbix for many remote devices connected with
DSL lines with Dynamic IP's.

Can the agentd send performance data to the server ?