Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow host check to match when hostname is listed under 'Other names' #56
I ran into issues where the
I modified the command to filter out the 'Other names' line so that the 'Connected' line would always be above it. Then we have grep return two lines after a match and one line before. This was to prevent a situation where the command didn't return nodes that have 'other names' and a connected message for a prior node would appear two lines above the node being probed.
I'd be happy to try out other approaches if there might be a cleaner method.