oxidized-script icon indicating copy to clipboard operation
oxidized-script copied to clipboard

feature: Fall back to IP

Open InsaneSplash opened this issue 8 years ago • 3 comments
trafficstars

If a node cannot be resolved through DNS, it should use the IP Address configured for the node. I'd even say I'd prefer to drop the DNS lookup and only use the IP Address configured for the node to make sure one is connecting to the correct device.

Forking DEVICE
We had the following error on node DEVICE:
no address for DEVICE

InsaneSplash avatar Mar 25 '17 13:03 InsaneSplash

I think we connect with IP, if you look at input/ssh.rb and input/telnet.rb

ytti avatar Mar 27 '17 09:03 ytti

When I run through a group of nodes, It seems to try use the name and not the IP.

InsaneSplash avatar Mar 31 '17 12:03 InsaneSplash

Dunno what to tell you, code says:

Oxidized.logger.debug "lib/oxidized/input/ssh.rb: Connecting to #{@node.name}"
@ssh = Net::SSH.start(@node.ip, @node.auth[:username], ssh_opts)

Why do you think it's using the name? Can you confirm in tshark/tcpdump that it's not trying to connect to expected IP?

ytti avatar Apr 01 '17 10:04 ytti