netdata-client 1.3.1 → 1.3.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
  SHA1:
3
- metadata.gz: f135a517b6df6c479328589612bb49daaecd1146
4
- data.tar.gz: 85847fd61b274f20155eb9dafdd10fcabbd4adf3
3
+ metadata.gz: d313b72e77f708bdaf257f2ef19c34b84e803809
4
+ data.tar.gz: 009334dd117c1aa09bc999c609861c314da993a6
5
5
  SHA512:
6
- metadata.gz: 3ea7479044223aa0a6f17639ddc3f3a017918d19181f3e6b121ad958c7b77751c4535abafcba1eace7b4bf947c1db9d53331504ec0f6e103047a5ca0c03e54e6
7
- data.tar.gz: dc7916e2f0f0ece3c45e071b96345ab555ffdddfcaf9ab3f5caef990d191a3af6b298858da495453af22f3345eb3b785ee139865300d217a0f56083f1c38a4bd
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 = 50 # numbers higher than this should trigger notifications
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 > 0
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
@@ -1,5 +1,5 @@
1
1
  module Netdata
2
2
  module Client
3
- VERSION = '1.3.1'.freeze
3
+ VERSION = '1.3.2'.freeze
4
4
  end
5
5
  end
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: notifaction