systemd_mon_mod 0.1.1 → 0.1.2

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: 06a413928718c467090adf686c9dfa4d1f869077389f0fe83a81889066e87ef9
4
- data.tar.gz: d7b6dd5c3f69ccd71e650ff4cbb5d99421f1344b1f6cb8f46fe2bf8830cb2257
3
+ metadata.gz: 2f391f7a4ee6cd35a772ae1615cb0dee9ab726cb284314f546561047500bbd19
4
+ data.tar.gz: 20487d3ee6f7b8c8c4208cb022578ab37bf966fa0d2012a87a0ae3d3bce059b0
5
5
  SHA512:
6
- metadata.gz: 4338ab309e663836cbe70a0958ee1fbc682f63e8f6c2406a18f56fc8d71d026e9c5928c87a8b82341bdc2f40a9b676f124478767aa84b8a958c5a31266526715
7
- data.tar.gz: a441af6f624aa118b059288743a3b1bb8cee6fb79e1fb99aabdf67ae0973261642a1e9f788757e0eaa3963c12c65ca2c7273d97ec7ca4c4c9cb8fcfeeae058d3
6
+ metadata.gz: 61348cdf89d2b3f33bf5d1313e51e51ffde7f20d6153776b5cba188d5052f38a3858cb005767cb0e4ba2c55a8fdf87a846a8cea9f38885d5175ec2c41442312f
7
+ data.tar.gz: efcfdea8748228244b0dd49421a61f6e6364100c9695d3b4fe625f367cff70daec2f4fdd5fde1ffecc469d2598f03104309ae6bc0c2f54d5c02eb05566c91860
data/README.md CHANGED
@@ -19,7 +19,7 @@ It works by subscribing to DBus notifications from Systemd. This means that ther
19
19
 
20
20
  Install the gem using:
21
21
 
22
- gem install systemd_mon
22
+ gem install systemd_mon_mod
23
23
 
24
24
  ## Usage
25
25
 
@@ -47,6 +47,10 @@ module SystemdMon::Notifiers
47
47
  unit = notification.unit
48
48
  message = "@channel #{notification.type_text}: systemd unit #{unit.name} on #{notification.hostname} #{unit.state_change.status_text}"
49
49
 
50
+ if notification.type == :info
51
+ message = "#{notification.type_text}: systemd unit #{unit.name} on #{notification.hostname} #{unit.state_change.status_text}"
52
+ end
53
+
50
54
  attach = {
51
55
  fallback: "@channel #{message}: #{unit.state.active} (#{unit.state.sub})",
52
56
  color: color(notification.type),
@@ -1,3 +1,3 @@
1
1
  module SystemdMon
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: systemd_mon_mod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Cairns
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-26 00:00:00.000000000 Z
12
+ date: 2020-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-dbus
@@ -111,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubyforge_project:
115
- rubygems_version: 2.7.6.2
114
+ rubygems_version: 3.0.3
116
115
  signing_key:
117
116
  specification_version: 4
118
117
  summary: Monitor systemd units and trigger alerts for failed states (Mod for mattermost