rnagios 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rnagios/plugin.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e482cbbd4a2664eb0d896379937a7ec4f645974a
|
4
|
+
data.tar.gz: 71cdc99bfd75fcc96eeeaa4d61413940e593ade6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5306dad375e907ecf55afc1db3b4c9d5f77e5a8deb89397547256726adb43ef1602f4227dfe5c36b58a09bd64e803008b63792c1bd4e250b19eb398b3deb6d82
|
7
|
+
data.tar.gz: 58e5f279a43a91d5a288741890568b6fcc61bc0225d675cdf6e57d903363c6048fde3926d879ba7aeeee6448a3d4e9bf0d87528cefc356082e7b6af4575b4ec7
|
data/lib/rnagios/plugin.rb
CHANGED
@@ -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.
|
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-
|
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.
|