sensu-plugins-mssql 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3d2217350ae1c8f5e6f5b97ffc8a6726fe1add2
4
- data.tar.gz: 7c2e06d9873f183676264ece1d0eb2f24e3a7e9b
3
+ metadata.gz: 6ccefe58bb5bcd3ac6cd86604c938a007f541daa
4
+ data.tar.gz: 20fff63996fec03a385d655a74963dad1e1baa5a
5
5
  SHA512:
6
- metadata.gz: e5d8689b33b392d5c1e5c352460499bc549b5522343c83d27320c36a7e5b20baebdf6472d1dbe8b12cdf99600756c9e4a1b28e91b0f5f993da5a93408daf5cb4
7
- data.tar.gz: 73040e92bf6409a7838bf67889bca64863a4b5403917f6546f615e89587044917a1454f4588555d2ec2a410d9ca27477ed86874eca16c9385035bbb6af98c04d
6
+ metadata.gz: 9364c9be1a0480a31a46ba1efa795ff16184462a6bc2f05fa36d9cfe4b1a3919b53dbe575a6c1c49aa2840ed9e989117faea17ac6d7b208a16e52573c2607ce3
7
+ data.tar.gz: f4cf065c05aad2643f8fd600129e52f377d0a47b736a7da6dc4160449535a31affca2682afa2f66d3db1ecf80906ab3f1991cbd8e56b95a2a627fa4c856b3142
@@ -19,6 +19,7 @@
19
19
  #
20
20
 
21
21
  require 'sensu-plugin/check/cli'
22
+ require 'tiny_tds'
22
23
 
23
24
  class CheckMsSQLLag < Sensu::Plugin::Check::CLI
24
25
  option(:master_host,
@@ -59,16 +60,18 @@ class CheckMsSQLLag < Sensu::Plugin::Check::CLI
59
60
  boolean: true,
60
61
  description: 'Require SSL')
61
62
 
62
- option(:warn,
63
+ option(:warning,
63
64
  short: '-w',
64
65
  long: '--warning=VALUE',
65
66
  description: 'Warning threshold for replication lag (in MB)',
67
+ proc: proc(&:to_i),
66
68
  default: 60)
67
69
 
68
- option(:crit,
70
+ option(:critical,
69
71
  short: '-c',
70
72
  long: '--critical=VALUE',
71
73
  description: 'Critical threshold for replication lag (in seconds)',
74
+ proc: proc(&:to_i),
72
75
  default: 300)
73
76
 
74
77
  option(:timeout,
@@ -2,7 +2,7 @@ module SensuPluginsMsSQL
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-mssql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors