Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(remote-server): export properly trap matching and hostgroups (#8054)
Browse files Browse the repository at this point in the history
Refs: MON-4436
  • Loading branch information
kduret committed Nov 5, 2019
1 parent c696e18 commit 5b06851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions www/class/config-generate-remote/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ private function getHostGroups(array &$host)
$this->stmtHg = $this->backendInstance->db->prepare("SELECT
hostgroup_hg_id
FROM hostgroup_relation
INNER JOIN hostgroup ON hg_id = hostgroup_hg_id
AND hg_activate = '1'
WHERE host_host_id = :host_id
");
}
Expand Down
3 changes: 2 additions & 1 deletion www/class/config-generate-remote/Relations/TrapsMatching.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use \PDO;
use ConfigGenerateRemote\Abstracts\AbstractObject;
use ConfigGenerateRemote\ServiceCategory;

class TrapsMatching extends AbstractObject
{
Expand Down Expand Up @@ -106,7 +107,7 @@ public function generateObject($trapId, $trapMatchCache)
continue;
}
$this->generateObjectInFile($value, $value['tmo_id']);
serviceCategory::getInstance($this->dependencyInjector)->generateObject($value['severity_id']);
ServiceCategory::getInstance($this->dependencyInjector)->generateObject($value['severity_id']);
}
}

Expand Down

0 comments on commit 5b06851

Please sign in to comment.