oxidized-script
oxidized-script copied to clipboard
feature: Fall back to IP
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
I think we connect with IP, if you look at input/ssh.rb and input/telnet.rb
When I run through a group of nodes, It seems to try use the name and not the IP.
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?