bin/check-influxdb-query.rb in sensu-plugins-influxdb-0.0.3 vs bin/check-influxdb-query.rb in sensu-plugins-influxdb-0.0.4

- old
+ new

@@ -74,11 +74,11 @@ option :query, short: '-q QUERY', long: '--query QUERY', required: true, - description: 'Query to run. See http://influxdb.com/docs/v0.8/api/query_language.html' + description: 'Query to run. See https://influxdb.com/docs/v0.9/query_language/query_syntax.html' option :alias, short: '-a ALIAS', long: '--alias ALIAS', default: nil, @@ -124,10 +124,10 @@ # on: :tail, # boolean: true, # proc: proc { puts "Version #{VERSION}" }, # exit: 0 - def run # rubocop:disable all + def run influxdb = InfluxDB::Client.new config[:database], host: config[:host], port: config[:port], username: config[:username], password: config[:password]