flapjack 0.7.19 → 0.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Flapjack Changelog
2
2
 
3
+ # 0.7.20 - 2013-07-17
4
+ - Bug: flapjack-nagios-receiver failing after json library change gh-257 (@jessereynolds)
5
+ - Bug: email gateway partial conversion to erb sending haml source code gh-256 (@ali-graham)
6
+
3
7
  # 0.7.19 - 2013-07-17
4
8
  - Feature: Removed log4r and YAJL dependencies gh-25 (@ali-graham)
5
9
  - Feature: Made jabber entity status messages more verbose gh-245 (@ali-graham)
@@ -47,7 +47,7 @@ def process_input(opts)
47
47
  state = 'ok' if state.downcase == 'up'
48
48
  state = 'critical' if state.downcase == 'down'
49
49
  details = check_long_output ? check_long_output.gsub(/\\n/, "\n") : nil
50
- event = {
50
+ event = Oj.dump({
51
51
  'entity' => entity,
52
52
  'check' => check,
53
53
  'type' => 'service',
@@ -55,7 +55,7 @@ def process_input(opts)
55
55
  'summary' => check_output,
56
56
  'details' => details,
57
57
  'timestamp' => timestamp,
58
- }.to_json
58
+ })
59
59
  redis.lpush 'events', event
60
60
  end
61
61
  rescue Redis::CannotConnectError
@@ -1,60 +1,70 @@
1
- %style{:type => "text/css", :media => "screen"}
2
- :plain
3
- #container {
4
- text-transform: uppercase;
5
- }
6
- table {
7
- border-collapse: collapse;
8
- }
9
- table, th, td {
10
- border: 1px solid #666;
11
- padding: 4px;
12
- }
13
-
14
- %p Hi #{@contact_first_name}
15
-
16
- %p Monitoring has detected the following:
17
-
18
- %table
19
- %tbody
20
- %tr
21
- %td
22
- %strong Entity
23
- %td= @entity_name
24
- %tr
25
- %td
26
- %strong Check
27
- %td= @check
28
- %tr
29
- %td
30
- %strong State
31
- %td= @state.upcase
32
- %tr
33
- %td
34
- %strong Summary
35
- %td= @summary
36
- - if @details
37
- %tr
38
- %td
39
- %strong Details
40
- %td= @details
41
- %tr
42
- %td
43
- %strong Time
44
- %td
45
- = Time.at(@time.to_i).to_s
46
- ( #{@relative} ago)
47
-
48
- - if @last_state
49
- %tr
50
- %td Previous state
51
- %td= @last_state
52
-
53
- - if @last_summary
54
- %tr
55
- %td Previous summary
56
- %td= @last_summary
57
-
58
- %p Cheers,
59
- %p Flapjack
1
+ <style type="text/css" media="screen">
2
+ #container {
3
+ text-transform: uppercase;
4
+ }
5
+ table {
6
+ border-collapse: collapse;
7
+ }
8
+ table, th, td {
9
+ border: 1px solid #666;
10
+ padding: 4px;
11
+ }
12
+ </style>
60
13
 
14
+ <p>Hi <%= @contact_first_name%></p>
15
+
16
+ <p>Monitoring has detected the following:</p>
17
+
18
+ <table>
19
+ <tbody>
20
+ <tr>
21
+ <td>Entity</td>
22
+ <td><%= @entity_name %></td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <td>Check</td>
27
+ <td><%= @check %></td>
28
+ </tr>
29
+
30
+ <tr>
31
+ <td>State</td>
32
+ <td><%= @state.upcase %></td>
33
+ </tr>
34
+
35
+ <tr>
36
+ <td>Summary</td>
37
+ <td><%= @summary %></td>
38
+ </tr>
39
+
40
+ <% if @details %>
41
+ <tr>
42
+ <td>Details</td>
43
+ <td><%= @details %></td>
44
+ </tr>
45
+ <% end %>
46
+
47
+ <tr>
48
+ <td>Time</td>
49
+ <td><%= Time.at(@time.to_i).to_s %> (<%= @relative %> ago)</td>
50
+ </tr>
51
+
52
+ <% if @last_state %>
53
+ <tr>
54
+ <td>Previous state</td>
55
+ <td><%= @last_state %></td>
56
+ </tr>
57
+ <% end %>
58
+
59
+ <% if @last_summary %>
60
+ <tr>
61
+ <td>Previous summary</td>
62
+ <td><%= @last_summary %></td>
63
+ </tr>
64
+ <% end %>
65
+
66
+ </tbody>
67
+ </table>
68
+
69
+ <p>Cheers,</p>
70
+ <p>Flapjack</p>
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module Flapjack
4
- VERSION = "0.7.19"
4
+ VERSION = "0.7.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flapjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.19
4
+ version: 0.7.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -527,7 +527,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
527
527
  version: '0'
528
528
  segments:
529
529
  - 0
530
- hash: -4516922423453420301
530
+ hash: -2799990042721425625
531
531
  required_rubygems_version: !ruby/object:Gem::Requirement
532
532
  none: false
533
533
  requirements:
@@ -536,7 +536,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
536
536
  version: '0'
537
537
  segments:
538
538
  - 0
539
- hash: -4516922423453420301
539
+ hash: -2799990042721425625
540
540
  requirements: []
541
541
  rubyforge_project:
542
542
  rubygems_version: 1.8.23