On Thu, 25 Feb 2016, Barry Kaplan wrote:
Ok, is this something that would be considered for change? In our
environment there is no guarantee that nodes will remain on the same IP.
For this we use consul and dnsmasq to lookup DNS names.
For now I will hard code server_hostname to the DNS of the ossec server. At
least that value exists when the agent starts. But when the ossec server
dies (AWS nodes die all the time) I will have update and restart every
agent.
I suspect this is impractical for performance reasons with the current
code. I'd recommend you find a way to proxy the server connection to the
real host to mask it's dynamic IP address change from the agents.
Antonio Querubin
e-mail: t...@lavanauts.org
xmpp: antonioqueru...@gmail.com