Use icingadb-RC2`s updated redis schema paths

This commit is contained in:
Johannes Meyer 2021-05-31 10:24:11 +02:00
parent 1bbbaa96ce
commit 442edeefbe
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ abstract class ObjectInspectionDetail extends BaseHtmlElement
try {
$json = $this->getIcingaRedis()
->hGet("icinga:config:state:{$this->object->getTableName()}", bin2hex($this->object->id));
->hGet("icinga:{$this->object->getTableName()}:state", bin2hex($this->object->id));
} catch (Exception $e) {
return [$title, sprintf('Failed to load redis data: %s', $e->getMessage())];
}

View file

@ -50,7 +50,7 @@ class VolatileState
{
$type = substr($state->getTableName(), 0, -6);
$json = $this->redis->hGet("icinga:config:state:{$type}", bin2hex($state->{$type . '_id'}));
$json = $this->redis->hGet("icinga:{$type}:state", bin2hex($state->{$type . '_id'}));
if ($json !== false) {
$data = json_decode($json, true);
$data = array_intersect_key($data, array_flip(static::$keys));