mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
MonitoredObject: temporary livestatus workaround
This commit is contained in:
parent
10ec0446e0
commit
7f22afbc21
@ -190,6 +190,10 @@ abstract class MonitoredObject
|
|||||||
*/
|
*/
|
||||||
public function fetchComments()
|
public function fetchComments()
|
||||||
{
|
{
|
||||||
|
if ($this->backend->is('livestatus')) {
|
||||||
|
$this->comments = array();
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
$comments = $this->backend->select()->from('comment', array(
|
$comments = $this->backend->select()->from('comment', array(
|
||||||
'id' => 'comment_internal_id',
|
'id' => 'comment_internal_id',
|
||||||
'timestamp' => 'comment_timestamp',
|
'timestamp' => 'comment_timestamp',
|
||||||
@ -264,6 +268,11 @@ abstract class MonitoredObject
|
|||||||
*/
|
*/
|
||||||
public function fetchCustomvars()
|
public function fetchCustomvars()
|
||||||
{
|
{
|
||||||
|
if ($this->backend->is('livestatus')) {
|
||||||
|
$this->customvars = array();
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$blacklist = array();
|
$blacklist = array();
|
||||||
$blacklistPattern = '/^(.*pw.*|.*pass.*|community)$/i';
|
$blacklistPattern = '/^(.*pw.*|.*pass.*|community)$/i';
|
||||||
|
|
||||||
@ -316,6 +325,11 @@ abstract class MonitoredObject
|
|||||||
*/
|
*/
|
||||||
public function fetchContacts()
|
public function fetchContacts()
|
||||||
{
|
{
|
||||||
|
if ($this->backend->is('livestatus')) {
|
||||||
|
$this->contacts = array();
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$contacts = $this->backend->select()->from('contact', array(
|
$contacts = $this->backend->select()->from('contact', array(
|
||||||
'contact_name',
|
'contact_name',
|
||||||
'contact_alias',
|
'contact_alias',
|
||||||
@ -356,6 +370,11 @@ abstract class MonitoredObject
|
|||||||
*/
|
*/
|
||||||
public function fetchContactgroups()
|
public function fetchContactgroups()
|
||||||
{
|
{
|
||||||
|
if ($this->backend->is('livestatus')) {
|
||||||
|
$this->contactgroups = array();
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$contactsGroups = $this->backend->select()->from('contactgroup', array(
|
$contactsGroups = $this->backend->select()->from('contactgroup', array(
|
||||||
'contactgroup_name',
|
'contactgroup_name',
|
||||||
'contactgroup_alias'
|
'contactgroup_alias'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user