netdata-client 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/lib/netdata/client/controller.rb +2 -2
- data/lib/netdata/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d313b72e77f708bdaf257f2ef19c34b84e803809
|
|
4
|
+
data.tar.gz: 009334dd117c1aa09bc999c609861c314da993a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5af4dafd38a192559c21b1a16c06746d7d2027f2083643f31fc52e0d1dbe0bcf8d8d54701dfe4c749ea53342c9b572f6a0ad25943b2f75f378c1eea9bbe2fa18
|
|
7
|
+
data.tar.gz: d6639bf9e040382c1cf13327f5e4c3be04f38558739d342262d27a6e4bc58779f895333b5f2173c76fbf128ca48f5a83e609e073bea2d05925e57937f9368f9c
|
|
@@ -9,7 +9,7 @@ module Netdata
|
|
|
9
9
|
|
|
10
10
|
def report_interval_2_mins
|
|
11
11
|
aggregator = {}
|
|
12
|
-
threshold =
|
|
12
|
+
threshold = 70 # numbers higher than this should trigger notifications
|
|
13
13
|
|
|
14
14
|
return unless @config
|
|
15
15
|
|
|
@@ -38,7 +38,7 @@ module Netdata
|
|
|
38
38
|
message += "CPU Warning - #{data[:cpu].round(2)}%\n" if data[:cpu] > threshold
|
|
39
39
|
message += "#{data[:users_cpu][:users].size} system users active (#{data[:users_cpu][:value].round(2)}% CPU)\n" if data[:users_cpu][:value] > threshold
|
|
40
40
|
message += "Alarms are ringing\n" if data[:alarms]
|
|
41
|
-
message += "#{data[:users_cpu][:history].size} CPU instance(s) > #{threshold}%\n" if data[:users_cpu][:history].size >
|
|
41
|
+
message += "#{data[:users_cpu][:history].size} CPU instance(s) > #{threshold}%\n" if data[:users_cpu][:history].size > 4
|
|
42
42
|
|
|
43
43
|
Notify.bubble(message, "Netdata Warning on #{host}") if message.size > 0
|
|
44
44
|
}.join
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: netdata-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Priebe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-01-
|
|
11
|
+
date: 2017-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: notifaction
|