Is there any option to solve my problem without restarting the collectd service?
Essa pergunta foi feita também há sete anos . Mas ainda não há solução para esta limitação, exceto reiniciar o collectd.
Veja também um problema similar no github: O plug-in de rede não está se reconectando automaticamente ao endereço IP dinâmico
The network plugin is using UDP, so there's no real "connection" taking place. Fixing this would mean doing a DNS lookup for each batch of values sent over the network, which would be a compromise over performance.
I guess this is a problem you're also seeing with other "client-server" systems sharing this setup ? Aren't you able to notify collectd of the server IP address change ? Or cron a reload of collectd at the time the DHCP lease expires ? Or use the AMQP plugin to ship the values to the server without risking any loss ? I'm sure we can imagine other solutions for what really looks more like a network setup problem.