senedsa 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -127,7 +127,9 @@ module Senedsa
127
127
  def run(status,svc_output)
128
128
  begin
129
129
  Open3.popen3(command) do |stdin, stdout, stderr, wait_thr|
130
- stdin.write("%s\n" % [svc_hostname,svc_descr,STATUS[status],svc_output].join(send_nsca_delim))
130
+ payload = "%s" % [svc_hostname,svc_descr,STATUS[svc_status],svc_output].join(send_nsca_delim)
131
+ stdin.write("%s\n" % [payload])
132
+ stdin.close
131
133
  $stdout.write stdout.gets if STDIN.tty?
132
134
  raise SendNscaError, stderr.gets.chomp unless wait_thr.value.exitstatus == 0
133
135
  end
@@ -1,3 +1,3 @@
1
1
  module Senedsa
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senedsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-19 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Senedsa is a small utility and library wrapper for the Nagios send_nsca.
15
15
  email: gerir@evernote.com