sumo-check-sumo 0.0.7 → 0.0.8

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sumo-check-docker.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 151b570f5d23a434f7f312e2c9ff43ff783f9c23
4
- data.tar.gz: dedbf659939a189d25392a06ab1bba7d4ff525d0
3
+ metadata.gz: 370647012a9d2fc0e495daa54e5a7836a91fe736
4
+ data.tar.gz: 770225e31019dc1e58c4808cf9f6926b03b81a5b
5
5
  SHA512:
6
- metadata.gz: 6aff654581bd1d8bbc54f275187f36553df97f02156c0f9e7aef66e4807524893667154ae37e952a1216bef4c2bce3354adac096821e2d45e43d739f81c923d2
7
- data.tar.gz: 3e56280518639e4f749bb84b8ae9a30b789f48b06ea5947423d0fa9a69baf8c3b1ca05881c16ff26ffedf14e7680456beca354b2729c720d3954ecdbe5bb908c
6
+ metadata.gz: 30180b25080a12578a691bc11595043f2f12b084608287adb286aa89bc4ed65b7d12a65ffc7ea69211025d3ac63d0f4fceb05998944157800bbe8a90387dd7c9
7
+ data.tar.gz: 9f6e4042b82fd43f27d7d9d0df22b9d30743d2490529197042b1a36c20422be75940810a7cbff3b574b63b338ebeb34010e2db3f0cd7fe835c795881e33ab6d2
@@ -39,10 +39,10 @@ class SensuSumoCheckDocker < Sensu::Plugin::Check::CLI
39
39
 
40
40
  if containers_with_issues.length > 0
41
41
  # problems
42
- puts "ERROR #{Docker.info["Name"]}, Containers Running: #{Docker.info["ContainersRunning"]}, Containers Stopped: #{Docker.info["ContainersStopped"]}, Containers Paused: #{Docker.info["ContainersPaused"]}, ERRORS: \n#{containers_with_issues.join("; \n")}"
42
+ critical "#{Docker.info["Name"]}, Containers Running: #{Docker.info["ContainersRunning"]}, Containers Stopped: #{Docker.info["ContainersStopped"]}, Containers Paused: #{Docker.info["ContainersPaused"]}, ERRORS: \n#{containers_with_issues.join("; \n")}"
43
43
  else
44
44
  # All ok
45
- puts "OK #{Docker.info["Name"]}, Containers Running: #{Docker.info["ContainersRunning"]}, Containers Stopped: #{Docker.info["ContainersStopped"]}, Containers Paused: #{Docker.info["ContainersPaused"]}"
45
+ ok "#{Docker.info["Name"]}, Containers Running: #{Docker.info["ContainersRunning"]}, Containers Stopped: #{Docker.info["ContainersStopped"]}, Containers Paused: #{Docker.info["ContainersPaused"]}"
46
46
  end
47
47
 
48
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumo-check-sumo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr. Ogg