my_nagios 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/app/models/my_nagios/check.rb +2 -2
- data/app/views/my_nagios/checks/new.haml +1 -1
- data/lib/my_nagios/version.rb +1 -1
- 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: ec8c487c0c3cf38896a3090c27cf4ff668246de0
|
4
|
+
data.tar.gz: c9e53b05b8aa887e861e7ce57f409941a1750826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e0c2013b497d7b4061a567a662d4874c0c934b128b38b551954d81e58fed1c57e50c698942fdf1f84ac34ac2ee8e6d1b8b424e07c19fc56a4a46438c912f23
|
7
|
+
data.tar.gz: ad8bf7f49fc081df3f25899a366dc18c505244295cb1af8d8f8185b6929e1c2a19112b3d24f097134ec0b10834a65c1d99510ede5d5b0ed169971c4727f07af1
|
@@ -41,8 +41,8 @@ module MyNagios
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.determinate_status_by_response(response)
|
44
|
-
:
|
45
|
-
:
|
44
|
+
return :critical if not response.scan('CRITICAL').blank?
|
45
|
+
return :info if response.nil? or not response.scan('No such file or directory').blank?
|
46
46
|
:success
|
47
47
|
end
|
48
48
|
end
|
data/lib/my_nagios/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_nagios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitaly Omelchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|