Skip to content

Commit

Permalink
Merge pull request #131 from IgorTimoshenko/hotfix/redis-password
Browse files Browse the repository at this point in the history
Added Redis password support
  • Loading branch information
kbond committed Apr 6, 2016
2 parents 71179b1 + 42b807b commit bfda214
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Check/RedisCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RedisCollection implements CheckCollectionInterface
public function __construct(array $configs)
{
foreach ($configs as $name => $config) {
$check = new Redis($config['host'], $config['port']);
$check = new Redis($config['host'], $config['port'], $config['password']);
$check->setLabel(sprintf('Redis "%s"', $name));

$this->checks[sprintf('redis_%s', $name)] = $check;
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private function createGroupsNode()
->children()
->scalarNode('host')->defaultValue('localhost')->end()
->integerNode('port')->defaultValue(6379)->end()
->scalarNode('password')->defaultNull()->end()
->end()
->end()
->end()
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ liip_monitor:
name:
host: localhost
port: 6379
password: null
# Attempt connection to given HTTP host and (optionally) check status code and page content
http_service:
Expand Down

0 comments on commit bfda214

Please sign in to comment.