continuent-monitors-nagios 0.0.1 → 0.0.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: 44c778c054fc85c15ce0b3ae70180a2260122598
4
- data.tar.gz: 811e576c34848df0f4b98fda76336de5096eed3b
3
+ metadata.gz: ac732a7a2022300057c022f39230bda92f1122bb
4
+ data.tar.gz: 175e84d96fd7cf1c34971c316289610fd542490c
5
5
  SHA512:
6
- metadata.gz: fc00184bd86a1802a1edbe51ed7cce696ad0f9bdeac0d0d945c4ce1cd7688b5cdde3bf2510d29a8d6d7e490d40efb8ced2bc4a06bbb09853fa69a33444558c99
7
- data.tar.gz: 42920b7e82b730bbd34d7e370b5898dab2e12336cf2ba45d4abae26f1301b5407a3f6cf755447ac656c0d914e122dea71d39daa3dd443edab84d885817a232d4
6
+ metadata.gz: 82b76f8298a985a862a8b8d1db26d035a0f143dbbd1bfe4624139b0989bcec471e762b0e0c8b565da80e7ba19781c2c8e453c7272ffa31f909a8b15fff3ce435
7
+ data.tar.gz: 80950ef9e1f10fe09cbf8131dcfd95bdbcc079a334218929103b5e5b04abf3cdfea1e1ebdb081f7fbc813c65f438217c43057c5538a53f7673c6a6272fd17b9e
@@ -28,10 +28,25 @@ require 'continuent-tools-nagios-monitor'
28
28
  class ContinuentNagiosMonitorThreads
29
29
  include TungstenScript
30
30
  include TungstenNagiosMonitor
31
+ private
31
32
 
32
33
  def main
33
34
  count = TU.tungsten_cmd_result(opt(:thread_count_command))
35
+
34
36
  add_perfdata("threads", count)
37
+ check_threshold(count)
38
+ end
39
+
40
+ def build_ok_message(value)
41
+ "Thread count is OK (#{value})"
42
+ end
43
+
44
+ def build_warning_message(value)
45
+ "Thread count is too high (#{value})"
46
+ end
47
+
48
+ def build_critical_message(value)
49
+ "Thread count is too high (#{value})"
35
50
  end
36
51
 
37
52
  def configure
@@ -69,7 +84,7 @@ class ContinuentNagiosMonitorThreads
69
84
  end
70
85
  end
71
86
 
72
- def uses_nagios_comparison_levels?
87
+ def uses_thresholds?
73
88
  true
74
89
  end
75
90
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: continuent-monitors-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Continuent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: continuent-tools-monitoring
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.1.0
27
27
  description:
28
28
  email: info@continuent.com
29
29
  executables:
@@ -57,5 +57,5 @@ rubyforge_project:
57
57
  rubygems_version: 2.0.3
58
58
  signing_key:
59
59
  specification_version: 4
60
- summary: Continuent monitoring scripts for Nagios
60
+ summary: Continuent Tungsten monitoring scripts for Nagios
61
61
  test_files: []