diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index 93485675..ef3f5c24 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -33,6 +33,7 @@ class IcingaService extends IcingaObject 'icon_image' => null, 'icon_image_alt' => null, 'object_type' => null, + 'use_agent' => null, ); protected $relations = array( @@ -68,6 +69,11 @@ class IcingaService extends IcingaObject return $this->renderRelationProperty('host', $this->host_id, 'host_name'); } + public function renderUse_agent() + { + return ''; + } + protected function renderCheck_Interval() { return $this->renderPropertyAsSeconds('check_interval'); diff --git a/schema/mysql-changes/upgrade_59.sql b/schema/mysql-changes/upgrade_59.sql new file mode 100644 index 00000000..8c760e2f --- /dev/null +++ b/schema/mysql-changes/upgrade_59.sql @@ -0,0 +1,3 @@ +ALTER TABLE icinga_service + ADD COLUMN use_agent ENUM('y', 'n') NOT NULL DEFAULT 'n'; + diff --git a/schema/mysql.sql b/schema/mysql.sql index f578fe37..99fcc29c 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -508,6 +508,7 @@ CREATE TABLE icinga_service ( icon_image VARCHAR(255) DEFAULT NULL, icon_image_alt VARCHAR(255) DEFAULT NULL, object_type ENUM('object', 'template', 'apply') NOT NULL, + use_agent ENUM('y', 'n') NOT NULL DEFAULT 'n', PRIMARY KEY (id), -- UNIQUE INDEX object_name (object_name, zone_id), UNIQUE KEY object_key (object_name, host_id),