mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaService: add use_agent
This commit is contained in:
parent
59c17a5ddf
commit
c03aaada92
@ -33,6 +33,7 @@ class IcingaService extends IcingaObject
|
|||||||
'icon_image' => null,
|
'icon_image' => null,
|
||||||
'icon_image_alt' => null,
|
'icon_image_alt' => null,
|
||||||
'object_type' => null,
|
'object_type' => null,
|
||||||
|
'use_agent' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $relations = array(
|
protected $relations = array(
|
||||||
@ -68,6 +69,11 @@ class IcingaService extends IcingaObject
|
|||||||
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function renderUse_agent()
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
protected function renderCheck_Interval()
|
protected function renderCheck_Interval()
|
||||||
{
|
{
|
||||||
return $this->renderPropertyAsSeconds('check_interval');
|
return $this->renderPropertyAsSeconds('check_interval');
|
||||||
|
3
schema/mysql-changes/upgrade_59.sql
Normal file
3
schema/mysql-changes/upgrade_59.sql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE icinga_service
|
||||||
|
ADD COLUMN use_agent ENUM('y', 'n') NOT NULL DEFAULT 'n';
|
||||||
|
|
@ -508,6 +508,7 @@ CREATE TABLE icinga_service (
|
|||||||
icon_image VARCHAR(255) DEFAULT NULL,
|
icon_image VARCHAR(255) DEFAULT NULL,
|
||||||
icon_image_alt VARCHAR(255) DEFAULT NULL,
|
icon_image_alt VARCHAR(255) DEFAULT NULL,
|
||||||
object_type ENUM('object', 'template', 'apply') NOT NULL,
|
object_type ENUM('object', 'template', 'apply') NOT NULL,
|
||||||
|
use_agent ENUM('y', 'n') NOT NULL DEFAULT 'n',
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
-- UNIQUE INDEX object_name (object_name, zone_id),
|
-- UNIQUE INDEX object_name (object_name, zone_id),
|
||||||
UNIQUE KEY object_key (object_name, host_id),
|
UNIQUE KEY object_key (object_name, host_id),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user