my_nagios 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +38 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/images/my_nagios/chasing_arrows.gif +0 -0
  6. data/app/assets/javascripts/my_nagios/application.js +15 -0
  7. data/app/assets/javascripts/my_nagios/checks.coffee +11 -0
  8. data/app/assets/javascripts/my_nagios/welcome.coffee +0 -0
  9. data/app/assets/stylesheets/my_nagios/application.scss +18 -0
  10. data/app/assets/stylesheets/my_nagios/checks.scss +15 -0
  11. data/app/assets/stylesheets/my_nagios/welcome.scss +11 -0
  12. data/app/controllers/my_nagios/application_controller.rb +5 -0
  13. data/app/controllers/my_nagios/checks_controller.rb +31 -0
  14. data/app/controllers/my_nagios/welcome_controller.rb +12 -0
  15. data/app/helpers/my_nagios/application_helper.rb +4 -0
  16. data/app/helpers/my_nagios/checks_helper.rb +16 -0
  17. data/app/helpers/my_nagios/welcome_helper.rb +4 -0
  18. data/app/jobs/monitoring_job.rb +14 -0
  19. data/app/jobs/schedule_by_interval_job.rb +22 -0
  20. data/app/models/my_nagios/check.rb +49 -0
  21. data/app/models/my_nagios/group.rb +5 -0
  22. data/app/views/layouts/my_nagios/application.haml +11 -0
  23. data/app/views/my_nagios/checks/_check_row.haml +23 -0
  24. data/app/views/my_nagios/checks/new.haml +26 -0
  25. data/app/views/my_nagios/checks/run_now.js.coffee +12 -0
  26. data/app/views/my_nagios/welcome/index.haml +28 -0
  27. data/config/initializers/sidekiq.rb +5 -0
  28. data/config/routes.rb +11 -0
  29. data/config/schedule.yml +20 -0
  30. data/db/migrate/20160503110437_create_my_nagios_checks.rb +25 -0
  31. data/db/migrate/20160503110441_create_my_nagios_groups.rb +8 -0
  32. data/lib/my_nagios/engine.rb +6 -0
  33. data/lib/my_nagios/version.rb +3 -0
  34. data/lib/my_nagios.rb +4 -0
  35. data/lib/tasks/my_nagios_tasks.rake +4 -0
  36. data/test/controllers/my_nagios/checks_controller_test.rb +13 -0
  37. data/test/controllers/my_nagios/welcome_controller_test.rb +13 -0
  38. data/test/dummy/README.rdoc +28 -0
  39. data/test/dummy/Rakefile +6 -0
  40. data/test/dummy/app/assets/javascripts/application.js +13 -0
  41. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  42. data/test/dummy/app/controllers/application_controller.rb +5 -0
  43. data/test/dummy/app/helpers/application_helper.rb +2 -0
  44. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  45. data/test/dummy/bin/bundle +3 -0
  46. data/test/dummy/bin/rails +4 -0
  47. data/test/dummy/bin/rake +4 -0
  48. data/test/dummy/bin/setup +29 -0
  49. data/test/dummy/config/application.rb +26 -0
  50. data/test/dummy/config/boot.rb +5 -0
  51. data/test/dummy/config/database.yml +25 -0
  52. data/test/dummy/config/environment.rb +5 -0
  53. data/test/dummy/config/environments/development.rb +41 -0
  54. data/test/dummy/config/environments/production.rb +79 -0
  55. data/test/dummy/config/environments/test.rb +42 -0
  56. data/test/dummy/config/initializers/assets.rb +11 -0
  57. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  58. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  59. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/test/dummy/config/initializers/inflections.rb +16 -0
  61. data/test/dummy/config/initializers/mime_types.rb +4 -0
  62. data/test/dummy/config/initializers/session_store.rb +3 -0
  63. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  64. data/test/dummy/config/locales/en.yml +23 -0
  65. data/test/dummy/config/routes.rb +4 -0
  66. data/test/dummy/config/secrets.yml +22 -0
  67. data/test/dummy/config.ru +4 -0
  68. data/test/dummy/public/404.html +67 -0
  69. data/test/dummy/public/422.html +67 -0
  70. data/test/dummy/public/500.html +66 -0
  71. data/test/dummy/public/favicon.ico +0 -0
  72. data/test/fixtures/my_nagios/checks.yml +11 -0
  73. data/test/fixtures/my_nagios/groups.yml +11 -0
  74. data/test/integration/navigation_test.rb +8 -0
  75. data/test/models/my_nagios/check_test.rb +9 -0
  76. data/test/models/my_nagios/group_test.rb +9 -0
  77. data/test/my_nagios_test.rb +7 -0
  78. data/test/test_helper.rb +21 -0
  79. metadata +304 -0
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
8
+
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module MyNagios
4
+ class CheckTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module MyNagios
4
+ class GroupTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class MyNagiosTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, MyNagios
6
+ end
7
+ end
@@ -0,0 +1,21 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
+ ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
7
+ require "rails/test_help"
8
+
9
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
10
+ # to be shown.
11
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
+
13
+ # Load support files
14
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
+
16
+ # Load fixtures from the engine
17
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
20
+ ActiveSupport::TestCase.fixtures :all
21
+ end
metadata ADDED
@@ -0,0 +1,304 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: my_nagios
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vitaly Omelchenko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sidekiq
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sidekiq-cron
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sinatra
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: net-ssh
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bootstrap-sass
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mysql2
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: coffee-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sqlite3
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Simple monitoring based on Nagios scripts
154
+ email:
155
+ - prosto.vint@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - MIT-LICENSE
161
+ - README.rdoc
162
+ - Rakefile
163
+ - app/assets/images/my_nagios/chasing_arrows.gif
164
+ - app/assets/javascripts/my_nagios/application.js
165
+ - app/assets/javascripts/my_nagios/checks.coffee
166
+ - app/assets/javascripts/my_nagios/welcome.coffee
167
+ - app/assets/stylesheets/my_nagios/application.scss
168
+ - app/assets/stylesheets/my_nagios/checks.scss
169
+ - app/assets/stylesheets/my_nagios/welcome.scss
170
+ - app/controllers/my_nagios/application_controller.rb
171
+ - app/controllers/my_nagios/checks_controller.rb
172
+ - app/controllers/my_nagios/welcome_controller.rb
173
+ - app/helpers/my_nagios/application_helper.rb
174
+ - app/helpers/my_nagios/checks_helper.rb
175
+ - app/helpers/my_nagios/welcome_helper.rb
176
+ - app/jobs/monitoring_job.rb
177
+ - app/jobs/schedule_by_interval_job.rb
178
+ - app/models/my_nagios/check.rb
179
+ - app/models/my_nagios/group.rb
180
+ - app/views/layouts/my_nagios/application.haml
181
+ - app/views/my_nagios/checks/_check_row.haml
182
+ - app/views/my_nagios/checks/new.haml
183
+ - app/views/my_nagios/checks/run_now.js.coffee
184
+ - app/views/my_nagios/welcome/index.haml
185
+ - config/initializers/sidekiq.rb
186
+ - config/routes.rb
187
+ - config/schedule.yml
188
+ - db/migrate/20160503110437_create_my_nagios_checks.rb
189
+ - db/migrate/20160503110441_create_my_nagios_groups.rb
190
+ - lib/my_nagios.rb
191
+ - lib/my_nagios/engine.rb
192
+ - lib/my_nagios/version.rb
193
+ - lib/tasks/my_nagios_tasks.rake
194
+ - test/controllers/my_nagios/checks_controller_test.rb
195
+ - test/controllers/my_nagios/welcome_controller_test.rb
196
+ - test/dummy/README.rdoc
197
+ - test/dummy/Rakefile
198
+ - test/dummy/app/assets/javascripts/application.js
199
+ - test/dummy/app/assets/stylesheets/application.css
200
+ - test/dummy/app/controllers/application_controller.rb
201
+ - test/dummy/app/helpers/application_helper.rb
202
+ - test/dummy/app/views/layouts/application.html.erb
203
+ - test/dummy/bin/bundle
204
+ - test/dummy/bin/rails
205
+ - test/dummy/bin/rake
206
+ - test/dummy/bin/setup
207
+ - test/dummy/config.ru
208
+ - test/dummy/config/application.rb
209
+ - test/dummy/config/boot.rb
210
+ - test/dummy/config/database.yml
211
+ - test/dummy/config/environment.rb
212
+ - test/dummy/config/environments/development.rb
213
+ - test/dummy/config/environments/production.rb
214
+ - test/dummy/config/environments/test.rb
215
+ - test/dummy/config/initializers/assets.rb
216
+ - test/dummy/config/initializers/backtrace_silencers.rb
217
+ - test/dummy/config/initializers/cookies_serializer.rb
218
+ - test/dummy/config/initializers/filter_parameter_logging.rb
219
+ - test/dummy/config/initializers/inflections.rb
220
+ - test/dummy/config/initializers/mime_types.rb
221
+ - test/dummy/config/initializers/session_store.rb
222
+ - test/dummy/config/initializers/wrap_parameters.rb
223
+ - test/dummy/config/locales/en.yml
224
+ - test/dummy/config/routes.rb
225
+ - test/dummy/config/secrets.yml
226
+ - test/dummy/public/404.html
227
+ - test/dummy/public/422.html
228
+ - test/dummy/public/500.html
229
+ - test/dummy/public/favicon.ico
230
+ - test/fixtures/my_nagios/checks.yml
231
+ - test/fixtures/my_nagios/groups.yml
232
+ - test/integration/navigation_test.rb
233
+ - test/models/my_nagios/check_test.rb
234
+ - test/models/my_nagios/group_test.rb
235
+ - test/my_nagios_test.rb
236
+ - test/test_helper.rb
237
+ homepage: https://github.com/vintyara/my_nagios
238
+ licenses:
239
+ - MIT
240
+ metadata: {}
241
+ post_install_message:
242
+ rdoc_options: []
243
+ require_paths:
244
+ - lib
245
+ required_ruby_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ required_rubygems_version: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ version: '0'
255
+ requirements: []
256
+ rubyforge_project:
257
+ rubygems_version: 2.4.6
258
+ signing_key:
259
+ specification_version: 4
260
+ summary: Simple monitoring
261
+ test_files:
262
+ - test/controllers/my_nagios/checks_controller_test.rb
263
+ - test/controllers/my_nagios/welcome_controller_test.rb
264
+ - test/dummy/app/assets/javascripts/application.js
265
+ - test/dummy/app/assets/stylesheets/application.css
266
+ - test/dummy/app/controllers/application_controller.rb
267
+ - test/dummy/app/helpers/application_helper.rb
268
+ - test/dummy/app/views/layouts/application.html.erb
269
+ - test/dummy/bin/bundle
270
+ - test/dummy/bin/rails
271
+ - test/dummy/bin/rake
272
+ - test/dummy/bin/setup
273
+ - test/dummy/config/application.rb
274
+ - test/dummy/config/boot.rb
275
+ - test/dummy/config/database.yml
276
+ - test/dummy/config/environment.rb
277
+ - test/dummy/config/environments/development.rb
278
+ - test/dummy/config/environments/production.rb
279
+ - test/dummy/config/environments/test.rb
280
+ - test/dummy/config/initializers/assets.rb
281
+ - test/dummy/config/initializers/backtrace_silencers.rb
282
+ - test/dummy/config/initializers/cookies_serializer.rb
283
+ - test/dummy/config/initializers/filter_parameter_logging.rb
284
+ - test/dummy/config/initializers/inflections.rb
285
+ - test/dummy/config/initializers/mime_types.rb
286
+ - test/dummy/config/initializers/session_store.rb
287
+ - test/dummy/config/initializers/wrap_parameters.rb
288
+ - test/dummy/config/locales/en.yml
289
+ - test/dummy/config/routes.rb
290
+ - test/dummy/config/secrets.yml
291
+ - test/dummy/config.ru
292
+ - test/dummy/public/404.html
293
+ - test/dummy/public/422.html
294
+ - test/dummy/public/500.html
295
+ - test/dummy/public/favicon.ico
296
+ - test/dummy/Rakefile
297
+ - test/dummy/README.rdoc
298
+ - test/fixtures/my_nagios/checks.yml
299
+ - test/fixtures/my_nagios/groups.yml
300
+ - test/integration/navigation_test.rb
301
+ - test/models/my_nagios/check_test.rb
302
+ - test/models/my_nagios/group_test.rb
303
+ - test/my_nagios_test.rb
304
+ - test/test_helper.rb