bipbip 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2d6d7ff483fb383c49e134f961b60361b7a9eac
4
- data.tar.gz: effa9e0c6d22d39b4fedb9c81f9fc059545f087b
3
+ metadata.gz: 3f166e8d86ad822ab9ec354ee518feb60c082d73
4
+ data.tar.gz: 1ec147877cbe8561c78989d75251a87ae0e30b30
5
5
  SHA512:
6
- metadata.gz: f810ebeefbe757e1c627e179818b4535099b4cb6be08ad5e0bb4c78dca42a708499725b2c6d77cb865fc456521307d6bf0f31b8bfeccf4049b72b4f931eecc1d
7
- data.tar.gz: 9c5c3908dd2ad2539514841b1c669943d308dc3e6edf3e1d8585a73f03642ca5a0e4835c558d2f5b745c970b95b5edc589551f63a28cd6d2af6b92f52ea6646a
6
+ metadata.gz: c665e20a80f264605ce236adfd07108942ada4d8e60079e9fe2e8c2f0e488a49dbde05bb3dec047403782d77c9fa54e8362f9bd1bb4198213ff1c7f28a4527fd
7
+ data.tar.gz: 0c9fce0000b89f46c8efee69f1e09124916219c2323c1c3613a55707fef2cca6e1860b6cd87ab9e570eaf175297f6253a31fdb3c2e230ff1a4f9836b71b36b23
data/README.md CHANGED
@@ -63,6 +63,14 @@ services:
63
63
  url: http://localhost:80/server-status
64
64
  -
65
65
  plugin: network
66
+ -
67
+ plugin: monit
68
+ hostname: localhost
69
+ port: 2888
70
+ ssl: true
71
+ auth: true
72
+ username: foo
73
+ password: bar
66
74
  -
67
75
  plugin: php-apc
68
76
  url: http://localhost:80/apc-status
@@ -12,10 +12,15 @@ module Bipbip
12
12
  end
13
13
 
14
14
  def monitor
15
- status = ::Monit::Status.new(
16
- :host => config['host'],
17
- :auth => config['auth']
18
- )
15
+ status = ::Monit::Status.new({
16
+ :host => 'localhost',
17
+ :port => 2812,
18
+ :ssl => false,
19
+ :auth => false,
20
+ :username => nil,
21
+ :password => nil,
22
+ }.merge(config))
23
+
19
24
  data = Hash.new(0)
20
25
 
21
26
  begin
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bipbip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media