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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a989066826c15858c414c9ecdbae0fd97e7d3514
4
- data.tar.gz: 52ac38f85783c9807579f02d095fa1e9872f080f
3
+ metadata.gz: ec8c487c0c3cf38896a3090c27cf4ff668246de0
4
+ data.tar.gz: c9e53b05b8aa887e861e7ce57f409941a1750826
5
5
  SHA512:
6
- metadata.gz: d71f85f96192068013c563945c8382a3b7972387a393b973c6fe5ce720fff1b4e3d94aadacfb6e70127a4ac7946d2ea4622c85901136327811dcfc47ed7a2dc8
7
- data.tar.gz: 63203cda6f55189f473450befef29c7062d1e75afac54ea108f636f3a064cfa1344712f7077dc5fe6ebaa2fecaee0010ed5706ed03fd8736f55763a0ab710ed9
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
- :info if response.nil?
45
- :critical if response.scan('CRITICAL').blank?
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
@@ -2,7 +2,7 @@ Add new check
2
2
 
3
3
  =form_for @check do |f|
4
4
  =f.label :group
5
- =f.select :group, options_for_select( Group.all.map{|g| [g.name, g.id]} )
5
+ =f.select :group, options_for_select( MyNagios::Group.all.map{|g| [g.name, g.id]} )
6
6
  %br
7
7
  =f.label :host
8
8
  =f.text_field :host
@@ -1,3 +1,3 @@
1
1
  module MyNagios
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails