sensu-plugins / sensu-plugins-dns

This plugin provides native DNS instrumentation for monitoring, including: record resolution
http://sensu-plugins.io
MIT License
5 stars 27 forks source link

check-dns.rb does not handle malformed server IP address #33

Open stevebanik-ndsc opened 6 years ago

stevebanik-ndsc commented 6 years ago

It should probably check for a valid IP address and write an error if invalid:

PS C:\opt\sensu\embedded\bin> .\ruby.exe .\check-dns.rb -d gmail.com -s 1234.56.78.910 DNS OK: Resolved gmail.com A