riemann-bacula 2.0.1 → 3.0.0

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
  SHA256:
3
- metadata.gz: a8767711db7ba7e0b8d89ca127b49252a4950a3e36f6d07ece5d5a073f623757
4
- data.tar.gz: 8bb3e0d0da124c099e3eb33cacb7d66c75a8ffc5319b4e1000e82039396bdbe3
3
+ metadata.gz: e1b8e3157426aa0222146772ab55d4280db70914f68798338165facdbbeaed26
4
+ data.tar.gz: 044d6f5915334353b15453e8c6667613afe1117776aeaf29b06862f112b43de7
5
5
  SHA512:
6
- metadata.gz: aa96c3698c27416f3ba6210245891d31a5b2a325ea0b735bb3bfc7231d2d4b738c5556524026c3e22f1a62f1d67bf9e618b0fcd3f1d15caf2aa467ef0593125f
7
- data.tar.gz: 175405939610e4563cd0983f1f5fdc9cdfec73756a6cdb7f11685ff032467afe46e004020f7d64889feb969f29383b83ac35dc71ee63540262c76c679b5d9d4c
6
+ metadata.gz: 93cf5171b18914c899079304d8a6a62792793bbd9271ad0c1a271dfee744e28ec86b594f71aab5c22c92b7017a5f32bcd7e8ad2750b0bcb6d940ad9cf532850a
7
+ data.tar.gz: 20c939d535b07c4ac48397a86d5b8a20d77fbabdadd81cc8cb42e388b8c9bbd32d1aeeb4fd49bc2877be585a29ed0c3eddffdd02a280ef95300a1c48f40c0cff
@@ -31,6 +31,9 @@ jobs:
31
31
  - "2.7"
32
32
  - "3.0"
33
33
  - "3.1"
34
+ - "3.2"
35
+ - "3.3"
36
+ - "3.4"
34
37
  name: Ruby ${{ matrix.ruby }}
35
38
  steps:
36
39
  - uses: actions/checkout@v3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.0.0](https://github.com/opus-codium/riemann-bacula/tree/v3.0.0) (2025-01-06)
4
+
5
+ [Full Changelog](https://github.com/opus-codium/riemann-bacula/compare/v2.0.2...v3.0.0)
6
+
7
+ **Breaking changes:**
8
+
9
+ - Do not update canceled backups state [\#14](https://github.com/opus-codium/riemann-bacula/pull/14) ([smortex](https://github.com/smortex))
10
+
11
+ ## [v2.0.2](https://github.com/opus-codium/riemann-bacula/tree/v2.0.2) (2023-03-27)
12
+
13
+ [Full Changelog](https://github.com/opus-codium/riemann-bacula/compare/v2.0.1...v2.0.2)
14
+
15
+ **Fixed bugs:**
16
+
17
+ - Fix warning detection [\#12](https://github.com/opus-codium/riemann-bacula/pull/12) ([smortex](https://github.com/smortex))
18
+
3
19
  ## [v2.0.1](https://github.com/opus-codium/riemann-bacula/tree/v2.0.1) (2022-11-18)
4
20
 
5
21
  [Full Changelog](https://github.com/opus-codium/riemann-bacula/compare/v2.0.0...v2.0.1)
data/Gemfile CHANGED
@@ -4,3 +4,11 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in riemann-tools.gemspec
6
6
  gemspec
7
+
8
+ gem 'github_changelog_generator'
9
+ gem 'rake'
10
+ gem 'rspec'
11
+ gem 'rubocop'
12
+ gem 'rubocop-rake'
13
+ gem 'rubocop-rspec'
14
+ gem 'simplecov'
@@ -3,7 +3,7 @@
3
3
  module Riemann
4
4
  module Tools # :nodoc:
5
5
  class Bacula
6
- VERSION = '2.0.1'
6
+ VERSION = '3.0.0'
7
7
  end
8
8
  end
9
9
  end
@@ -29,13 +29,15 @@ module Riemann
29
29
 
30
30
  data = parse($stdin.read)
31
31
 
32
- report({
33
- service: "bacula backup #{opts[:job_name]}",
34
- state: bacula_backup_state,
35
- job_name: opts[:job_name],
36
- backup_level: opts[:backup_level],
37
- description: "#{opts[:status]} (#{data['Termination']})",
38
- })
32
+ if opts[:status] != 'Canceled'
33
+ report({
34
+ service: "bacula backup #{opts[:job_name]}",
35
+ state: bacula_backup_state,
36
+ job_name: opts[:job_name],
37
+ backup_level: opts[:backup_level],
38
+ description: "#{opts[:status]} (#{data['Termination']})",
39
+ })
40
+ end
39
41
 
40
42
  %i[bytes files].each do |metric|
41
43
  next unless opts[metric]
@@ -54,6 +56,7 @@ module Riemann
54
56
  def bacula_backup_state
55
57
  case opts[:status]
56
58
  when 'OK' then 'ok'
59
+ when 'OK -- with warnings' then 'warning'
57
60
  else
58
61
  'critical'
59
62
  end
@@ -30,13 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.add_runtime_dependency 'riemann-tools', '~> 1.0'
34
-
35
- spec.add_development_dependency 'github_changelog_generator'
36
- spec.add_development_dependency 'rake'
37
- spec.add_development_dependency 'rspec'
38
- spec.add_development_dependency 'rubocop'
39
- spec.add_development_dependency 'rubocop-rake'
40
- spec.add_development_dependency 'rubocop-rspec'
41
- spec.add_development_dependency 'simplecov'
33
+ spec.add_dependency 'riemann-tools', '~> 1.0'
42
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-bacula
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-18 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riemann-tools
@@ -24,104 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- - !ruby/object:Gem::Dependency
28
- name: github_changelog_generator
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
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: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
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: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
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: rubocop
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
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: rubocop-rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
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: rubocop-rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
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: simplecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
27
  description:
126
28
  email:
127
29
  - romain@blogreen.org
@@ -168,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
70
  - !ruby/object:Gem::Version
169
71
  version: '0'
170
72
  requirements: []
171
- rubygems_version: 3.3.23
73
+ rubygems_version: 3.3.15
172
74
  signing_key:
173
75
  specification_version: 4
174
76
  summary: Submits bacula information to riemann