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 +4 -4
- data/.github/workflows/ci.yml +3 -0
- data/CHANGELOG.md +16 -0
- data/Gemfile +8 -0
- data/lib/riemann/tools/bacula/version.rb +1 -1
- data/lib/riemann/tools/bacula.rb +10 -7
- data/riemann-bacula.gemspec +1 -9
- metadata +3 -101
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b8e3157426aa0222146772ab55d4280db70914f68798338165facdbbeaed26
|
4
|
+
data.tar.gz: 044d6f5915334353b15453e8c6667613afe1117776aeaf29b06862f112b43de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cf5171b18914c899079304d8a6a62792793bbd9271ad0c1a271dfee744e28ec86b594f71aab5c22c92b7017a5f32bcd7e8ad2750b0bcb6d940ad9cf532850a
|
7
|
+
data.tar.gz: 20c939d535b07c4ac48397a86d5b8a20d77fbabdadd81cc8cb42e388b8c9bbd32d1aeeb4fd49bc2877be585a29ed0c3eddffdd02a280ef95300a1c48f40c0cff
|
data/.github/workflows/ci.yml
CHANGED
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
data/lib/riemann/tools/bacula.rb
CHANGED
@@ -29,13 +29,15 @@ module Riemann
|
|
29
29
|
|
30
30
|
data = parse($stdin.read)
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
data/riemann-bacula.gemspec
CHANGED
@@ -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.
|
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:
|
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:
|
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.
|
73
|
+
rubygems_version: 3.3.15
|
172
74
|
signing_key:
|
173
75
|
specification_version: 4
|
174
76
|
summary: Submits bacula information to riemann
|