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 +4 -4
- data/README.md +1 -1
- data/lib/systemd_mon/notifiers/slack.rb +4 -0
- data/lib/systemd_mon/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f391f7a4ee6cd35a772ae1615cb0dee9ab726cb284314f546561047500bbd19
|
4
|
+
data.tar.gz: 20487d3ee6f7b8c8c4208cb022578ab37bf966fa0d2012a87a0ae3d3bce059b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61348cdf89d2b3f33bf5d1313e51e51ffde7f20d6153776b5cba188d5052f38a3858cb005767cb0e4ba2c55a8fdf87a846a8cea9f38885d5175ec2c41442312f
|
7
|
+
data.tar.gz: efcfdea8748228244b0dd49421a61f6e6364100c9695d3b4fe625f367cff70daec2f4fdd5fde1ffecc469d2598f03104309ae6bc0c2f54d5c02eb05566c91860
|
data/README.md
CHANGED
@@ -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),
|
data/lib/systemd_mon/version.rb
CHANGED
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.
|
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-
|
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
|
-
|
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
|