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 +4 -4
- data/bin/check-mssql-lag.rb +5 -2
- data/lib/sensu-plugins-mssql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccefe58bb5bcd3ac6cd86604c938a007f541daa
|
4
|
+
data.tar.gz: 20fff63996fec03a385d655a74963dad1e1baa5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9364c9be1a0480a31a46ba1efa795ff16184462a6bc2f05fa36d9cfe4b1a3919b53dbe575a6c1c49aa2840ed9e989117faea17ac6d7b208a16e52573c2607ce3
|
7
|
+
data.tar.gz: f4cf065c05aad2643f8fd600129e52f377d0a47b736a7da6dc4160449535a31affca2682afa2f66d3db1ecf80906ab3f1991cbd8e56b95a2a627fa4c856b3142
|
data/bin/check-mssql-lag.rb
CHANGED
@@ -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(:
|
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(:
|
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,
|