my_nagios 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/my_nagios/checks.scss +4 -0
- data/app/views/my_nagios/checks/_check_row.haml +4 -2
- data/app/views/my_nagios/checks/_form.haml +39 -23
- data/app/views/my_nagios/checks/edit.haml +2 -1
- data/app/views/my_nagios/checks/new.haml +2 -1
- data/lib/my_nagios/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c81af784954c0a2770b725f040679fd24438ca7
|
4
|
+
data.tar.gz: 87714809d6f2fb412c999c3b337db1a4d1860c04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3e802b5290b24b49e91ea7cc68bcb9d3bf1761eb92fa00796a129a97ee95297cc9607780b482fce31c429f44c1164bbdc957c1d097d8ddcffda87eb31108e8
|
7
|
+
data.tar.gz: ea05ff6bf582358ed5575e682d11ff568092afab20b0485ccb62344e7462a7800d59d808b03c123398ccb4cb67856f41fe7704496a87c8ca090d6d0dca992b1a
|
@@ -1,10 +1,12 @@
|
|
1
1
|
- run_now ||= false
|
2
2
|
- show_group ||= false
|
3
3
|
|
4
|
-
|
4
|
+
- tr_id = show_group ? nil : dom_id(check)
|
5
|
+
|
6
|
+
%tr{ id: tr_id, class: (check.enabled? ? 'enabled' : 'disabled') }
|
5
7
|
- if show_group
|
6
8
|
%td
|
7
|
-
|
9
|
+
=link_to check.group.name, "##{dom_id(check)}", class: 'fail_check'
|
8
10
|
- else
|
9
11
|
%td=check.command
|
10
12
|
|
@@ -1,24 +1,40 @@
|
|
1
|
-
|
2
|
-
=
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
%br
|
8
|
-
=f.label :user
|
9
|
-
=f.text_field :user
|
10
|
-
%br
|
11
|
-
=f.label :pem_key
|
12
|
-
=f.text_field :pem_key
|
13
|
-
%br
|
14
|
-
=f.label :description
|
15
|
-
=f.text_field :description
|
16
|
-
%br
|
17
|
-
=f.label :interval
|
18
|
-
=f.text_field :interval
|
19
|
-
%br
|
20
|
-
=f.label :command
|
21
|
-
=f.text_field :command
|
22
|
-
%br
|
1
|
+
.row.col-sm-12
|
2
|
+
=form_for @check, html: { class: 'form-horizontal' } do |f|
|
3
|
+
.form-group
|
4
|
+
=f.label :group, class: 'col-sm-1 control-label'
|
5
|
+
.col-sm-10
|
6
|
+
=f.select :group, options_for_select( MyNagios::Group.all.map{|g| [g.name, g.id]}, @check.group_id ), class: 'form-control'
|
23
7
|
|
24
|
-
|
8
|
+
.form-group
|
9
|
+
=f.label :host, class: 'col-sm-1 control-label'
|
10
|
+
.col-sm-10
|
11
|
+
=f.text_field :host, class: 'form-control'
|
12
|
+
|
13
|
+
.form-group
|
14
|
+
=f.label :user, class: 'col-sm-1 control-label'
|
15
|
+
.col-sm-10
|
16
|
+
=f.text_field :user, class: 'form-control'
|
17
|
+
|
18
|
+
.form-group
|
19
|
+
=f.label :pem_key, class: 'col-sm-1 control-label'
|
20
|
+
.col-sm-10
|
21
|
+
=f.text_field :pem_key, class: 'form-control'
|
22
|
+
|
23
|
+
.form-group
|
24
|
+
=f.label :description, class: 'col-sm-1 control-label'
|
25
|
+
.col-sm-10
|
26
|
+
=f.text_field :description, class: 'form-control'
|
27
|
+
|
28
|
+
.form-group
|
29
|
+
=f.label :interval, class: 'col-sm-1 control-label'
|
30
|
+
.col-sm-10
|
31
|
+
=f.text_field :interval, class: 'form-control'
|
32
|
+
|
33
|
+
.form-group
|
34
|
+
=f.label :command, class: 'col-sm-1 control-label'
|
35
|
+
.col-sm-10
|
36
|
+
=f.text_field :command, class: 'form-control'
|
37
|
+
|
38
|
+
.form-group
|
39
|
+
.col-sm-10.col-sm-offset-1
|
40
|
+
=f.submit
|
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.4
|
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-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2.
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.2.
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: haml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|