send_nsca 0.4.10 → 0.4.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  module SendNsca
2
2
 
3
+ STATUS_OK = 0
4
+ STATUS_WARNING = 1
5
+ STATUS_CRITICAL = 2
6
+
3
7
  class NscaConnection
4
8
 
5
9
  require 'socket' # Sockets are in standard library
@@ -53,7 +53,7 @@ describe "SendNsca" do
53
53
  :port => 5667,
54
54
  :hostname => "kbedell",
55
55
  :service => "passive-checkin-test01" ,
56
- :return_code => 0,
56
+ :return_code => SendNsca::STATUS_OK,
57
57
  :status => "TEST"
58
58
  }
59
59
  nsca_connection = SendNsca::NscaConnection.new(args)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 10
9
- version: 0.4.10
8
+ - 11
9
+ version: 0.4.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - kevinzen