Closed adamdecaf closed 7 years ago
I can spin up a quick PR if you think this would be accepted.
Sorry for the delayed response. Hmm that is strange we should certainly add support say an array of results and check any of them. I would be more than happy to review a PR for that. I'd imagine the easiest thing to do is to make it take a string like it is now but split on commas to make it an array and then check each result against the list of acceptable results.
@majormoses Sure thing. https://github.com/sensu-plugins/sensu-plugins-dns/pull/26 feel free to merge/change it if needed.
Hi there!
I'm having a problem in which a site I'm hosting can be reached on 3 IPs, but often the dns name will only resolve to one of those IPs. Writing a
check-dns.rb
check for each IP will cause 2/3 to always fail.I'd like to write one
check-dns.rb
check which would look something like this:However, right now only the last
-r 74.200.39.25
is parsed and available inconfig[:result]
for the check. Thoughts?