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 +4 -4
- data/app/models/my_nagios/check.rb +3 -2
- data/app/views/my_nagios/checks/_form.haml +5 -1
- data/config/response_matches.yml +7 -0
- data/lib/my_nagios/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e159c1af6b876084ddd20065a7a34457aaad958e
|
4
|
+
data.tar.gz: c496c5b760f0e6c7e1b9e91051f36303a187c57e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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
|
|
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.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-
|
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
|