my_nagios 0.0.17 → 0.0.18

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: 868eaa830fbf19db677fa809ead5972a0ed65169
4
- data.tar.gz: 854a300b6f0db40891beab100b8055ac2e95ae6a
3
+ metadata.gz: e159c1af6b876084ddd20065a7a34457aaad958e
4
+ data.tar.gz: c496c5b760f0e6c7e1b9e91051f36303a187c57e
5
5
  SHA512:
6
- metadata.gz: 2c9881bf6f7f410441655516aa72a6eef77751978b44bc7e928511ac0beba9b91e8661d88705403d0d32797298fdf9684205fe09fd3fb920adf8d2a9f62d9b0a
7
- data.tar.gz: 4df2173a971a71cb971480dd8b1664e44985215b7d563a0ee3f8aaeeb6d30b6080df36e1b1f48e5349b6a4e1e3f986a0d56996f4285b5e54e4f90e3bf9138cea
6
+ metadata.gz: c61b31172b266832baee8a37b5c8d9b2d1cb140b0afa6c46902b643a315f39acfebf74c848e983d95dfc9f5f6e350d417a9a2d0632ee57874938ea8776643a6f
7
+ data.tar.gz: bc6a133739fc68aa286d652cdab69e19dee1a22d66ce417c795eff33a09b263a181329e39c85be243abdfd1e9fd451df2d3fafaabbc42ebf06a9f5d644d9b476
@@ -9,7 +9,8 @@ module MyNagios
9
9
 
10
10
  attr_accessor :additional_command_result
11
11
 
12
- INFO_STATES = ['AuthenticationFailed message', 'No such file or directory']
12
+ INFO_STATES = ['AuthenticationFailed message', 'No such file or directory']
13
+ ERROR_STATES = ['!ruby/exception', 'packet_write_wait: Connection to UNKNOWN: Broken pipe']
13
14
 
14
15
  def run!
15
16
  begin
@@ -46,7 +47,7 @@ module MyNagios
46
47
  end
47
48
 
48
49
  rescue => e
49
- check_list.update_all(state: :completed, status: :info, latest_state: e, latest_updated_at: Time.now)
50
+ check_list.each { |check| check.update(state: :completed, status: :info, latest_state: e, latest_updated_at: Time.now) }
50
51
  end
51
52
  end
52
53
 
@@ -48,4 +48,8 @@
48
48
 
49
49
  .form-group
50
50
  .col-sm-10.col-sm-offset-1
51
- =f.submit
51
+ =f.submit
52
+
53
+ .form-group
54
+ .col-sm-10.col-sm-offset-1
55
+ delete
@@ -0,0 +1,7 @@
1
+ critical:
2
+ - 'packet_write_wait: Connection to UNKNOWN: Broken pipe'
3
+ - '!ruby/exception'
4
+
5
+ info:
6
+ - AuthenticationFailed message
7
+ - No such file or directory
@@ -1,3 +1,3 @@
1
1
  module MyNagios
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
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.17
4
+ version: 0.0.18
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-07-22 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -188,6 +188,7 @@ files:
188
188
  - app/views/my_nagios/welcome/autorefresh.coffee
189
189
  - app/views/my_nagios/welcome/index.haml
190
190
  - config/initializers/sidekiq.rb
191
+ - config/response_matches.yml
191
192
  - config/routes.rb
192
193
  - config/schedule.yml
193
194
  - db/migrate/20160503110437_create_my_nagios_checks.rb