rnagios 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rnagios/plugin.rb +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88ca321fd55063124516f59aae279cb493116805
4
- data.tar.gz: e5ab19f6e4a6d7f67697b7e8601228642e356cfa
3
+ metadata.gz: e482cbbd4a2664eb0d896379937a7ec4f645974a
4
+ data.tar.gz: 71cdc99bfd75fcc96eeeaa4d61413940e593ade6
5
5
  SHA512:
6
- metadata.gz: f06b79ec7a24528f5ef3ff8c756acd93c70606c74be1e9fec1307a63625a9c0b5f9dc83a78c7bf096e8772ec22ead916482186c4104317e227a20182dd1c2f5f
7
- data.tar.gz: f3239d00aa645c363c6043ff10cefbc44fabacaf52b1424c0a9fb2a14f0726693b29c130c724821c39da49bde667b0af2f5c53f5f228039a66b4852bc2c64ce5
6
+ metadata.gz: 5306dad375e907ecf55afc1db3b4c9d5f77e5a8deb89397547256726adb43ef1602f4227dfe5c36b58a09bd64e803008b63792c1bd4e250b19eb398b3deb6d82
7
+ data.tar.gz: 58e5f279a43a91d5a288741890568b6fcc61bc0225d675cdf6e57d903363c6048fde3926d879ba7aeeee6448a3d4e9bf0d87528cefc356082e7b6af4575b4ec7
@@ -192,10 +192,10 @@ class Plugin
192
192
  if valid_value_w && valid_value_c
193
193
  if time_took >= @w && time_took < @c && status.status != ActiveStatus::WARNING
194
194
  status.status = ActiveStatus::WARNING
195
- status.message += '; check time >= ' + @w
195
+ status.message += '; check time >= ' + @w.to_s
196
196
  elsif time_took >= @c && status.status != ActiveStatus::CRITICAL
197
197
  status.status = ActiveStatus::CRITICAL
198
- status.message += '; check time >= ' + @c
198
+ status.message += '; check time >= ' + @c.to_s
199
199
  end
200
200
  end
201
201
  status.message = format_passive_service_check(status)
@@ -203,10 +203,10 @@ class Plugin
203
203
  if valid_value_w && valid_value_c
204
204
  if time_took >= @w && time_took < @c && status.status != ActiveStatus::WARNING
205
205
  status.status = ActiveStatus::WARNING
206
- status.message += '; check time >= ' + @w
206
+ status.message += '; check time >= ' + @w.to_s
207
207
  elsif time_took >= @c && status.status != ActiveStatus::CRITICAL
208
208
  status.status = ActiveStatus::CRITICAL
209
- status.message += '; check time >= ' + @c
209
+ status.message += '; check time >= ' + @c.to_s
210
210
  end
211
211
  end
212
212
  status.message = format_active_service_check(status, start_time, end_time)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rnagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger A. Rubio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Make your own plugins in Ruby for Nagios to run on the Nagios server
14
14
  or as NSCA plugins on remote servers.