From 203f91297b11bea1b923b769c2a5836d24907673 Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Wed, 17 Nov 2021 13:34:39 +0200 Subject: ....I..... [ZBXNEXT-6999] added schema changes --- create/src/schema.tmpl | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 901adab5f02..9bf73ad8a75 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -759,12 +759,12 @@ FIELD |serviceid |t_id | |NOT NULL |0 FIELD |name |t_varchar(128) |'' |NOT NULL |0 FIELD |status |t_integer |'-1' |NOT NULL |0 FIELD |algorithm |t_integer |'0' |NOT NULL |0 -FIELD |showsla |t_integer |'0' |NOT NULL |0 -FIELD |goodsla |t_double |'99.9' |NOT NULL |0 FIELD |sortorder |t_integer |'0' |NOT NULL |0 FIELD |weight |t_integer |'0' |NOT NULL |0 FIELD |propagation_rule|t_integer |'0' |NOT NULL |0 FIELD |propagation_value|t_integer |'0' |NOT NULL |0 +FIELD |description |t_shorttext |'' |NOT NULL |0 +FIELD |uuid |t_varchar(32) |'' |NOT NULL |0 TABLE|services_links|linkid|ZBX_DATA FIELD |linkid |t_id | |NOT NULL |0 @@ -773,15 +773,6 @@ FIELD |servicedownid |t_id | |NOT NULL |0 |2|services |serviceid INDEX |1 |servicedownid UNIQUE |2 |serviceupid,servicedownid -TABLE|services_times|timeid|ZBX_DATA -FIELD |timeid |t_id | |NOT NULL |0 -FIELD |serviceid |t_id | |NOT NULL |0 |1|services -FIELD |type |t_integer |'0' |NOT NULL |0 -FIELD |ts_from |t_integer |'0' |NOT NULL |0 -FIELD |ts_to |t_integer |'0' |NOT NULL |0 -FIELD |note |t_varchar(255) |'' |NOT NULL |0 -INDEX |1 |serviceid,type,ts_from,ts_to - TABLE|icon_map|iconmapid|ZBX_DATA FIELD |iconmapid |t_id | |NOT NULL |0 FIELD |name |t_varchar(64) |'' |NOT NULL |0 @@ -1901,8 +1892,37 @@ FIELD |ha_sessionid |t_cuid |'' |NOT NULL |0 UNIQUE |1 |name INDEX |2 |status,lastaccess +TABLE|sla|slaid|ZBX_DATA +FIELD |slaid |t_id | |NOT NULL |0 +FIELD |name |t_varchar(255) |'' |NOT NULL |0 +FIELD |description |t_shorttext |'' |NOT NULL |0 +FIELD |status |t_integer |'0' |NOT NULL |0 +FIELD |slo |t_double |'99.9' |NOT NULL |0 +FIELD |period |t_integer |'0' |NOT NULL |0 +FIELD |timezone |t_varchar(50) |'UTC' |NOT NULL |ZBX_NODATA +UNIQUE |1 |name + +TABLE|sla_time|sla_timeid|ZBX_DATA +FIELD |sla_timeid |t_id | |NOT NULL |0 +FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid +FIELD |type |t_integer |'0' |NOT NULL |0 +FIELD |from |t_integer |'0' |NOT NULL |0 +FIELD |to |t_integer |'0' |NOT NULL |0 +FIELD |name |t_varchar(255) |'' |NOT NULL |0 +INDEX |1 |slaid + +TABLE|sla_service_tag|sla_service_tagid|0 +FIELD |sla_service_tagid |t_id | |NOT NULL |0 +FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid +FIELD |tag |t_varchar(255) |'' |NOT NULL |0 +FIELD |operator |t_integer |'0' |NOT NULL |0 +FIELD |value |t_varchar(255) |'' |NOT NULL |0 +INDEX |1 |slaid + TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | ROW |1 |5050111 |5050111 + + -- cgit v1.2.3 From 59cfb62d05a9e9f76ea0badb1bd070bc66189abf Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Wed, 17 Nov 2021 17:33:19 +0200 Subject: ....I..... [ZBXNEXT-6999] added upgrade patch for schema --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 9bf73ad8a75..02e6a07abac 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1923,6 +1923,6 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050111 |5050111 +ROW |1 |5050124 |5050124 -- cgit v1.2.3 From 882f0efe3fbdd4bc81d55702c897b8687285b18d Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Mon, 22 Nov 2021 11:28:20 +0200 Subject: ....I..... [ZBXNEXT-6999] updated schema and upgrade patch for schema --- create/src/schema.tmpl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 02e6a07abac..56f9fd0a1e4 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1902,10 +1902,16 @@ FIELD |period |t_integer |'0' |NOT NULL |0 FIELD |timezone |t_varchar(50) |'UTC' |NOT NULL |ZBX_NODATA UNIQUE |1 |name -TABLE|sla_time|sla_timeid|ZBX_DATA -FIELD |sla_timeid |t_id | |NOT NULL |0 +TABLE|sla_schedule|sla_scheduleid|ZBX_DATA +FIELD |sla_scheduleid |t_id | |NOT NULL |0 +FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid +FIELD |from |t_integer |'0' |NOT NULL |0 +FIELD |to |t_integer |'0' |NOT NULL |0 +INDEX |1 |slaid + +TABLE|sla_downtime|sla_downtimeid|ZBX_DATA +FIELD |sla_downtimeid |t_id | |NOT NULL |0 FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid -FIELD |type |t_integer |'0' |NOT NULL |0 FIELD |from |t_integer |'0' |NOT NULL |0 FIELD |to |t_integer |'0' |NOT NULL |0 FIELD |name |t_varchar(255) |'' |NOT NULL |0 @@ -1923,6 +1929,6 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050124 |5050124 +ROW |1 |5050127 |5050127 -- cgit v1.2.3 From 33e2317b39a95534c4841e675dc9e88af44ebfaf Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Mon, 22 Nov 2021 15:54:55 +0200 Subject: ....I..... [ZBXNEXT-6999] updated schema and upgrade patch for schema --- create/src/schema.tmpl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 56f9fd0a1e4..ca7ffef57a3 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1909,13 +1909,13 @@ FIELD |from |t_integer |'0' |NOT NULL |0 FIELD |to |t_integer |'0' |NOT NULL |0 INDEX |1 |slaid -TABLE|sla_downtime|sla_downtimeid|ZBX_DATA -FIELD |sla_downtimeid |t_id | |NOT NULL |0 -FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid -FIELD |from |t_integer |'0' |NOT NULL |0 -FIELD |to |t_integer |'0' |NOT NULL |0 -FIELD |name |t_varchar(255) |'' |NOT NULL |0 -INDEX |1 |slaid +TABLE|sla_excluded_downtime|sla_excluded_downtimeid|ZBX_DATA +FIELD |sla_excluded_downtimeid|t_id | |NOT NULL |0 +FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid +FIELD |name |t_varchar(255) |'' |NOT NULL |0 +FIELD |from |t_integer |'0' |NOT NULL |0 +FIELD |to |t_integer |'0' |NOT NULL |0 +INDEX |1 |slaid TABLE|sla_service_tag|sla_service_tagid|0 FIELD |sla_service_tagid |t_id | |NOT NULL |0 @@ -1930,5 +1930,3 @@ FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | ROW |1 |5050127 |5050127 - - -- cgit v1.2.3 From 1b351c37803480be3f29641950f06772f9cbe3aa Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Wed, 24 Nov 2021 16:43:46 +0200 Subject: ....I..... [ZBXNEXT-6999] added upgrade patch --- create/src/schema.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index ca7ffef57a3..42c2ee1e2d4 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1905,16 +1905,16 @@ UNIQUE |1 |name TABLE|sla_schedule|sla_scheduleid|ZBX_DATA FIELD |sla_scheduleid |t_id | |NOT NULL |0 FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid -FIELD |from |t_integer |'0' |NOT NULL |0 -FIELD |to |t_integer |'0' |NOT NULL |0 +FIELD |period_from |t_integer |'0' |NOT NULL |0 +FIELD |period_to |t_integer |'0' |NOT NULL |0 INDEX |1 |slaid TABLE|sla_excluded_downtime|sla_excluded_downtimeid|ZBX_DATA FIELD |sla_excluded_downtimeid|t_id | |NOT NULL |0 FIELD |slaid |t_id | |NOT NULL |0 |1|sla|slaid FIELD |name |t_varchar(255) |'' |NOT NULL |0 -FIELD |from |t_integer |'0' |NOT NULL |0 -FIELD |to |t_integer |'0' |NOT NULL |0 +FIELD |period_from |t_integer |'0' |NOT NULL |0 +FIELD |period_to |t_integer |'0' |NOT NULL |0 INDEX |1 |slaid TABLE|sla_service_tag|sla_service_tagid|0 @@ -1929,4 +1929,4 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050127 |5050127 +ROW |1 |5050128 |5050128 -- cgit v1.2.3 From a42ec6cd22040935d7b7a117cf0548740796c8a9 Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Wed, 24 Nov 2021 17:56:42 +0200 Subject: ....I..... [ZBXNEXT-6999] added uuid generation for services --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 42c2ee1e2d4..f4375690343 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1929,4 +1929,4 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050128 |5050128 +ROW |1 |5050129 |5050129 -- cgit v1.2.3 From 86dd93671922df992b9745aa9eeb45ecb2dffc1b Mon Sep 17 00:00:00 2001 From: Janis Freibergs Date: Thu, 25 Nov 2021 14:25:31 +0200 Subject: ..F....... [ZBXNEXT-6999] added temporary commit --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 56f9fd0a1e4..afb4688a90c 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1929,6 +1929,6 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050127 |5050127 +ROW |1 |5050128 |5050128 -- cgit v1.2.3 From 4b8070c70236549cd1585780edf8ae16ee2c507e Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Mon, 29 Nov 2021 15:27:38 +0200 Subject: ..F....... [ZBXNEXT-6999] updated PHP DB schema #2 --- create/src/dashboards.tmpl | 1381 ++++++++++++++++++++++---------------------- create/src/schema.tmpl | 4 + 2 files changed, 694 insertions(+), 691 deletions(-) (limited to 'create') diff --git a/create/src/dashboards.tmpl b/create/src/dashboards.tmpl index 9fb401a86b5..c0956879061 100644 --- a/create/src/dashboards.tmpl +++ b/create/src/dashboards.tmpl @@ -362,694 +362,693 @@ ROW |399 |graph | |12 |5 |12 ROW |400 |map | |0 |0 |24 |4 |0 |57 | TABLE |widget_field -FIELDS|widget_fieldid|widgetid|type|name |value_int|value_str |value_groupid|value_hostid|value_itemid|value_graphid|value_sysmapid| -ROW |1 |2 |0 |interface_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |2 |3 |0 |show_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |3 |5 |0 |show |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |4 |5 |0 |show_tags |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |5 |8 |3 |hostids |0 | |NULL |10084 |NULL |NULL |NULL | -ROW |6 |10 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |7 |10 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |8 |10 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |9 |10 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |10 |10 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |11 |10 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |12 |10 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |13 |10 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |14 |10 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |15 |10 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |16 |10 |1 |ds.color.0 |0 |00BFFF |NULL |NULL |NULL |NULL |NULL | -ROW |17 |10 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |18 |10 |1 |ds.items.0.0 |0 |Number of processed *values per second|NULL |NULL |NULL |NULL |NULL | -ROW |19 |10 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |20 |10 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |21 |10 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |22 |11 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |23 |11 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |24 |11 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |25 |11 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |26 |11 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |27 |11 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |28 |11 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |29 |11 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |30 |11 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |31 |11 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |32 |11 |1 |ds.color.0 |0 |E57373 |NULL |NULL |NULL |NULL |NULL | -ROW |33 |11 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |34 |11 |1 |ds.items.0.0 |0 |Utilization of * data collector * |NULL |NULL |NULL |NULL |NULL | -ROW |35 |11 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |36 |11 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL | -ROW |37 |11 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |38 |11 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |39 |12 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |40 |12 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |41 |12 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |42 |12 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |43 |12 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |44 |12 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |45 |12 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |46 |12 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |47 |12 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |48 |12 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |49 |12 |1 |ds.color.0 |0 |E57373 |NULL |NULL |NULL |NULL |NULL | -ROW |50 |12 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |51 |12 |1 |ds.items.0.0 |0 |Utilization of * internal * |NULL |NULL |NULL |NULL |NULL | -ROW |52 |12 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |53 |12 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL | -ROW |54 |12 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |55 |12 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |56 |13 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |57 |13 |0 |ds.fill.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |58 |13 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |59 |13 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |60 |13 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |61 |13 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |62 |13 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |63 |13 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |64 |13 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |65 |13 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |66 |13 |1 |ds.color.0 |0 |4DB6AC |NULL |NULL |NULL |NULL |NULL | -ROW |67 |13 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |68 |13 |1 |ds.items.0.0 |0 |Zabbix*cache*% used |NULL |NULL |NULL |NULL |NULL | -ROW |69 |13 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |70 |13 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL | -ROW |71 |13 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |72 |13 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |73 |14 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |74 |14 |0 |ds.axisy.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |75 |14 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |76 |14 |0 |ds.fill.1 |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |77 |14 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |78 |14 |0 |ds.missingdatafunc.1|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |79 |14 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |80 |14 |0 |ds.transparency.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |81 |14 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |82 |14 |0 |ds.type.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |83 |14 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |84 |14 |0 |ds.width.1 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |85 |14 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |86 |14 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |87 |14 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |88 |14 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |89 |14 |1 |ds.color.0 |0 |9CCC65 |NULL |NULL |NULL |NULL |NULL | -ROW |90 |14 |1 |ds.color.1 |0 |FF465C |NULL |NULL |NULL |NULL |NULL | -ROW |91 |14 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |92 |14 |1 |ds.hosts.1.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |93 |14 |1 |ds.items.0.0 |0 |Zabbix value cache hits |NULL |NULL |NULL |NULL |NULL | -ROW |94 |14 |1 |ds.items.1.0 |0 |Zabbix value cache misses |NULL |NULL |NULL |NULL |NULL | -ROW |95 |14 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |96 |14 |1 |ds.timeshift.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |97 |14 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |98 |14 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |99 |15 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |100 |15 |0 |ds.axisy.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |101 |15 |0 |ds.axisy.2 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |102 |15 |0 |ds.fill.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |103 |15 |0 |ds.fill.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |104 |15 |0 |ds.fill.2 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |105 |15 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |106 |15 |0 |ds.missingdatafunc.1|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |107 |15 |0 |ds.missingdatafunc.2|0 | |NULL |NULL |NULL |NULL |NULL | -ROW |108 |15 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |109 |15 |0 |ds.transparency.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |110 |15 |0 |ds.transparency.2 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |111 |15 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |112 |15 |0 |ds.type.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |113 |15 |0 |ds.type.2 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |114 |15 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |115 |15 |0 |ds.width.1 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |116 |15 |0 |ds.width.2 |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |117 |15 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |118 |15 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |119 |15 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |120 |15 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |121 |15 |1 |ds.color.0 |0 |B0AF07 |NULL |NULL |NULL |NULL |NULL | -ROW |122 |15 |1 |ds.color.1 |0 |E53935 |NULL |NULL |NULL |NULL |NULL | -ROW |123 |15 |1 |ds.color.2 |0 |0275B8 |NULL |NULL |NULL |NULL |NULL | -ROW |124 |15 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |125 |15 |1 |ds.hosts.1.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |126 |15 |1 |ds.hosts.2.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |127 |15 |1 |ds.items.0.0 |0 |Zabbix queue |NULL |NULL |NULL |NULL |NULL | -ROW |128 |15 |1 |ds.items.1.0 |0 |Zabbix queue over 10 minutes |NULL |NULL |NULL |NULL |NULL | -ROW |129 |15 |1 |ds.items.2.0 |0 |Zabbix preprocessing queue |NULL |NULL |NULL |NULL |NULL | -ROW |130 |15 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |131 |15 |1 |ds.timeshift.1 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |132 |15 |1 |ds.timeshift.2 |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |133 |15 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL | -ROW |134 |15 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL | -ROW |135 |16 |6 |graphid |0 | |NULL |NULL |NULL |838 |NULL | -ROW |137 |17 |6 |graphid |0 | |NULL |NULL |NULL |839 |NULL | -ROW |139 |18 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |140 |18 |7 |graphid |0 | |NULL |NULL |NULL |836 |NULL | -ROW |143 |19 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |144 |19 |7 |graphid |0 | |NULL |NULL |NULL |837 |NULL | -ROW |147 |20 |6 |graphid |0 | |NULL |NULL |NULL |840 |NULL | -ROW |149 |21 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |150 |21 |6 |graphid |0 | |NULL |NULL |NULL |1174 |NULL | -ROW |151 |22 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |152 |22 |6 |graphid |0 | |NULL |NULL |NULL |1176 |NULL | -ROW |153 |23 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |154 |23 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |155 |23 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |156 |23 |7 |graphid |0 | |NULL |NULL |NULL |1172 |NULL | -ROW |157 |24 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |158 |24 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |159 |24 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |160 |24 |7 |graphid |0 | |NULL |NULL |NULL |1173 |NULL | -ROW |161 |25 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |162 |25 |6 |graphid |0 | |NULL |NULL |NULL |1175 |NULL | -ROW |173 |31 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |174 |31 |6 |graphid |0 | |NULL |NULL |NULL |1125 |NULL | -ROW |175 |32 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |176 |32 |6 |graphid |0 | |NULL |NULL |NULL |1129 |NULL | -ROW |177 |33 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |178 |33 |6 |graphid |0 | |NULL |NULL |NULL |1128 |NULL | -ROW |179 |34 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |180 |34 |6 |graphid |0 | |NULL |NULL |NULL |1126 |NULL | -ROW |181 |35 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |182 |35 |6 |graphid |0 | |NULL |NULL |NULL |1127 |NULL | -ROW |211 |49 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |212 |49 |6 |graphid |0 | |NULL |NULL |NULL |1029 |NULL | -ROW |213 |50 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |214 |50 |6 |graphid |0 | |NULL |NULL |NULL |1027 |NULL | -ROW |215 |51 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |216 |51 |6 |graphid |0 | |NULL |NULL |NULL |1030 |NULL | -ROW |217 |52 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |218 |52 |6 |graphid |0 | |NULL |NULL |NULL |1028 |NULL | -ROW |219 |53 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |220 |53 |6 |graphid |0 | |NULL |NULL |NULL |1031 |NULL | -ROW |221 |54 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |222 |54 |6 |graphid |0 | |NULL |NULL |NULL |1011 |NULL | -ROW |223 |55 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |224 |55 |6 |graphid |0 | |NULL |NULL |NULL |1012 |NULL | -ROW |225 |56 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |226 |56 |6 |graphid |0 | |NULL |NULL |NULL |1008 |NULL | -ROW |227 |57 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |228 |57 |6 |graphid |0 | |NULL |NULL |NULL |1009 |NULL | -ROW |229 |58 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |230 |58 |6 |graphid |0 | |NULL |NULL |NULL |1007 |NULL | -ROW |231 |59 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |232 |59 |6 |graphid |0 | |NULL |NULL |NULL |1010 |NULL | -ROW |233 |60 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |234 |60 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |235 |60 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |236 |60 |7 |graphid |0 | |NULL |NULL |NULL |952 |NULL | -ROW |237 |61 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |238 |61 |6 |graphid |0 | |NULL |NULL |NULL |957 |NULL | -ROW |239 |62 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |240 |62 |6 |graphid |0 | |NULL |NULL |NULL |959 |NULL | -ROW |241 |63 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |242 |63 |6 |graphid |0 | |NULL |NULL |NULL |962 |NULL | -ROW |243 |64 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |244 |64 |6 |graphid |0 | |NULL |NULL |NULL |963 |NULL | -ROW |245 |65 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |246 |65 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |247 |65 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |248 |65 |7 |graphid |0 | |NULL |NULL |NULL |953 |NULL | -ROW |249 |66 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |250 |66 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |251 |66 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |252 |66 |7 |graphid |0 | |NULL |NULL |NULL |954 |NULL | -ROW |253 |67 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |254 |67 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |255 |67 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |256 |67 |7 |graphid |0 | |NULL |NULL |NULL |955 |NULL | -ROW |257 |68 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |258 |68 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |259 |68 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |260 |68 |7 |graphid |0 | |NULL |NULL |NULL |956 |NULL | -ROW |261 |69 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |262 |69 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |263 |69 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |264 |69 |7 |graphid |0 | |NULL |NULL |NULL |952 |NULL | -ROW |287 |81 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |288 |81 |6 |graphid |0 | |NULL |NULL |NULL |1018 |NULL | -ROW |289 |82 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |290 |82 |6 |graphid |0 | |NULL |NULL |NULL |1016 |NULL | -ROW |291 |83 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |292 |83 |6 |graphid |0 | |NULL |NULL |NULL |1019 |NULL | -ROW |293 |84 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |294 |84 |6 |graphid |0 | |NULL |NULL |NULL |1017 |NULL | -ROW |295 |85 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |296 |85 |6 |graphid |0 | |NULL |NULL |NULL |1020 |NULL | -ROW |297 |86 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |298 |86 |6 |graphid |0 | |NULL |NULL |NULL |1025 |NULL | -ROW |299 |87 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |300 |87 |6 |graphid |0 | |NULL |NULL |NULL |1026 |NULL | -ROW |301 |88 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |302 |88 |6 |graphid |0 | |NULL |NULL |NULL |1022 |NULL | -ROW |303 |89 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |304 |89 |6 |graphid |0 | |NULL |NULL |NULL |1023 |NULL | -ROW |305 |90 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |306 |90 |6 |graphid |0 | |NULL |NULL |NULL |1021 |NULL | -ROW |307 |91 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |308 |91 |6 |graphid |0 | |NULL |NULL |NULL |1024 |NULL | -ROW |309 |92 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |310 |92 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |311 |92 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |312 |92 |7 |graphid |0 | |NULL |NULL |NULL |1287 |NULL | -ROW |313 |93 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |314 |93 |6 |graphid |0 | |NULL |NULL |NULL |1304 |NULL | -ROW |315 |94 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |316 |94 |6 |graphid |0 | |NULL |NULL |NULL |1292 |NULL | -ROW |317 |95 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |318 |95 |6 |graphid |0 | |NULL |NULL |NULL |1296 |NULL | -ROW |319 |96 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |320 |96 |6 |graphid |0 | |NULL |NULL |NULL |1302 |NULL | -ROW |321 |97 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |322 |97 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |323 |97 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |324 |97 |7 |graphid |0 | |NULL |NULL |NULL |1286 |NULL | -ROW |325 |98 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |326 |98 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |327 |98 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |328 |98 |7 |graphid |0 | |NULL |NULL |NULL |1282 |NULL | -ROW |329 |99 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |330 |99 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |331 |99 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |332 |99 |7 |graphid |0 | |NULL |NULL |NULL |1280 |NULL | -ROW |333 |100 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |334 |100 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |335 |100 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |336 |100 |7 |graphid |0 | |NULL |NULL |NULL |1284 |NULL | -ROW |337 |101 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |338 |101 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |339 |101 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |340 |101 |7 |graphid |0 | |NULL |NULL |NULL |1288 |NULL | -ROW |341 |102 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |342 |102 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |343 |102 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |344 |102 |7 |graphid |0 | |NULL |NULL |NULL |899 |NULL | -ROW |345 |103 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |346 |103 |6 |graphid |0 | |NULL |NULL |NULL |903 |NULL | -ROW |347 |104 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |348 |104 |6 |graphid |0 | |NULL |NULL |NULL |909 |NULL | -ROW |349 |105 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |350 |105 |6 |graphid |0 | |NULL |NULL |NULL |918 |NULL | -ROW |351 |106 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |352 |106 |6 |graphid |0 | |NULL |NULL |NULL |921 |NULL | -ROW |353 |107 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |354 |107 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |355 |107 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |356 |107 |7 |graphid |0 | |NULL |NULL |NULL |888 |NULL | -ROW |357 |108 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |358 |108 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |359 |108 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |360 |108 |7 |graphid |0 | |NULL |NULL |NULL |1227 |NULL | -ROW |361 |109 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |362 |109 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |363 |109 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |364 |109 |7 |graphid |0 | |NULL |NULL |NULL |1224 |NULL | -ROW |365 |110 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |366 |110 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |367 |110 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |368 |110 |7 |graphid |0 | |NULL |NULL |NULL |1230 |NULL | -ROW |369 |111 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |370 |111 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |371 |111 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |372 |111 |7 |graphid |0 | |NULL |NULL |NULL |900 |NULL | -ROW |373 |112 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |374 |112 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |375 |112 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |376 |112 |7 |graphid |0 | |NULL |NULL |NULL |1221 |NULL | -ROW |377 |113 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |378 |113 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |379 |113 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |380 |113 |7 |graphid |0 | |NULL |NULL |NULL |1219 |NULL | -ROW |381 |114 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |382 |114 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |383 |114 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |384 |114 |7 |graphid |0 | |NULL |NULL |NULL |1222 |NULL | -ROW |385 |115 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |386 |115 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |387 |115 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |388 |115 |7 |graphid |0 | |NULL |NULL |NULL |1220 |NULL | -ROW |389 |116 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |390 |116 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |391 |116 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |392 |116 |7 |graphid |0 | |NULL |NULL |NULL |1307 |NULL | -ROW |417 |125 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |418 |125 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |419 |125 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |420 |125 |7 |graphid |0 | |NULL |NULL |NULL |1238 |NULL | -ROW |421 |126 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |422 |126 |6 |graphid |0 | |NULL |NULL |NULL |977 |NULL | -ROW |423 |127 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |424 |127 |4 |itemid |0 | |NULL |NULL |29485 |NULL |NULL | -ROW |425 |128 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |426 |128 |6 |graphid |0 | |NULL |NULL |NULL |979 |NULL | -ROW |427 |129 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |428 |129 |6 |graphid |0 | |NULL |NULL |NULL |981 |NULL | -ROW |429 |130 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |430 |130 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |431 |130 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |432 |130 |7 |graphid |0 | |NULL |NULL |NULL |965 |NULL | -ROW |433 |131 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |434 |131 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |435 |131 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |436 |131 |7 |graphid |0 | |NULL |NULL |NULL |1241 |NULL | -ROW |437 |132 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |438 |132 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |439 |132 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |440 |132 |7 |graphid |0 | |NULL |NULL |NULL |1243 |NULL | -ROW |441 |133 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |442 |133 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |443 |133 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |444 |133 |7 |graphid |0 | |NULL |NULL |NULL |1239 |NULL | -ROW |445 |134 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |446 |134 |6 |graphid |0 | |NULL |NULL |NULL |1112 |NULL | -ROW |447 |135 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |448 |135 |6 |graphid |0 | |NULL |NULL |NULL |1113 |NULL | -ROW |449 |136 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |450 |136 |6 |graphid |0 | |NULL |NULL |NULL |1110 |NULL | -ROW |451 |137 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |452 |137 |6 |graphid |0 | |NULL |NULL |NULL |1109 |NULL | -ROW |453 |138 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |454 |138 |6 |graphid |0 | |NULL |NULL |NULL |1111 |NULL | -ROW |455 |139 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |456 |139 |6 |graphid |0 | |NULL |NULL |NULL |1114 |NULL | -ROW |457 |140 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |458 |140 |6 |graphid |0 | |NULL |NULL |NULL |1139 |NULL | -ROW |459 |141 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |460 |141 |6 |graphid |0 | |NULL |NULL |NULL |1140 |NULL | -ROW |461 |142 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |462 |142 |6 |graphid |0 | |NULL |NULL |NULL |1137 |NULL | -ROW |463 |143 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |464 |143 |6 |graphid |0 | |NULL |NULL |NULL |1136 |NULL | -ROW |465 |144 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |466 |144 |6 |graphid |0 | |NULL |NULL |NULL |1138 |NULL | -ROW |467 |145 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |468 |145 |6 |graphid |0 | |NULL |NULL |NULL |1141 |NULL | -ROW |495 |154 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |496 |154 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |497 |154 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |498 |154 |7 |graphid |0 | |NULL |NULL |NULL |766 |NULL | -ROW |499 |155 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |500 |155 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |501 |155 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |502 |155 |7 |graphid |0 | |NULL |NULL |NULL |745 |NULL | -ROW |503 |156 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |504 |156 |6 |graphid |0 | |NULL |NULL |NULL |841 |NULL | -ROW |505 |157 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |506 |157 |6 |graphid |0 | |NULL |NULL |NULL |843 |NULL | -ROW |507 |158 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |508 |158 |6 |graphid |0 | |NULL |NULL |NULL |842 |NULL | -ROW |519 |162 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |520 |162 |6 |graphid |0 | |NULL |NULL |NULL |845 |NULL | -ROW |521 |163 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |522 |163 |6 |graphid |0 | |NULL |NULL |NULL |847 |NULL | -ROW |523 |164 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |524 |164 |6 |graphid |0 | |NULL |NULL |NULL |846 |NULL | -ROW |525 |165 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |526 |165 |6 |graphid |0 | |NULL |NULL |NULL |1071 |NULL | -ROW |527 |166 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |528 |166 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |529 |166 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |530 |166 |7 |graphid |0 | |NULL |NULL |NULL |1061 |NULL | -ROW |531 |167 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |532 |167 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |533 |167 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |534 |167 |7 |graphid |0 | |NULL |NULL |NULL |1066 |NULL | -ROW |563 |182 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |564 |182 |6 |graphid |0 | |NULL |NULL |NULL |481 |NULL | -ROW |565 |183 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |566 |183 |6 |graphid |0 | |NULL |NULL |NULL |480 |NULL | -ROW |567 |184 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |568 |184 |6 |graphid |0 | |NULL |NULL |NULL |545 |NULL | -ROW |569 |185 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |570 |185 |6 |graphid |0 | |NULL |NULL |NULL |482 |NULL | -ROW |571 |186 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |572 |186 |4 |itemid |0 | |NULL |NULL |22998 |NULL |NULL | -ROW |573 |187 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |574 |187 |4 |itemid |0 | |NULL |NULL |22997 |NULL |NULL | -ROW |623 |204 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |624 |204 |6 |graphid |0 | |NULL |NULL |NULL |392 |NULL | -ROW |625 |205 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |626 |205 |6 |graphid |0 | |NULL |NULL |NULL |404 |NULL | -ROW |627 |206 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |628 |206 |6 |graphid |0 | |NULL |NULL |NULL |406 |NULL | -ROW |629 |207 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |630 |207 |6 |graphid |0 | |NULL |NULL |NULL |410 |NULL | -ROW |631 |208 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |632 |208 |6 |graphid |0 | |NULL |NULL |NULL |527 |NULL | -ROW |633 |209 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |634 |209 |6 |graphid |0 | |NULL |NULL |NULL |788 |NULL | -ROW |635 |210 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |636 |210 |6 |graphid |0 | |NULL |NULL |NULL |532 |NULL | -ROW |637 |211 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |638 |211 |6 |graphid |0 | |NULL |NULL |NULL |530 |NULL | -ROW |639 |212 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |640 |212 |6 |graphid |0 | |NULL |NULL |NULL |531 |NULL | -ROW |641 |213 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |642 |213 |6 |graphid |0 | |NULL |NULL |NULL |529 |NULL | -ROW |643 |214 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |644 |214 |6 |graphid |0 | |NULL |NULL |NULL |802 |NULL | -ROW |645 |215 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |646 |215 |6 |graphid |0 | |NULL |NULL |NULL |799 |NULL | -ROW |647 |216 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |648 |216 |6 |graphid |0 | |NULL |NULL |NULL |800 |NULL | -ROW |649 |217 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |650 |217 |6 |graphid |0 | |NULL |NULL |NULL |798 |NULL | -ROW |651 |218 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |652 |218 |6 |graphid |0 | |NULL |NULL |NULL |797 |NULL | -ROW |653 |219 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |654 |219 |6 |graphid |0 | |NULL |NULL |NULL |801 |NULL | -ROW |655 |220 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |656 |220 |6 |graphid |0 | |NULL |NULL |NULL |806 |NULL | -ROW |657 |221 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |658 |221 |6 |graphid |0 | |NULL |NULL |NULL |804 |NULL | -ROW |659 |222 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |660 |222 |6 |graphid |0 | |NULL |NULL |NULL |805 |NULL | -ROW |661 |223 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |662 |223 |6 |graphid |0 | |NULL |NULL |NULL |803 |NULL | -ROW |663 |224 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |664 |224 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |665 |224 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |666 |224 |7 |graphid |0 | |NULL |NULL |NULL |1081 |NULL | -ROW |667 |225 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |668 |225 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |669 |225 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |670 |225 |7 |graphid |0 | |NULL |NULL |NULL |1084 |NULL | -ROW |671 |226 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |672 |226 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |673 |226 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |674 |226 |7 |graphid |0 | |NULL |NULL |NULL |1082 |NULL | -ROW |675 |227 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |676 |227 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |677 |227 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |678 |227 |7 |graphid |0 | |NULL |NULL |NULL |1085 |NULL | -ROW |679 |228 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |680 |228 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |681 |228 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |682 |228 |7 |graphid |0 | |NULL |NULL |NULL |1083 |NULL | -ROW |683 |229 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |684 |229 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |685 |229 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |686 |229 |7 |graphid |0 | |NULL |NULL |NULL |1086 |NULL | -ROW |711 |236 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |712 |236 |6 |graphid |0 | |NULL |NULL |NULL |457 |NULL | -ROW |713 |237 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |714 |237 |6 |graphid |0 | |NULL |NULL |NULL |456 |NULL | -ROW |715 |238 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |716 |238 |6 |graphid |0 | |NULL |NULL |NULL |544 |NULL | -ROW |717 |239 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |718 |239 |6 |graphid |0 | |NULL |NULL |NULL |458 |NULL | -ROW |719 |240 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |720 |240 |4 |itemid |0 | |NULL |NULL |22838 |NULL |NULL | -ROW |721 |241 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |722 |241 |4 |itemid |0 | |NULL |NULL |22837 |NULL |NULL | -ROW |747 |248 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |748 |248 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |749 |248 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |750 |248 |7 |graphid |0 | |NULL |NULL |NULL |1075 |NULL | -ROW |751 |249 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |752 |249 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |753 |249 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |754 |249 |7 |graphid |0 | |NULL |NULL |NULL |1078 |NULL | -ROW |755 |250 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |756 |250 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |757 |250 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |758 |250 |7 |graphid |0 | |NULL |NULL |NULL |1076 |NULL | -ROW |759 |251 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |760 |251 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |761 |251 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |762 |251 |7 |graphid |0 | |NULL |NULL |NULL |1079 |NULL | -ROW |763 |252 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |764 |252 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |765 |252 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |766 |252 |7 |graphid |0 | |NULL |NULL |NULL |1077 |NULL | -ROW |767 |253 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |768 |253 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |769 |253 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |770 |253 |7 |graphid |0 | |NULL |NULL |NULL |1080 |NULL | -ROW |771 |254 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |772 |254 |6 |graphid |0 | |NULL |NULL |NULL |487 |NULL | -ROW |773 |255 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |774 |255 |6 |graphid |0 | |NULL |NULL |NULL |543 |NULL | -ROW |823 |272 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |824 |272 |6 |graphid |0 | |NULL |NULL |NULL |1316 |NULL | -ROW |825 |273 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |826 |273 |4 |itemid |0 | |NULL |NULL |31980 |NULL |NULL | -ROW |827 |274 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |828 |274 |6 |graphid |0 | |NULL |NULL |NULL |1320 |NULL | -ROW |829 |275 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |830 |275 |6 |graphid |0 | |NULL |NULL |NULL |1322 |NULL | -ROW |831 |276 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |832 |276 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |833 |276 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |834 |276 |7 |graphid |0 | |NULL |NULL |NULL |1306 |NULL | -ROW |835 |277 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |836 |277 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |837 |277 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |838 |277 |7 |graphid |0 | |NULL |NULL |NULL |1310 |NULL | -ROW |839 |278 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |840 |278 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |841 |278 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |842 |278 |7 |graphid |0 | |NULL |NULL |NULL |1312 |NULL | -ROW |843 |279 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |844 |279 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |845 |279 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |846 |279 |7 |graphid |0 | |NULL |NULL |NULL |1308 |NULL | -ROW |991 |328 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |992 |328 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |993 |328 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |994 |328 |7 |graphid |0 | |NULL |NULL |NULL |1387 |NULL | -ROW |995 |329 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |996 |329 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |997 |329 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |998 |329 |7 |graphid |0 | |NULL |NULL |NULL |1382 |NULL | -ROW |999 |330 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1000 |330 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1001 |330 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1002 |330 |7 |graphid |0 | |NULL |NULL |NULL |1380 |NULL | -ROW |1003 |331 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1004 |331 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1005 |331 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1006 |331 |7 |graphid |0 | |NULL |NULL |NULL |1386 |NULL | -ROW |1007 |332 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1008 |332 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1009 |332 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1010 |332 |7 |graphid |0 | |NULL |NULL |NULL |1383 |NULL | -ROW |1011 |333 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1012 |333 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1013 |333 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1014 |333 |7 |graphid |0 | |NULL |NULL |NULL |1381 |NULL | -ROW |1015 |334 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1016 |334 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1017 |334 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1018 |334 |7 |graphid |0 | |NULL |NULL |NULL |1384 |NULL | -ROW |1019 |335 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1020 |335 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1021 |335 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1022 |335 |7 |graphid |0 | |NULL |NULL |NULL |1385 |NULL | -ROW |1023 |336 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1024 |336 |6 |graphid |0 | |NULL |NULL |NULL |1390 |NULL | -ROW |1025 |337 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1026 |337 |6 |graphid |0 | |NULL |NULL |NULL |1393 |NULL | -ROW |1027 |338 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1028 |338 |6 |graphid |0 | |NULL |NULL |NULL |1391 |NULL | -ROW |1029 |339 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1030 |339 |6 |graphid |0 | |NULL |NULL |NULL |1394 |NULL | -ROW |1031 |340 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1032 |340 |6 |graphid |0 | |NULL |NULL |NULL |1392 |NULL | -ROW |1033 |341 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1034 |341 |6 |graphid |0 | |NULL |NULL |NULL |1395 |NULL | -ROW |1035 |342 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1036 |342 |6 |graphid |0 | |NULL |NULL |NULL |1388 |NULL | -ROW |1037 |343 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1038 |343 |6 |graphid |0 | |NULL |NULL |NULL |1389 |NULL | -ROW |1039 |344 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1040 |344 |6 |graphid |0 | |NULL |NULL |NULL |469 |NULL | -ROW |1041 |345 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1042 |345 |6 |graphid |0 | |NULL |NULL |NULL |471 |NULL | -ROW |1043 |346 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1044 |346 |6 |graphid |0 | |NULL |NULL |NULL |498 |NULL | -ROW |1045 |347 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1046 |347 |6 |graphid |0 | |NULL |NULL |NULL |540 |NULL | -ROW |1047 |348 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1048 |348 |6 |graphid |0 | |NULL |NULL |NULL |463 |NULL | -ROW |1049 |349 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1050 |349 |6 |graphid |0 | |NULL |NULL |NULL |462 |NULL | -ROW |1051 |350 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1052 |350 |6 |graphid |0 | |NULL |NULL |NULL |541 |NULL | -ROW |1053 |351 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1054 |351 |6 |graphid |0 | |NULL |NULL |NULL |464 |NULL | -ROW |1061 |355 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1062 |355 |6 |graphid |0 | |NULL |NULL |NULL |475 |NULL | -ROW |1063 |356 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1064 |356 |6 |graphid |0 | |NULL |NULL |NULL |474 |NULL | -ROW |1065 |357 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1066 |357 |6 |graphid |0 | |NULL |NULL |NULL |542 |NULL | -ROW |1079 |364 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1080 |364 |6 |graphid |0 | |NULL |NULL |NULL |1118 |NULL | -ROW |1081 |365 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1082 |365 |6 |graphid |0 | |NULL |NULL |NULL |1119 |NULL | -ROW |1083 |366 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1084 |366 |6 |graphid |0 | |NULL |NULL |NULL |1116 |NULL | -ROW |1085 |367 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1086 |367 |6 |graphid |0 | |NULL |NULL |NULL |1115 |NULL | -ROW |1087 |368 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1088 |368 |6 |graphid |0 | |NULL |NULL |NULL |1117 |NULL | -ROW |1089 |369 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1090 |369 |6 |graphid |0 | |NULL |NULL |NULL |1120 |NULL | -ROW |1091 |370 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1092 |370 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1093 |370 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1094 |370 |7 |graphid |0 | |NULL |NULL |NULL |741 |NULL | -ROW |1121 |379 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1122 |379 |6 |graphid |0 | |NULL |NULL |NULL |881 |NULL | -ROW |1123 |380 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1124 |380 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1125 |380 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1126 |380 |7 |graphid |0 | |NULL |NULL |NULL |869 |NULL | -ROW |1127 |381 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1128 |381 |6 |graphid |0 | |NULL |NULL |NULL |877 |NULL | -ROW |1129 |382 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1130 |382 |6 |graphid |0 | |NULL |NULL |NULL |879 |NULL | -ROW |1131 |383 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1132 |383 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1133 |383 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1134 |383 |7 |graphid |0 | |NULL |NULL |NULL |873 |NULL | -ROW |1135 |384 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1136 |384 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1137 |384 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1138 |384 |7 |graphid |0 | |NULL |NULL |NULL |867 |NULL | -ROW |1139 |385 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1140 |385 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1141 |385 |0 |source_type |3 | |NULL |NULL |NULL |NULL |NULL | -ROW |1142 |385 |5 |itemid |0 | |NULL |NULL |29033 |NULL |NULL | -ROW |1143 |386 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1144 |386 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1145 |386 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1146 |386 |7 |graphid |0 | |NULL |NULL |NULL |865 |NULL | -ROW |1147 |387 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1148 |387 |6 |graphid |0 | |NULL |NULL |NULL |1091 |NULL | -ROW |1149 |388 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1150 |388 |6 |graphid |0 | |NULL |NULL |NULL |1095 |NULL | -ROW |1151 |389 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1152 |389 |6 |graphid |0 | |NULL |NULL |NULL |1092 |NULL | -ROW |1153 |390 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1154 |390 |6 |graphid |0 | |NULL |NULL |NULL |1094 |NULL | -ROW |1155 |391 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1156 |391 |6 |graphid |0 | |NULL |NULL |NULL |1099 |NULL | -ROW |1157 |392 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1158 |392 |6 |graphid |0 | |NULL |NULL |NULL |1100 |NULL | -ROW |1159 |393 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1160 |393 |6 |graphid |0 | |NULL |NULL |NULL |1101 |NULL | -ROW |1161 |394 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1162 |394 |6 |graphid |0 | |NULL |NULL |NULL |1102 |NULL | -ROW |1163 |395 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1164 |395 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL | -ROW |1165 |395 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL | -ROW |1166 |395 |7 |graphid |0 | |NULL |NULL |NULL |1090 |NULL | -ROW |1167 |396 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1168 |396 |6 |graphid |0 | |NULL |NULL |NULL |1093 |NULL | -ROW |1169 |397 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1170 |397 |6 |graphid |0 | |NULL |NULL |NULL |1098 |NULL | -ROW |1171 |398 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1172 |398 |6 |graphid |0 | |NULL |NULL |NULL |1096 |NULL | -ROW |1173 |399 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL | -ROW |1174 |399 |6 |graphid |0 | |NULL |NULL |NULL |1097 |NULL | -ROW |1175 |400 |8 |sysmapid |0 | |NULL |NULL |NULL |NULL |1 | -ROW |1176 |400 |1 |reference |0 |NWLRB |NULL |NULL |NULL |NULL |NULL | - +FIELDS|widget_fieldid|widgetid|type|name |value_int|value_str |value_groupid|value_hostid|value_itemid|value_graphid|value_sysmapid|value_serviceid|value_slaid +ROW |1 |2 |0 |interface_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |2 |3 |0 |show_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |3 |5 |0 |show |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |4 |5 |0 |show_tags |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |5 |8 |3 |hostids |0 | |NULL |10084 |NULL |NULL |NULL |NULL |NULL | +ROW |6 |10 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |7 |10 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |8 |10 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |9 |10 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |10 |10 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |11 |10 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |12 |10 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |13 |10 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |14 |10 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |15 |10 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |16 |10 |1 |ds.color.0 |0 |00BFFF |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |17 |10 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |18 |10 |1 |ds.items.0.0 |0 |Number of processed *values per second|NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |19 |10 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |20 |10 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |21 |10 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |22 |11 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |23 |11 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |24 |11 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |25 |11 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |26 |11 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |27 |11 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |28 |11 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |29 |11 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |30 |11 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |31 |11 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |32 |11 |1 |ds.color.0 |0 |E57373 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |33 |11 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |34 |11 |1 |ds.items.0.0 |0 |Utilization of * data collector * |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |35 |11 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |36 |11 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |37 |11 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |38 |11 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |39 |12 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |40 |12 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |41 |12 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |42 |12 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |43 |12 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |44 |12 |0 |ds.width.0 |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |45 |12 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |46 |12 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |47 |12 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |48 |12 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |49 |12 |1 |ds.color.0 |0 |E57373 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |50 |12 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |51 |12 |1 |ds.items.0.0 |0 |Utilization of * internal * |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |52 |12 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |53 |12 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |54 |12 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |55 |12 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |56 |13 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |57 |13 |0 |ds.fill.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |58 |13 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |59 |13 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |60 |13 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |61 |13 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |62 |13 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |63 |13 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |64 |13 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |65 |13 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |66 |13 |1 |ds.color.0 |0 |4DB6AC |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |67 |13 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |68 |13 |1 |ds.items.0.0 |0 |Zabbix*cache*% used |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |69 |13 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |70 |13 |1 |lefty_max |0 |100 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |71 |13 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |72 |13 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |73 |14 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |74 |14 |0 |ds.axisy.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |75 |14 |0 |ds.fill.0 |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |76 |14 |0 |ds.fill.1 |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |77 |14 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |78 |14 |0 |ds.missingdatafunc.1|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |79 |14 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |80 |14 |0 |ds.transparency.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |81 |14 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |82 |14 |0 |ds.type.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |83 |14 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |84 |14 |0 |ds.width.1 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |85 |14 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |86 |14 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |87 |14 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |88 |14 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |89 |14 |1 |ds.color.0 |0 |9CCC65 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |90 |14 |1 |ds.color.1 |0 |FF465C |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |91 |14 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |92 |14 |1 |ds.hosts.1.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |93 |14 |1 |ds.items.0.0 |0 |Zabbix value cache hits |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |94 |14 |1 |ds.items.1.0 |0 |Zabbix value cache misses |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |95 |14 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |96 |14 |1 |ds.timeshift.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |97 |14 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |98 |14 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |99 |15 |0 |ds.axisy.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |100 |15 |0 |ds.axisy.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |101 |15 |0 |ds.axisy.2 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |102 |15 |0 |ds.fill.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |103 |15 |0 |ds.fill.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |104 |15 |0 |ds.fill.2 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |105 |15 |0 |ds.missingdatafunc.0|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |106 |15 |0 |ds.missingdatafunc.1|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |107 |15 |0 |ds.missingdatafunc.2|0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |108 |15 |0 |ds.transparency.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |109 |15 |0 |ds.transparency.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |110 |15 |0 |ds.transparency.2 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |111 |15 |0 |ds.type.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |112 |15 |0 |ds.type.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |113 |15 |0 |ds.type.2 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |114 |15 |0 |ds.width.0 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |115 |15 |0 |ds.width.1 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |116 |15 |0 |ds.width.2 |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |117 |15 |0 |graph_item_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |118 |15 |0 |legend |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |119 |15 |0 |righty |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |120 |15 |0 |show_problems |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |121 |15 |1 |ds.color.0 |0 |B0AF07 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |122 |15 |1 |ds.color.1 |0 |E53935 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |123 |15 |1 |ds.color.2 |0 |0275B8 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |124 |15 |1 |ds.hosts.0.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |125 |15 |1 |ds.hosts.1.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |126 |15 |1 |ds.hosts.2.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |127 |15 |1 |ds.items.0.0 |0 |Zabbix queue |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |128 |15 |1 |ds.items.1.0 |0 |Zabbix queue over 10 minutes |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |129 |15 |1 |ds.items.2.0 |0 |Zabbix preprocessing queue |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |130 |15 |1 |ds.timeshift.0 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |131 |15 |1 |ds.timeshift.1 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |132 |15 |1 |ds.timeshift.2 |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |133 |15 |1 |lefty_min |0 |0 |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |134 |15 |1 |problemhosts.0 |0 |Zabbix server |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |135 |16 |6 |graphid |0 | |NULL |NULL |NULL |838 |NULL |NULL |NULL | +ROW |137 |17 |6 |graphid |0 | |NULL |NULL |NULL |839 |NULL |NULL |NULL | +ROW |139 |18 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |140 |18 |7 |graphid |0 | |NULL |NULL |NULL |836 |NULL |NULL |NULL | +ROW |143 |19 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |144 |19 |7 |graphid |0 | |NULL |NULL |NULL |837 |NULL |NULL |NULL | +ROW |147 |20 |6 |graphid |0 | |NULL |NULL |NULL |840 |NULL |NULL |NULL | +ROW |149 |21 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |150 |21 |6 |graphid |0 | |NULL |NULL |NULL |1174 |NULL |NULL |NULL | +ROW |151 |22 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |152 |22 |6 |graphid |0 | |NULL |NULL |NULL |1176 |NULL |NULL |NULL | +ROW |153 |23 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |154 |23 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |155 |23 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |156 |23 |7 |graphid |0 | |NULL |NULL |NULL |1172 |NULL |NULL |NULL | +ROW |157 |24 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |158 |24 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |159 |24 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |160 |24 |7 |graphid |0 | |NULL |NULL |NULL |1173 |NULL |NULL |NULL | +ROW |161 |25 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |162 |25 |6 |graphid |0 | |NULL |NULL |NULL |1175 |NULL |NULL |NULL | +ROW |173 |31 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |174 |31 |6 |graphid |0 | |NULL |NULL |NULL |1125 |NULL |NULL |NULL | +ROW |175 |32 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |176 |32 |6 |graphid |0 | |NULL |NULL |NULL |1129 |NULL |NULL |NULL | +ROW |177 |33 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |178 |33 |6 |graphid |0 | |NULL |NULL |NULL |1128 |NULL |NULL |NULL | +ROW |179 |34 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |180 |34 |6 |graphid |0 | |NULL |NULL |NULL |1126 |NULL |NULL |NULL | +ROW |181 |35 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |182 |35 |6 |graphid |0 | |NULL |NULL |NULL |1127 |NULL |NULL |NULL | +ROW |211 |49 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |212 |49 |6 |graphid |0 | |NULL |NULL |NULL |1029 |NULL |NULL |NULL | +ROW |213 |50 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |214 |50 |6 |graphid |0 | |NULL |NULL |NULL |1027 |NULL |NULL |NULL | +ROW |215 |51 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |216 |51 |6 |graphid |0 | |NULL |NULL |NULL |1030 |NULL |NULL |NULL | +ROW |217 |52 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |218 |52 |6 |graphid |0 | |NULL |NULL |NULL |1028 |NULL |NULL |NULL | +ROW |219 |53 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |220 |53 |6 |graphid |0 | |NULL |NULL |NULL |1031 |NULL |NULL |NULL | +ROW |221 |54 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |222 |54 |6 |graphid |0 | |NULL |NULL |NULL |1011 |NULL |NULL |NULL | +ROW |223 |55 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |224 |55 |6 |graphid |0 | |NULL |NULL |NULL |1012 |NULL |NULL |NULL | +ROW |225 |56 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |226 |56 |6 |graphid |0 | |NULL |NULL |NULL |1008 |NULL |NULL |NULL | +ROW |227 |57 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |228 |57 |6 |graphid |0 | |NULL |NULL |NULL |1009 |NULL |NULL |NULL | +ROW |229 |58 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |230 |58 |6 |graphid |0 | |NULL |NULL |NULL |1007 |NULL |NULL |NULL | +ROW |231 |59 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |232 |59 |6 |graphid |0 | |NULL |NULL |NULL |1010 |NULL |NULL |NULL | +ROW |233 |60 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |234 |60 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |235 |60 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |236 |60 |7 |graphid |0 | |NULL |NULL |NULL |952 |NULL |NULL |NULL | +ROW |237 |61 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |238 |61 |6 |graphid |0 | |NULL |NULL |NULL |957 |NULL |NULL |NULL | +ROW |239 |62 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |240 |62 |6 |graphid |0 | |NULL |NULL |NULL |959 |NULL |NULL |NULL | +ROW |241 |63 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |242 |63 |6 |graphid |0 | |NULL |NULL |NULL |962 |NULL |NULL |NULL | +ROW |243 |64 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |244 |64 |6 |graphid |0 | |NULL |NULL |NULL |963 |NULL |NULL |NULL | +ROW |245 |65 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |246 |65 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |247 |65 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |248 |65 |7 |graphid |0 | |NULL |NULL |NULL |953 |NULL |NULL |NULL | +ROW |249 |66 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |250 |66 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |251 |66 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |252 |66 |7 |graphid |0 | |NULL |NULL |NULL |954 |NULL |NULL |NULL | +ROW |253 |67 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |254 |67 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |255 |67 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |256 |67 |7 |graphid |0 | |NULL |NULL |NULL |955 |NULL |NULL |NULL | +ROW |257 |68 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |258 |68 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |259 |68 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |260 |68 |7 |graphid |0 | |NULL |NULL |NULL |956 |NULL |NULL |NULL | +ROW |261 |69 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |262 |69 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |263 |69 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |264 |69 |7 |graphid |0 | |NULL |NULL |NULL |952 |NULL |NULL |NULL | +ROW |287 |81 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |288 |81 |6 |graphid |0 | |NULL |NULL |NULL |1018 |NULL |NULL |NULL | +ROW |289 |82 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |290 |82 |6 |graphid |0 | |NULL |NULL |NULL |1016 |NULL |NULL |NULL | +ROW |291 |83 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |292 |83 |6 |graphid |0 | |NULL |NULL |NULL |1019 |NULL |NULL |NULL | +ROW |293 |84 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |294 |84 |6 |graphid |0 | |NULL |NULL |NULL |1017 |NULL |NULL |NULL | +ROW |295 |85 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |296 |85 |6 |graphid |0 | |NULL |NULL |NULL |1020 |NULL |NULL |NULL | +ROW |297 |86 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |298 |86 |6 |graphid |0 | |NULL |NULL |NULL |1025 |NULL |NULL |NULL | +ROW |299 |87 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |300 |87 |6 |graphid |0 | |NULL |NULL |NULL |1026 |NULL |NULL |NULL | +ROW |301 |88 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |302 |88 |6 |graphid |0 | |NULL |NULL |NULL |1022 |NULL |NULL |NULL | +ROW |303 |89 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |304 |89 |6 |graphid |0 | |NULL |NULL |NULL |1023 |NULL |NULL |NULL | +ROW |305 |90 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |306 |90 |6 |graphid |0 | |NULL |NULL |NULL |1021 |NULL |NULL |NULL | +ROW |307 |91 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |308 |91 |6 |graphid |0 | |NULL |NULL |NULL |1024 |NULL |NULL |NULL | +ROW |309 |92 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |310 |92 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |311 |92 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |312 |92 |7 |graphid |0 | |NULL |NULL |NULL |1287 |NULL |NULL |NULL | +ROW |313 |93 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |314 |93 |6 |graphid |0 | |NULL |NULL |NULL |1304 |NULL |NULL |NULL | +ROW |315 |94 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |316 |94 |6 |graphid |0 | |NULL |NULL |NULL |1292 |NULL |NULL |NULL | +ROW |317 |95 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |318 |95 |6 |graphid |0 | |NULL |NULL |NULL |1296 |NULL |NULL |NULL | +ROW |319 |96 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |320 |96 |6 |graphid |0 | |NULL |NULL |NULL |1302 |NULL |NULL |NULL | +ROW |321 |97 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |322 |97 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |323 |97 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |324 |97 |7 |graphid |0 | |NULL |NULL |NULL |1286 |NULL |NULL |NULL | +ROW |325 |98 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |326 |98 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |327 |98 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |328 |98 |7 |graphid |0 | |NULL |NULL |NULL |1282 |NULL |NULL |NULL | +ROW |329 |99 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |330 |99 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |331 |99 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |332 |99 |7 |graphid |0 | |NULL |NULL |NULL |1280 |NULL |NULL |NULL | +ROW |333 |100 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |334 |100 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |335 |100 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |336 |100 |7 |graphid |0 | |NULL |NULL |NULL |1284 |NULL |NULL |NULL | +ROW |337 |101 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |338 |101 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |339 |101 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |340 |101 |7 |graphid |0 | |NULL |NULL |NULL |1288 |NULL |NULL |NULL | +ROW |341 |102 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |342 |102 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |343 |102 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |344 |102 |7 |graphid |0 | |NULL |NULL |NULL |899 |NULL |NULL |NULL | +ROW |345 |103 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |346 |103 |6 |graphid |0 | |NULL |NULL |NULL |903 |NULL |NULL |NULL | +ROW |347 |104 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |348 |104 |6 |graphid |0 | |NULL |NULL |NULL |909 |NULL |NULL |NULL | +ROW |349 |105 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |350 |105 |6 |graphid |0 | |NULL |NULL |NULL |918 |NULL |NULL |NULL | +ROW |351 |106 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |352 |106 |6 |graphid |0 | |NULL |NULL |NULL |921 |NULL |NULL |NULL | +ROW |353 |107 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |354 |107 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |355 |107 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |356 |107 |7 |graphid |0 | |NULL |NULL |NULL |888 |NULL |NULL |NULL | +ROW |357 |108 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |358 |108 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |359 |108 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |360 |108 |7 |graphid |0 | |NULL |NULL |NULL |1227 |NULL |NULL |NULL | +ROW |361 |109 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |362 |109 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |363 |109 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |364 |109 |7 |graphid |0 | |NULL |NULL |NULL |1224 |NULL |NULL |NULL | +ROW |365 |110 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |366 |110 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |367 |110 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |368 |110 |7 |graphid |0 | |NULL |NULL |NULL |1230 |NULL |NULL |NULL | +ROW |369 |111 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |370 |111 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |371 |111 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |372 |111 |7 |graphid |0 | |NULL |NULL |NULL |900 |NULL |NULL |NULL | +ROW |373 |112 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |374 |112 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |375 |112 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |376 |112 |7 |graphid |0 | |NULL |NULL |NULL |1221 |NULL |NULL |NULL | +ROW |377 |113 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |378 |113 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |379 |113 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |380 |113 |7 |graphid |0 | |NULL |NULL |NULL |1219 |NULL |NULL |NULL | +ROW |381 |114 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |382 |114 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |383 |114 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |384 |114 |7 |graphid |0 | |NULL |NULL |NULL |1222 |NULL |NULL |NULL | +ROW |385 |115 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |386 |115 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |387 |115 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |388 |115 |7 |graphid |0 | |NULL |NULL |NULL |1220 |NULL |NULL |NULL | +ROW |389 |116 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |390 |116 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |391 |116 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |392 |116 |7 |graphid |0 | |NULL |NULL |NULL |1307 |NULL |NULL |NULL | +ROW |417 |125 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |418 |125 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |419 |125 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |420 |125 |7 |graphid |0 | |NULL |NULL |NULL |1238 |NULL |NULL |NULL | +ROW |421 |126 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |422 |126 |6 |graphid |0 | |NULL |NULL |NULL |977 |NULL |NULL |NULL | +ROW |423 |127 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |424 |127 |4 |itemid |0 | |NULL |NULL |29485 |NULL |NULL |NULL |NULL | +ROW |425 |128 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |426 |128 |6 |graphid |0 | |NULL |NULL |NULL |979 |NULL |NULL |NULL | +ROW |427 |129 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |428 |129 |6 |graphid |0 | |NULL |NULL |NULL |981 |NULL |NULL |NULL | +ROW |429 |130 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |430 |130 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |431 |130 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |432 |130 |7 |graphid |0 | |NULL |NULL |NULL |965 |NULL |NULL |NULL | +ROW |433 |131 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |434 |131 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |435 |131 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |436 |131 |7 |graphid |0 | |NULL |NULL |NULL |1241 |NULL |NULL |NULL | +ROW |437 |132 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |438 |132 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |439 |132 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |440 |132 |7 |graphid |0 | |NULL |NULL |NULL |1243 |NULL |NULL |NULL | +ROW |441 |133 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |442 |133 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |443 |133 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |444 |133 |7 |graphid |0 | |NULL |NULL |NULL |1239 |NULL |NULL |NULL | +ROW |445 |134 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |446 |134 |6 |graphid |0 | |NULL |NULL |NULL |1112 |NULL |NULL |NULL | +ROW |447 |135 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |448 |135 |6 |graphid |0 | |NULL |NULL |NULL |1113 |NULL |NULL |NULL | +ROW |449 |136 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |450 |136 |6 |graphid |0 | |NULL |NULL |NULL |1110 |NULL |NULL |NULL | +ROW |451 |137 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |452 |137 |6 |graphid |0 | |NULL |NULL |NULL |1109 |NULL |NULL |NULL | +ROW |453 |138 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |454 |138 |6 |graphid |0 | |NULL |NULL |NULL |1111 |NULL |NULL |NULL | +ROW |455 |139 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |456 |139 |6 |graphid |0 | |NULL |NULL |NULL |1114 |NULL |NULL |NULL | +ROW |457 |140 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |458 |140 |6 |graphid |0 | |NULL |NULL |NULL |1139 |NULL |NULL |NULL | +ROW |459 |141 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |460 |141 |6 |graphid |0 | |NULL |NULL |NULL |1140 |NULL |NULL |NULL | +ROW |461 |142 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |462 |142 |6 |graphid |0 | |NULL |NULL |NULL |1137 |NULL |NULL |NULL | +ROW |463 |143 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |464 |143 |6 |graphid |0 | |NULL |NULL |NULL |1136 |NULL |NULL |NULL | +ROW |465 |144 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |466 |144 |6 |graphid |0 | |NULL |NULL |NULL |1138 |NULL |NULL |NULL | +ROW |467 |145 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |468 |145 |6 |graphid |0 | |NULL |NULL |NULL |1141 |NULL |NULL |NULL | +ROW |495 |154 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |496 |154 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |497 |154 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |498 |154 |7 |graphid |0 | |NULL |NULL |NULL |766 |NULL |NULL |NULL | +ROW |499 |155 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |500 |155 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |501 |155 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |502 |155 |7 |graphid |0 | |NULL |NULL |NULL |745 |NULL |NULL |NULL | +ROW |503 |156 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |504 |156 |6 |graphid |0 | |NULL |NULL |NULL |841 |NULL |NULL |NULL | +ROW |505 |157 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |506 |157 |6 |graphid |0 | |NULL |NULL |NULL |843 |NULL |NULL |NULL | +ROW |507 |158 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |508 |158 |6 |graphid |0 | |NULL |NULL |NULL |842 |NULL |NULL |NULL | +ROW |519 |162 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |520 |162 |6 |graphid |0 | |NULL |NULL |NULL |845 |NULL |NULL |NULL | +ROW |521 |163 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |522 |163 |6 |graphid |0 | |NULL |NULL |NULL |847 |NULL |NULL |NULL | +ROW |523 |164 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |524 |164 |6 |graphid |0 | |NULL |NULL |NULL |846 |NULL |NULL |NULL | +ROW |525 |165 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |526 |165 |6 |graphid |0 | |NULL |NULL |NULL |1071 |NULL |NULL |NULL | +ROW |527 |166 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |528 |166 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |529 |166 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |530 |166 |7 |graphid |0 | |NULL |NULL |NULL |1061 |NULL |NULL |NULL | +ROW |531 |167 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |532 |167 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |533 |167 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |534 |167 |7 |graphid |0 | |NULL |NULL |NULL |1066 |NULL |NULL |NULL | +ROW |563 |182 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |564 |182 |6 |graphid |0 | |NULL |NULL |NULL |481 |NULL |NULL |NULL | +ROW |565 |183 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |566 |183 |6 |graphid |0 | |NULL |NULL |NULL |480 |NULL |NULL |NULL | +ROW |567 |184 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |568 |184 |6 |graphid |0 | |NULL |NULL |NULL |545 |NULL |NULL |NULL | +ROW |569 |185 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |570 |185 |6 |graphid |0 | |NULL |NULL |NULL |482 |NULL |NULL |NULL | +ROW |571 |186 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |572 |186 |4 |itemid |0 | |NULL |NULL |22998 |NULL |NULL |NULL |NULL | +ROW |573 |187 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |574 |187 |4 |itemid |0 | |NULL |NULL |22997 |NULL |NULL |NULL |NULL | +ROW |623 |204 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |624 |204 |6 |graphid |0 | |NULL |NULL |NULL |392 |NULL |NULL |NULL | +ROW |625 |205 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |626 |205 |6 |graphid |0 | |NULL |NULL |NULL |404 |NULL |NULL |NULL | +ROW |627 |206 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |628 |206 |6 |graphid |0 | |NULL |NULL |NULL |406 |NULL |NULL |NULL | +ROW |629 |207 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |630 |207 |6 |graphid |0 | |NULL |NULL |NULL |410 |NULL |NULL |NULL | +ROW |631 |208 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |632 |208 |6 |graphid |0 | |NULL |NULL |NULL |527 |NULL |NULL |NULL | +ROW |633 |209 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |634 |209 |6 |graphid |0 | |NULL |NULL |NULL |788 |NULL |NULL |NULL | +ROW |635 |210 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |636 |210 |6 |graphid |0 | |NULL |NULL |NULL |532 |NULL |NULL |NULL | +ROW |637 |211 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |638 |211 |6 |graphid |0 | |NULL |NULL |NULL |530 |NULL |NULL |NULL | +ROW |639 |212 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |640 |212 |6 |graphid |0 | |NULL |NULL |NULL |531 |NULL |NULL |NULL | +ROW |641 |213 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |642 |213 |6 |graphid |0 | |NULL |NULL |NULL |529 |NULL |NULL |NULL | +ROW |643 |214 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |644 |214 |6 |graphid |0 | |NULL |NULL |NULL |802 |NULL |NULL |NULL | +ROW |645 |215 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |646 |215 |6 |graphid |0 | |NULL |NULL |NULL |799 |NULL |NULL |NULL | +ROW |647 |216 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |648 |216 |6 |graphid |0 | |NULL |NULL |NULL |800 |NULL |NULL |NULL | +ROW |649 |217 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |650 |217 |6 |graphid |0 | |NULL |NULL |NULL |798 |NULL |NULL |NULL | +ROW |651 |218 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |652 |218 |6 |graphid |0 | |NULL |NULL |NULL |797 |NULL |NULL |NULL | +ROW |653 |219 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |654 |219 |6 |graphid |0 | |NULL |NULL |NULL |801 |NULL |NULL |NULL | +ROW |655 |220 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |656 |220 |6 |graphid |0 | |NULL |NULL |NULL |806 |NULL |NULL |NULL | +ROW |657 |221 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |658 |221 |6 |graphid |0 | |NULL |NULL |NULL |804 |NULL |NULL |NULL | +ROW |659 |222 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |660 |222 |6 |graphid |0 | |NULL |NULL |NULL |805 |NULL |NULL |NULL | +ROW |661 |223 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |662 |223 |6 |graphid |0 | |NULL |NULL |NULL |803 |NULL |NULL |NULL | +ROW |663 |224 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |664 |224 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |665 |224 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |666 |224 |7 |graphid |0 | |NULL |NULL |NULL |1081 |NULL |NULL |NULL | +ROW |667 |225 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |668 |225 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |669 |225 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |670 |225 |7 |graphid |0 | |NULL |NULL |NULL |1084 |NULL |NULL |NULL | +ROW |671 |226 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |672 |226 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |673 |226 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |674 |226 |7 |graphid |0 | |NULL |NULL |NULL |1082 |NULL |NULL |NULL | +ROW |675 |227 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |676 |227 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |677 |227 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |678 |227 |7 |graphid |0 | |NULL |NULL |NULL |1085 |NULL |NULL |NULL | +ROW |679 |228 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |680 |228 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |681 |228 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |682 |228 |7 |graphid |0 | |NULL |NULL |NULL |1083 |NULL |NULL |NULL | +ROW |683 |229 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |684 |229 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |685 |229 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |686 |229 |7 |graphid |0 | |NULL |NULL |NULL |1086 |NULL |NULL |NULL | +ROW |711 |236 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |712 |236 |6 |graphid |0 | |NULL |NULL |NULL |457 |NULL |NULL |NULL | +ROW |713 |237 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |714 |237 |6 |graphid |0 | |NULL |NULL |NULL |456 |NULL |NULL |NULL | +ROW |715 |238 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |716 |238 |6 |graphid |0 | |NULL |NULL |NULL |544 |NULL |NULL |NULL | +ROW |717 |239 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |718 |239 |6 |graphid |0 | |NULL |NULL |NULL |458 |NULL |NULL |NULL | +ROW |719 |240 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |720 |240 |4 |itemid |0 | |NULL |NULL |22838 |NULL |NULL |NULL |NULL | +ROW |721 |241 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |722 |241 |4 |itemid |0 | |NULL |NULL |22837 |NULL |NULL |NULL |NULL | +ROW |747 |248 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |748 |248 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |749 |248 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |750 |248 |7 |graphid |0 | |NULL |NULL |NULL |1075 |NULL |NULL |NULL | +ROW |751 |249 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |752 |249 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |753 |249 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |754 |249 |7 |graphid |0 | |NULL |NULL |NULL |1078 |NULL |NULL |NULL | +ROW |755 |250 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |756 |250 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |757 |250 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |758 |250 |7 |graphid |0 | |NULL |NULL |NULL |1076 |NULL |NULL |NULL | +ROW |759 |251 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |760 |251 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |761 |251 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |762 |251 |7 |graphid |0 | |NULL |NULL |NULL |1079 |NULL |NULL |NULL | +ROW |763 |252 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |764 |252 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |765 |252 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |766 |252 |7 |graphid |0 | |NULL |NULL |NULL |1077 |NULL |NULL |NULL | +ROW |767 |253 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |768 |253 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |769 |253 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |770 |253 |7 |graphid |0 | |NULL |NULL |NULL |1080 |NULL |NULL |NULL | +ROW |771 |254 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |772 |254 |6 |graphid |0 | |NULL |NULL |NULL |487 |NULL |NULL |NULL | +ROW |773 |255 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |774 |255 |6 |graphid |0 | |NULL |NULL |NULL |543 |NULL |NULL |NULL | +ROW |823 |272 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |824 |272 |6 |graphid |0 | |NULL |NULL |NULL |1316 |NULL |NULL |NULL | +ROW |825 |273 |0 |source_type |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |826 |273 |4 |itemid |0 | |NULL |NULL |31980 |NULL |NULL |NULL |NULL | +ROW |827 |274 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |828 |274 |6 |graphid |0 | |NULL |NULL |NULL |1320 |NULL |NULL |NULL | +ROW |829 |275 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |830 |275 |6 |graphid |0 | |NULL |NULL |NULL |1322 |NULL |NULL |NULL | +ROW |831 |276 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |832 |276 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |833 |276 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |834 |276 |7 |graphid |0 | |NULL |NULL |NULL |1306 |NULL |NULL |NULL | +ROW |835 |277 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |836 |277 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |837 |277 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |838 |277 |7 |graphid |0 | |NULL |NULL |NULL |1310 |NULL |NULL |NULL | +ROW |839 |278 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |840 |278 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |841 |278 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |842 |278 |7 |graphid |0 | |NULL |NULL |NULL |1312 |NULL |NULL |NULL | +ROW |843 |279 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |844 |279 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |845 |279 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |846 |279 |7 |graphid |0 | |NULL |NULL |NULL |1308 |NULL |NULL |NULL | +ROW |991 |328 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |992 |328 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |993 |328 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |994 |328 |7 |graphid |0 | |NULL |NULL |NULL |1387 |NULL |NULL |NULL | +ROW |995 |329 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |996 |329 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |997 |329 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |998 |329 |7 |graphid |0 | |NULL |NULL |NULL |1382 |NULL |NULL |NULL | +ROW |999 |330 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1000 |330 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1001 |330 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1002 |330 |7 |graphid |0 | |NULL |NULL |NULL |1380 |NULL |NULL |NULL | +ROW |1003 |331 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1004 |331 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1005 |331 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1006 |331 |7 |graphid |0 | |NULL |NULL |NULL |1386 |NULL |NULL |NULL | +ROW |1007 |332 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1008 |332 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1009 |332 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1010 |332 |7 |graphid |0 | |NULL |NULL |NULL |1383 |NULL |NULL |NULL | +ROW |1011 |333 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1012 |333 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1013 |333 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1014 |333 |7 |graphid |0 | |NULL |NULL |NULL |1381 |NULL |NULL |NULL | +ROW |1015 |334 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1016 |334 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1017 |334 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1018 |334 |7 |graphid |0 | |NULL |NULL |NULL |1384 |NULL |NULL |NULL | +ROW |1019 |335 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1020 |335 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1021 |335 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1022 |335 |7 |graphid |0 | |NULL |NULL |NULL |1385 |NULL |NULL |NULL | +ROW |1023 |336 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1024 |336 |6 |graphid |0 | |NULL |NULL |NULL |1390 |NULL |NULL |NULL | +ROW |1025 |337 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1026 |337 |6 |graphid |0 | |NULL |NULL |NULL |1393 |NULL |NULL |NULL | +ROW |1027 |338 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1028 |338 |6 |graphid |0 | |NULL |NULL |NULL |1391 |NULL |NULL |NULL | +ROW |1029 |339 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1030 |339 |6 |graphid |0 | |NULL |NULL |NULL |1394 |NULL |NULL |NULL | +ROW |1031 |340 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1032 |340 |6 |graphid |0 | |NULL |NULL |NULL |1392 |NULL |NULL |NULL | +ROW |1033 |341 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1034 |341 |6 |graphid |0 | |NULL |NULL |NULL |1395 |NULL |NULL |NULL | +ROW |1035 |342 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1036 |342 |6 |graphid |0 | |NULL |NULL |NULL |1388 |NULL |NULL |NULL | +ROW |1037 |343 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1038 |343 |6 |graphid |0 | |NULL |NULL |NULL |1389 |NULL |NULL |NULL | +ROW |1039 |344 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1040 |344 |6 |graphid |0 | |NULL |NULL |NULL |469 |NULL |NULL |NULL | +ROW |1041 |345 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1042 |345 |6 |graphid |0 | |NULL |NULL |NULL |471 |NULL |NULL |NULL | +ROW |1043 |346 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1044 |346 |6 |graphid |0 | |NULL |NULL |NULL |498 |NULL |NULL |NULL | +ROW |1045 |347 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1046 |347 |6 |graphid |0 | |NULL |NULL |NULL |540 |NULL |NULL |NULL | +ROW |1047 |348 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1048 |348 |6 |graphid |0 | |NULL |NULL |NULL |463 |NULL |NULL |NULL | +ROW |1049 |349 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1050 |349 |6 |graphid |0 | |NULL |NULL |NULL |462 |NULL |NULL |NULL | +ROW |1051 |350 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1052 |350 |6 |graphid |0 | |NULL |NULL |NULL |541 |NULL |NULL |NULL | +ROW |1053 |351 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1054 |351 |6 |graphid |0 | |NULL |NULL |NULL |464 |NULL |NULL |NULL | +ROW |1061 |355 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1062 |355 |6 |graphid |0 | |NULL |NULL |NULL |475 |NULL |NULL |NULL | +ROW |1063 |356 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1064 |356 |6 |graphid |0 | |NULL |NULL |NULL |474 |NULL |NULL |NULL | +ROW |1065 |357 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1066 |357 |6 |graphid |0 | |NULL |NULL |NULL |542 |NULL |NULL |NULL | +ROW |1079 |364 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1080 |364 |6 |graphid |0 | |NULL |NULL |NULL |1118 |NULL |NULL |NULL | +ROW |1081 |365 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1082 |365 |6 |graphid |0 | |NULL |NULL |NULL |1119 |NULL |NULL |NULL | +ROW |1083 |366 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1084 |366 |6 |graphid |0 | |NULL |NULL |NULL |1116 |NULL |NULL |NULL | +ROW |1085 |367 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1086 |367 |6 |graphid |0 | |NULL |NULL |NULL |1115 |NULL |NULL |NULL | +ROW |1087 |368 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1088 |368 |6 |graphid |0 | |NULL |NULL |NULL |1117 |NULL |NULL |NULL | +ROW |1089 |369 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1090 |369 |6 |graphid |0 | |NULL |NULL |NULL |1120 |NULL |NULL |NULL | +ROW |1091 |370 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1092 |370 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1093 |370 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1094 |370 |7 |graphid |0 | |NULL |NULL |NULL |741 |NULL |NULL |NULL | +ROW |1121 |379 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1122 |379 |6 |graphid |0 | |NULL |NULL |NULL |881 |NULL |NULL |NULL | +ROW |1123 |380 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1124 |380 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1125 |380 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1126 |380 |7 |graphid |0 | |NULL |NULL |NULL |869 |NULL |NULL |NULL | +ROW |1127 |381 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1128 |381 |6 |graphid |0 | |NULL |NULL |NULL |877 |NULL |NULL |NULL | +ROW |1129 |382 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1130 |382 |6 |graphid |0 | |NULL |NULL |NULL |879 |NULL |NULL |NULL | +ROW |1131 |383 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1132 |383 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1133 |383 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1134 |383 |7 |graphid |0 | |NULL |NULL |NULL |873 |NULL |NULL |NULL | +ROW |1135 |384 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1136 |384 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1137 |384 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1138 |384 |7 |graphid |0 | |NULL |NULL |NULL |867 |NULL |NULL |NULL | +ROW |1139 |385 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1140 |385 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1141 |385 |0 |source_type |3 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1142 |385 |5 |itemid |0 | |NULL |NULL |29033 |NULL |NULL |NULL |NULL | +ROW |1143 |386 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1144 |386 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1145 |386 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1146 |386 |7 |graphid |0 | |NULL |NULL |NULL |865 |NULL |NULL |NULL | +ROW |1147 |387 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1148 |387 |6 |graphid |0 | |NULL |NULL |NULL |1091 |NULL |NULL |NULL | +ROW |1149 |388 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1150 |388 |6 |graphid |0 | |NULL |NULL |NULL |1095 |NULL |NULL |NULL | +ROW |1151 |389 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1152 |389 |6 |graphid |0 | |NULL |NULL |NULL |1092 |NULL |NULL |NULL | +ROW |1153 |390 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1154 |390 |6 |graphid |0 | |NULL |NULL |NULL |1094 |NULL |NULL |NULL | +ROW |1155 |391 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1156 |391 |6 |graphid |0 | |NULL |NULL |NULL |1099 |NULL |NULL |NULL | +ROW |1157 |392 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1158 |392 |6 |graphid |0 | |NULL |NULL |NULL |1100 |NULL |NULL |NULL | +ROW |1159 |393 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1160 |393 |6 |graphid |0 | |NULL |NULL |NULL |1101 |NULL |NULL |NULL | +ROW |1161 |394 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1162 |394 |6 |graphid |0 | |NULL |NULL |NULL |1102 |NULL |NULL |NULL | +ROW |1163 |395 |0 |columns |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1164 |395 |0 |rows |1 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1165 |395 |0 |source_type |2 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1166 |395 |7 |graphid |0 | |NULL |NULL |NULL |1090 |NULL |NULL |NULL | +ROW |1167 |396 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1168 |396 |6 |graphid |0 | |NULL |NULL |NULL |1093 |NULL |NULL |NULL | +ROW |1169 |397 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1170 |397 |6 |graphid |0 | |NULL |NULL |NULL |1098 |NULL |NULL |NULL | +ROW |1171 |398 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1172 |398 |6 |graphid |0 | |NULL |NULL |NULL |1096 |NULL |NULL |NULL | +ROW |1173 |399 |0 |source_type |0 | |NULL |NULL |NULL |NULL |NULL |NULL |NULL | +ROW |1174 |399 |6 |graphid |0 | |NULL |NULL |NULL |1097 |NULL |NULL |NULL | +ROW |1175 |400 |8 |sysmapid |0 | |NULL |NULL |NULL |NULL |1 |NULL |NULL | +ROW |1176 |400 |1 |reference |0 |NWLRB |NULL |NULL |NULL |NULL |NULL |NULL |NULL | diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 782f37e9fe2..23597970758 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1608,12 +1608,16 @@ FIELD |value_hostid |t_id | |NULL |0 |3|hosts |hostid FIELD |value_itemid |t_id | |NULL |0 |4|items |itemid FIELD |value_graphid |t_id | |NULL |0 |5|graphs |graphid FIELD |value_sysmapid |t_id | |NULL |0 |6|sysmaps |sysmapid +FIELD |value_serviceid|t_id | |NULL |0 |7|service |serviceid +FIELD |value_slaid |t_id | |NULL |0 |8|sla |slaid INDEX |1 |widgetid INDEX |2 |value_groupid INDEX |3 |value_hostid INDEX |4 |value_itemid INDEX |5 |value_graphid INDEX |6 |value_sysmapid +INDEX |7 |value_serviceid +INDEX |8 |value_slaid TABLE|task_check_now|taskid|0 FIELD |taskid |t_id | |NOT NULL |0 |1|task -- cgit v1.2.3 From 03ef033d3e65c0753708f5662252d8dd060cf93b Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Mon, 29 Nov 2021 16:45:30 +0200 Subject: ....I..... [ZBXNEXT-6999] updated schema for widget_field --- create/src/schema.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 23597970758..bb48dfdc172 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1608,7 +1608,7 @@ FIELD |value_hostid |t_id | |NULL |0 |3|hosts |hostid FIELD |value_itemid |t_id | |NULL |0 |4|items |itemid FIELD |value_graphid |t_id | |NULL |0 |5|graphs |graphid FIELD |value_sysmapid |t_id | |NULL |0 |6|sysmaps |sysmapid -FIELD |value_serviceid|t_id | |NULL |0 |7|service |serviceid +FIELD |value_serviceid|t_id | |NULL |0 |7|services |serviceid FIELD |value_slaid |t_id | |NULL |0 |8|sla |slaid INDEX |1 |widgetid INDEX |2 |value_groupid @@ -1933,4 +1933,4 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050130 |5050130 +ROW |1 |5050134 |5050134 -- cgit v1.2.3 From cd810de21f95d0b9cdff275918c13e818c3e8423 Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Mon, 29 Nov 2021 16:57:51 +0200 Subject: ....I..... [ZBXNEXT-6999] updated schema for widget_field --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index bb48dfdc172..d9dbe4dc536 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1933,4 +1933,4 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050134 |5050134 +ROW |1 |5050136 |5050136 -- cgit v1.2.3 From a4df471bb76c3895eebe44587232be671ae15c20 Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Thu, 2 Dec 2021 13:40:11 +0200 Subject: ....I..... [ZBXNEXT-6999] updated PHP DB schema #4 --- create/src/schema.inc.php | 8906 +++++++++++++++++++++++++++++++++++++++++++++ create/src/schema.tmpl | 7 +- 2 files changed, 8910 insertions(+), 3 deletions(-) create mode 100644 create/src/schema.inc.php (limited to 'create') diff --git a/create/src/schema.inc.php b/create/src/schema.inc.php new file mode 100644 index 00000000000..90bf4cc5b33 --- /dev/null +++ b/create/src/schema.inc.php @@ -0,0 +1,8906 @@ + [ + 'key' => 'roleid', + 'fields' => [ + 'roleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'readonly' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'users' => [ + 'key' => 'userid', + 'fields' => [ + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 100, + 'default' => '' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 100, + 'default' => '' + ], + 'surname' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 100, + 'default' => '' + ], + 'passwd' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 60, + 'default' => '' + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'autologin' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'autologout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '15m' + ], + 'lang' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 7, + 'default' => 'default' + ], + 'refresh' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '30s' + ], + 'theme' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => 'default' + ], + 'attempt_failed' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10 + ], + 'attempt_ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'attempt_clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10 + ], + 'rows_per_page' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => 50 + ], + 'timezone' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 50, + 'default' => 'default' + ], + 'roleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'role', + 'ref_field' => 'roleid' + ] + ] + ], + 'maintenances' => [ + 'key' => 'maintenanceid', + 'fields' => [ + 'maintenanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'maintenance_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'active_since' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'active_till' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'tags_evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'hosts' => [ + 'key' => 'hostid', + 'fields' => [ + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'proxy_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastaccess' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ipmi_authtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '-1' + ], + 'ipmi_privilege' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'ipmi_username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 16, + 'default' => '' + ], + 'ipmi_password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 20, + 'default' => '' + ], + 'maintenanceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'maintenance_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'maintenance_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'maintenance_from' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'tls_connect' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'tls_accept' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'tls_issuer' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'tls_subject' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'tls_psk_identity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'tls_psk' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 512, + 'default' => '' + ], + 'proxy_address' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'auto_compress' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'discover' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'custom_interfaces' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'hstgrp' => [ + 'key' => 'groupid', + 'fields' => [ + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'internal' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'group_prototype' => [ + 'key' => 'group_prototypeid', + 'fields' => [ + 'group_prototypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'groupid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'group_prototype', + 'ref_field' => 'group_prototypeid' + ] + ] + ], + 'group_discovery' => [ + 'key' => 'groupid', + 'fields' => [ + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'parent_group_prototypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'group_prototype', + 'ref_field' => 'group_prototypeid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'lastcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ts_delete' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'drules' => [ + 'key' => 'druleid', + 'fields' => [ + 'druleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'proxy_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'iprange' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'delay' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '1h' + ], + 'nextcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'dchecks' => [ + 'key' => 'dcheckid', + 'fields' => [ + 'dcheckid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'druleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'drules', + 'ref_field' => 'druleid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'key_' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'snmp_community' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ports' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '0' + ], + 'snmpv3_securityname' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'snmpv3_securitylevel' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'snmpv3_authpassphrase' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'snmpv3_privpassphrase' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'uniq' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'snmpv3_authprotocol' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'snmpv3_privprotocol' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'snmpv3_contextname' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'host_source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'name_source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'httptest' => [ + 'key' => 'httptestid', + 'fields' => [ + 'httptestid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'nextcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'delay' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '1m' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'agent' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => 'Zabbix' + ], + 'authentication' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'http_user' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'http_password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httptest', + 'ref_field' => 'httptestid' + ], + 'http_proxy' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'retries' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ssl_cert_file' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ssl_key_file' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ssl_key_password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'verify_peer' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'verify_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'httpstep' => [ + 'key' => 'httpstepid', + 'fields' => [ + 'httpstepid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httptestid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httptest', + 'ref_field' => 'httptestid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'no' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '15s' + ], + 'posts' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'required' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'status_codes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'follow_redirects' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'retrieve_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'post_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'interface' => [ + 'key' => 'interfaceid', + 'fields' => [ + 'interfaceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'main' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'useip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '127.0.0.1' + ], + 'dns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '10050' + ], + 'available' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'error' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'errors_from' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'disable_until' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'valuemap' => [ + 'key' => 'valuemapid', + 'fields' => [ + 'valuemapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'items' => [ + 'key' => 'itemid', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'snmp_oid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 512, + 'default' => '' + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'key_' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'delay' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '0' + ], + 'history' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '90d' + ], + 'trends' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '365d' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'trapper_hosts' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'units' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'formula' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'logtimefmt' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'valuemapid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'valuemap', + 'ref_field' => 'valuemapid' + ], + 'params' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'ipmi_sensor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'authtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'publickey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'privatekey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'interfaceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'interface', + 'ref_field' => 'interfaceid' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'inventory_link' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lifetime' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '30d' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'jmx_endpoint' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'master_itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '3s' + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'query_fields' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'posts' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'status_codes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '200' + ], + 'follow_redirects' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'post_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'http_proxy' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'headers' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'retrieve_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'request_method' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'output_format' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ssl_cert_file' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ssl_key_file' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ssl_key_password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'verify_peer' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'verify_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'allow_traps' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'discover' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'httpstepitem' => [ + 'key' => 'httpstepitemid', + 'fields' => [ + 'httpstepitemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httpstepid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httpstep', + 'ref_field' => 'httpstepid' + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'httptestitem' => [ + 'key' => 'httptestitemid', + 'fields' => [ + 'httptestitemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httptestid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httptest', + 'ref_field' => 'httptestid' + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'media_type' => [ + 'key' => 'mediatypeid', + 'fields' => [ + 'mediatypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 100, + 'default' => '' + ], + 'smtp_server' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'smtp_helo' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'smtp_email' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'exec_path' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'gsm_modem' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'passwd' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'smtp_port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '25' + ], + 'smtp_security' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'smtp_verify_peer' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'smtp_verify_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'smtp_authentication' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'exec_params' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'maxsessions' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'maxattempts' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '3' + ], + 'attempt_interval' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '10s' + ], + 'content_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'script' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '30s' + ], + 'process_tags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'show_event_menu' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'event_menu_url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'event_menu_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'media_type_param' => [ + 'key' => 'mediatype_paramid', + 'fields' => [ + 'mediatype_paramid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'mediatypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'media_type', + 'ref_field' => 'mediatypeid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'media_type_message' => [ + 'key' => 'mediatype_messageid', + 'fields' => [ + 'mediatype_messageid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'mediatypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'media_type', + 'ref_field' => 'mediatypeid' + ], + 'eventsource' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10 + ], + 'recovery' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10 + ], + 'subject' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'message' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ] + ] + ], + 'usrgrp' => [ + 'key' => 'usrgrpid', + 'fields' => [ + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'gui_access' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'users_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'debug_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'users_groups' => [ + 'key' => 'id', + 'fields' => [ + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'scripts' => [ + 'key' => 'scriptid', + 'fields' => [ + 'scriptid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'command' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'host_access' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'usrgrpid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'groupid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'confirmation' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '5' + ], + 'execute_on' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '30s' + ], + 'scope' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'authtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'publickey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'privatekey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'menu_path' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'script_param' => [ + 'key' => 'script_paramid', + 'fields' => [ + 'script_paramid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'scriptid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'scripts', + 'ref_field' => 'scriptid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'actions' => [ + 'key' => 'actionid', + 'fields' => [ + 'actionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'eventsource' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'esc_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '1h' + ], + 'formula' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'pause_suppressed' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ] + ] + ], + 'operations' => [ + 'key' => 'operationid', + 'fields' => [ + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'actionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'actions', + 'ref_field' => 'actionid' + ], + 'operationtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'esc_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '0' + ], + 'esc_step_from' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'esc_step_to' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'recovery' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'opmessage' => [ + 'key' => 'operationid', + 'fields' => [ + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'default_msg' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'subject' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'message' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'mediatypeid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'media_type', + 'ref_field' => 'mediatypeid' + ] + ] + ], + 'opmessage_grp' => [ + 'key' => 'opmessage_grpid', + 'fields' => [ + 'opmessage_grpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ] + ] + ], + 'opmessage_usr' => [ + 'key' => 'opmessage_usrid', + 'fields' => [ + 'opmessage_usrid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'opcommand' => [ + 'key' => 'operationid', + 'fields' => [ + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'scriptid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'scripts', + 'ref_field' => 'scriptid' + ] + ] + ], + 'opcommand_hst' => [ + 'key' => 'opcommand_hstid', + 'fields' => [ + 'opcommand_hstid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'opcommand_grp' => [ + 'key' => 'opcommand_grpid', + 'fields' => [ + 'opcommand_grpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'opgroup' => [ + 'key' => 'opgroupid', + 'fields' => [ + 'opgroupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'optemplate' => [ + 'key' => 'optemplateid', + 'fields' => [ + 'optemplateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'templateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'opconditions' => [ + 'key' => 'opconditionid', + 'fields' => [ + 'opconditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'conditiontype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'conditions' => [ + 'key' => 'conditionid', + 'fields' => [ + 'conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'actionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'actions', + 'ref_field' => 'actionid' + ], + 'conditiontype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value2' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'config' => [ + 'key' => 'configid', + 'fields' => [ + 'configid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'work_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '1-5,09:00-18:00' + ], + 'alert_usrgrpid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'default_theme' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => 'blue-theme' + ], + 'authentication_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ldap_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ldap_port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => 389 + ], + 'ldap_base_dn' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ldap_bind_dn' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ldap_bind_password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'ldap_search_attribute' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'discovery_groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'max_in_table' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '50' + ], + 'search_limit' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1000' + ], + 'severity_color_0' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '97AAB3' + ], + 'severity_color_1' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '7499FF' + ], + 'severity_color_2' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'FFC859' + ], + 'severity_color_3' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'FFA059' + ], + 'severity_color_4' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'E97659' + ], + 'severity_color_5' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'E45959' + ], + 'severity_name_0' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'Not classified' + ], + 'severity_name_1' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'Information' + ], + 'severity_name_2' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'Warning' + ], + 'severity_name_3' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'Average' + ], + 'severity_name_4' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'High' + ], + 'severity_name_5' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => 'Disaster' + ], + 'ok_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '5m' + ], + 'blink_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '2m' + ], + 'problem_unack_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'CC0000' + ], + 'problem_ack_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => 'CC0000' + ], + 'ok_unack_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '009900' + ], + 'ok_ack_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '009900' + ], + 'problem_unack_style' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'problem_ack_style' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ok_unack_style' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ok_ack_style' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'snmptrap_logging' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'server_check_interval' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '10' + ], + 'hk_events_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_events_trigger' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '365d' + ], + 'hk_events_internal' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1d' + ], + 'hk_events_discovery' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1d' + ], + 'hk_events_autoreg' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1d' + ], + 'hk_services_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_services' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '365d' + ], + 'hk_audit_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_audit' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '365d' + ], + 'hk_sessions_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_sessions' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '365d' + ], + 'hk_history_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_history_global' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'hk_history' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '90d' + ], + 'hk_trends_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'hk_trends_global' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'hk_trends' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '365d' + ], + 'default_inventory_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '-1' + ], + 'custom_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'http_auth_enabled' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'http_login_form' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'http_strip_domains' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'http_case_sensitive' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ldap_configured' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ldap_case_sensitive' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'db_extension' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ], + 'autoreg_tls_accept' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'compression_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'compress_older' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '7d' + ], + 'instanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ], + 'saml_auth_enabled' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_idp_entityid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'saml_sso_url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'saml_slo_url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'saml_username_attribute' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'saml_sp_entityid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'saml_nameid_format' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'saml_sign_messages' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_sign_assertions' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_sign_authn_requests' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_sign_logout_requests' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_sign_logout_responses' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_encrypt_nameid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_encrypt_assertions' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'saml_case_sensitive' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'default_lang' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 5, + 'default' => 'en_US' + ], + 'default_timezone' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 50, + 'default' => 'system' + ], + 'login_attempts' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '5' + ], + 'login_block' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '30s' + ], + 'show_technical_errors' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'validate_uri_schemes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'uri_valid_schemes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => 'http,https,ftp,file,mailto,tel,ssh' + ], + 'x_frame_options' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => 'SAMEORIGIN' + ], + 'iframe_sandboxing_enabled' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'iframe_sandboxing_exceptions' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'max_overview_table_size' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '50' + ], + 'history_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '24h' + ], + 'period_default' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1h' + ], + 'max_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '2y' + ], + 'socket_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '3s' + ], + 'connect_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '3s' + ], + 'media_type_test_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '65s' + ], + 'script_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '60s' + ], + 'item_test_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '60s' + ], + 'session_key' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'report_test_timeout' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '60s' + ], + 'dbversion_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'hk_events_service' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1d' + ], + 'passwd_min_length' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '8' + ], + 'passwd_check_rules' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '8' + ], + 'auditlog_enabled' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'ha_failover_delay' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '1m' + ], + 'geomaps_tile_provider' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'geomaps_tile_url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'geomaps_max_zoom' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'geomaps_attribution' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ] + ] + ], + 'triggers' => [ + 'key' => 'triggerid', + 'fields' => [ + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'expression' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'priority' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastchange' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'comments' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'error' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'state' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'recovery_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'recovery_expression' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'correlation_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'correlation_tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'manual_close' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'opdata' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'discover' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'event_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'trigger_depends' => [ + 'key' => 'triggerdepid', + 'fields' => [ + 'triggerdepid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'triggerid_down' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'triggerid_up' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ] + ] + ], + 'functions' => [ + 'key' => 'functionid', + 'fields' => [ + 'functionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 12, + 'default' => '' + ], + 'parameter' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '0' + ] + ] + ], + 'graphs' => [ + 'key' => 'graphid', + 'fields' => [ + 'graphid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '900' + ], + 'height' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '200' + ], + 'yaxismin' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0' + ], + 'yaxismax' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '100' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'graphs', + 'ref_field' => 'graphid' + ], + 'show_work_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'show_triggers' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'graphtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'show_legend' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'show_3d' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'percent_left' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0' + ], + 'percent_right' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0' + ], + 'ymin_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ymax_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ymin_itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'ymax_itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'discover' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'graphs_items' => [ + 'key' => 'gitemid', + 'fields' => [ + 'gitemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'graphid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'graphs', + 'ref_field' => 'graphid' + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'drawtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'sortorder' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '009600' + ], + 'yaxisside' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'calc_fnc' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'graph_theme' => [ + 'key' => 'graphthemeid', + 'fields' => [ + 'graphthemeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'theme' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'backgroundcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'graphcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'gridcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'maingridcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'gridbordercolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'textcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'highlightcolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'leftpercentilecolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'rightpercentilecolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'nonworktimecolor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'colorpalette' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'globalmacro' => [ + 'key' => 'globalmacroid', + 'fields' => [ + 'globalmacroid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'macro' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'hostmacro' => [ + 'key' => 'hostmacroid', + 'fields' => [ + 'hostmacroid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'macro' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'hosts_groups' => [ + 'key' => 'hostgroupid', + 'fields' => [ + 'hostgroupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'hosts_templates' => [ + 'key' => 'hosttemplateid', + 'fields' => [ + 'hosttemplateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'templateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'valuemap_mapping' => [ + 'key' => 'valuemap_mappingid', + 'fields' => [ + 'valuemap_mappingid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'valuemapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'valuemap', + 'ref_field' => 'valuemapid' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'newvalue' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'sortorder' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'media' => [ + 'key' => 'mediaid', + 'fields' => [ + 'mediaid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'mediatypeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'media_type', + 'ref_field' => 'mediatypeid' + ], + 'sendto' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'active' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '63' + ], + 'period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '1-7,00:00-24:00' + ] + ] + ], + 'rights' => [ + 'key' => 'rightid', + 'fields' => [ + 'rightid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'permission' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'services' => [ + 'key' => 'serviceid', + 'fields' => [ + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '-1' + ], + 'algorithm' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'sortorder' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'weight' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'propagation_rule' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'propagation_value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'services_links' => [ + 'key' => 'linkid', + 'fields' => [ + 'linkid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'serviceupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'servicedownid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ] + ] + ], + 'icon_map' => [ + 'key' => 'iconmapid', + 'fields' => [ + 'iconmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'default_iconid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ] + ] + ], + 'icon_mapping' => [ + 'key' => 'iconmappingid', + 'fields' => [ + 'iconmappingid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'iconmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'icon_map', + 'ref_field' => 'iconmapid' + ], + 'iconid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'inventory_link' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'expression' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'sortorder' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sysmaps' => [ + 'key' => 'sysmapid', + 'fields' => [ + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '600' + ], + 'height' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '400' + ], + 'backgroundid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'label_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_location' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'highlight' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'expandproblem' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'markelements' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'show_unack' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'grid_size' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '50' + ], + 'grid_show' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'grid_align' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'label_format' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'label_type_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_type_hostgroup' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_type_trigger' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_type_map' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_type_image' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'label_string_host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'label_string_hostgroup' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'label_string_trigger' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'label_string_map' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'label_string_image' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'iconmapid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'icon_map', + 'ref_field' => 'iconmapid' + ], + 'expand_macros' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'severity_min' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'private' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'show_suppressed' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sysmaps_elements' => [ + 'key' => 'selementid', + 'fields' => [ + 'selementid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'elementid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'default' => '0' + ], + 'elementtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'iconid_off' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'iconid_on' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'label' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'label_location' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '-1' + ], + 'x' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'y' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'iconid_disabled' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'iconid_maintenance' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'images', + 'ref_field' => 'imageid' + ], + 'elementsubtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'areatype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '200' + ], + 'height' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '200' + ], + 'viewtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'use_iconmap' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sysmaps_links' => [ + 'key' => 'linkid', + 'fields' => [ + 'linkid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'selementid1' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_elements', + 'ref_field' => 'selementid' + ], + 'selementid2' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_elements', + 'ref_field' => 'selementid' + ], + 'drawtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '000000' + ], + 'label' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'sysmaps_link_triggers' => [ + 'key' => 'linktriggerid', + 'fields' => [ + 'linktriggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'linkid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_links', + 'ref_field' => 'linkid' + ], + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'drawtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '000000' + ] + ] + ], + 'sysmap_element_url' => [ + 'key' => 'sysmapelementurlid', + 'fields' => [ + 'sysmapelementurlid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'selementid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_elements', + 'ref_field' => 'selementid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255 + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'sysmap_url' => [ + 'key' => 'sysmapurlid', + 'fields' => [ + 'sysmapurlid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255 + ], + 'url' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'elementtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sysmap_user' => [ + 'key' => 'sysmapuserid', + 'fields' => [ + 'sysmapuserid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'permission' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ] + ] + ], + 'sysmap_usrgrp' => [ + 'key' => 'sysmapusrgrpid', + 'fields' => [ + 'sysmapusrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'permission' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ] + ] + ], + 'maintenances_hosts' => [ + 'key' => 'maintenance_hostid', + 'fields' => [ + 'maintenance_hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'maintenanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'maintenances_groups' => [ + 'key' => 'maintenance_groupid', + 'fields' => [ + 'maintenance_groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'maintenanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'timeperiods' => [ + 'key' => 'timeperiodid', + 'fields' => [ + 'timeperiodid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'timeperiod_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'every' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'month' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'dayofweek' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'day' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'start_time' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'start_date' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'maintenances_windows' => [ + 'key' => 'maintenance_timeperiodid', + 'fields' => [ + 'maintenance_timeperiodid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'maintenanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'timeperiodid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'timeperiods', + 'ref_field' => 'timeperiodid' + ] + ] + ], + 'regexps' => [ + 'key' => 'regexpid', + 'fields' => [ + 'regexpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'test_string' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'expressions' => [ + 'key' => 'expressionid', + 'fields' => [ + 'expressionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'regexpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'regexps', + 'ref_field' => 'regexpid' + ], + 'expression' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'expression_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'exp_delimiter' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1, + 'default' => '' + ], + 'case_sensitive' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'ids' => [ + 'key' => 'table_name,field_name', + 'fields' => [ + 'table_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'field_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'nextid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ] + ] + ], + 'alerts' => [ + 'key' => 'alertid', + 'fields' => [ + 'alertid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'actionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'actions', + 'ref_field' => 'actionid' + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'mediatypeid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'media_type', + 'ref_field' => 'mediatypeid' + ], + 'sendto' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '' + ], + 'subject' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'message' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'retries' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'error' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'esc_step' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'alerttype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'p_eventid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'acknowledgeid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'acknowledges', + 'ref_field' => 'acknowledgeid' + ], + 'parameters' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '{}' + ] + ] + ], + 'history' => [ + 'key' => 'itemid,clock,ns', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0.0000' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'history_uint' => [ + 'key' => 'itemid,clock,ns', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'history_str' => [ + 'key' => 'itemid,clock,ns', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'history_log' => [ + 'key' => 'itemid,clock,ns', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'timestamp' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'logeventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'history_text' => [ + 'key' => 'itemid,clock,ns', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'proxy_history' => [ + 'key' => 'id', + 'fields' => [ + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'timestamp' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'logeventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'state' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastlogsize' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ], + 'mtime' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'write_clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'proxy_dhistory' => [ + 'key' => 'id', + 'fields' => [ + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20 + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'druleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'drules', + 'ref_field' => 'druleid' + ], + 'ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'dcheckid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dchecks', + 'ref_field' => 'dcheckid' + ], + 'dns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'events' => [ + 'key' => 'eventid', + 'fields' => [ + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'object' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'objectid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'default' => '0' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'acknowledged' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'trends' => [ + 'key' => 'itemid,clock', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'num' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_min' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0.0000' + ], + 'value_avg' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0.0000' + ], + 'value_max' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '0.0000' + ] + ] + ], + 'trends_uint' => [ + 'key' => 'itemid,clock', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'num' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_min' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ], + 'value_avg' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ], + 'value_max' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ] + ] + ], + 'acknowledges' => [ + 'key' => 'acknowledgeid', + 'fields' => [ + 'acknowledgeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'message' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'action' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'old_severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'new_severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'auditlog' => [ + 'key' => 'auditid', + 'fields' => [ + 'auditid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CUID, + 'length' => 25 + ], + 'userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 100, + 'default' => '' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'action' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'resourcetype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'resourceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'resource_cuid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_CUID, + 'length' => 25 + ], + 'resourcename' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'recordsetid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CUID, + 'length' => 25 + ], + 'details' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ] + ] + ], + 'service_alarms' => [ + 'key' => 'servicealarmid', + 'fields' => [ + 'servicealarmid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '-1' + ] + ] + ], + 'autoreg_host' => [ + 'key' => 'autoreg_hostid', + 'fields' => [ + 'autoreg_hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'proxy_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'listen_ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'listen_port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'listen_dns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'host_metadata' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'tls_accepted' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ] + ] + ], + 'proxy_autoreg_host' => [ + 'key' => 'id', + 'fields' => [ + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20 + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'listen_ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'listen_port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'listen_dns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'host_metadata' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'flags' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'tls_accepted' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ] + ] + ], + 'dhosts' => [ + 'key' => 'dhostid', + 'fields' => [ + 'dhostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'druleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'drules', + 'ref_field' => 'druleid' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastup' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastdown' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'dservices' => [ + 'key' => 'dserviceid', + 'fields' => [ + 'dserviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'dhostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dhosts', + 'ref_field' => 'dhostid' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastup' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastdown' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'dcheckid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dchecks', + 'ref_field' => 'dcheckid' + ], + 'ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'dns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'escalations' => [ + 'key' => 'escalationid', + 'fields' => [ + 'escalationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'actionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'actions', + 'ref_field' => 'actionid' + ], + 'triggerid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'eventid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'r_eventid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'nextcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'esc_step' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'acknowledgeid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'acknowledges', + 'ref_field' => 'acknowledgeid' + ], + 'servicealarmid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'service_alarms', + 'ref_field' => 'servicealarmid' + ], + 'serviceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ] + ] + ], + 'globalvars' => [ + 'key' => 'globalvarid', + 'fields' => [ + 'globalvarid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'snmp_lastsize' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ] + ] + ], + 'graph_discovery' => [ + 'key' => 'graphid', + 'fields' => [ + 'graphid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'graphs', + 'ref_field' => 'graphid' + ], + 'parent_graphid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'graphs', + 'ref_field' => 'graphid' + ], + 'lastcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ts_delete' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'host_inventory' => [ + 'key' => 'hostid', + 'fields' => [ + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'inventory_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'type_full' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'alias' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'os' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'os_full' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'os_short' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'serialno_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'serialno_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'asset_tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'macaddress_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'macaddress_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'hardware' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'hardware_full' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'software' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'software_full' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'software_app_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'software_app_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'software_app_c' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'software_app_d' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'software_app_e' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'contact' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'location' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'location_lat' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 16, + 'default' => '' + ], + 'location_lon' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 16, + 'default' => '' + ], + 'notes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'chassis' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'model' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'hw_arch' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ], + 'vendor' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'contract_number' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'installer_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'deployment_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'url_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'url_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'url_c' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'host_networks' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'host_netmask' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'host_router' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'oob_ip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'oob_netmask' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'oob_router' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 39, + 'default' => '' + ], + 'date_hw_purchase' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'date_hw_install' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'date_hw_expiry' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'date_hw_decomm' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'site_address_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'site_address_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'site_address_c' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'site_city' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'site_state' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'site_country' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'site_zip' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'site_rack' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'site_notes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'poc_1_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'poc_1_email' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'poc_1_phone_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_1_phone_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_1_cell' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_1_screen' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_1_notes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'poc_2_name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'poc_2_email' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'poc_2_phone_a' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_2_phone_b' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_2_cell' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_2_screen' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'poc_2_notes' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'housekeeper' => [ + 'key' => 'housekeeperid', + 'fields' => [ + 'housekeeperid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'tablename' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'field' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'value' + ] + ] + ], + 'images' => [ + 'key' => 'imageid', + 'fields' => [ + 'imageid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'imagetype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '0' + ], + 'image' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_BLOB, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'item_discovery' => [ + 'key' => 'itemdiscoveryid', + 'fields' => [ + 'itemdiscoveryid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'parent_itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'key_' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'lastcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ts_delete' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'host_discovery' => [ + 'key' => 'hostid', + 'fields' => [ + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'parent_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'parent_itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'host' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'lastcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ts_delete' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'interface_discovery' => [ + 'key' => 'interfaceid', + 'fields' => [ + 'interfaceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'interface', + 'ref_field' => 'interfaceid' + ], + 'parent_interfaceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'interface', + 'ref_field' => 'interfaceid' + ] + ] + ], + 'profiles' => [ + 'key' => 'profileid', + 'fields' => [ + 'profileid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'idx' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 96, + 'default' => '' + ], + 'idx2' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'default' => '0' + ], + 'value_id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'default' => '0' + ], + 'value_int' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_str' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 96, + 'default' => '' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sessions' => [ + 'key' => 'sessionid', + 'fields' => [ + 'sessionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'lastaccess' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'trigger_discovery' => [ + 'key' => 'triggerid', + 'fields' => [ + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'parent_triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'lastcheck' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ts_delete' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'item_condition' => [ + 'key' => 'item_conditionid', + 'fields' => [ + 'item_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '8' + ], + 'macro' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'item_rtdata' => [ + 'key' => 'itemid', + 'fields' => [ + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'lastlogsize' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_UINT, + 'length' => 20, + 'default' => '0' + ], + 'state' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'mtime' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'error' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'opinventory' => [ + 'key' => 'operationid', + 'fields' => [ + 'operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'operations', + 'ref_field' => 'operationid' + ], + 'inventory_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'trigger_tag' => [ + 'key' => 'triggertagid', + 'fields' => [ + 'triggertagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'event_tag' => [ + 'key' => 'eventtagid', + 'fields' => [ + 'eventtagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'problem' => [ + 'key' => 'eventid', + 'fields' => [ + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'source' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'object' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'objectid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'default' => '0' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'r_eventid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'r_clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'r_ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'correlationid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'correlation', + 'ref_field' => 'correlationid' + ], + 'userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'acknowledged' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'problem_tag' => [ + 'key' => 'problemtagid', + 'fields' => [ + 'problemtagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'problem', + 'ref_field' => 'eventid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'tag_filter' => [ + 'key' => 'tag_filterid', + 'fields' => [ + 'tag_filterid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'event_recovery' => [ + 'key' => 'eventid', + 'fields' => [ + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'r_eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'c_eventid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'correlationid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'correlation', + 'ref_field' => 'correlationid' + ], + 'userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'correlation' => [ + 'key' => 'correlationid', + 'fields' => [ + 'correlationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'formula' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'corr_condition' => [ + 'key' => 'corr_conditionid', + 'fields' => [ + 'corr_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'correlationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'correlation', + 'ref_field' => 'correlationid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'corr_condition_tag' => [ + 'key' => 'corr_conditionid', + 'fields' => [ + 'corr_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'corr_condition', + 'ref_field' => 'corr_conditionid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'corr_condition_group' => [ + 'key' => 'corr_conditionid', + 'fields' => [ + 'corr_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'corr_condition', + 'ref_field' => 'corr_conditionid' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'groupid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ] + ] + ], + 'corr_condition_tagpair' => [ + 'key' => 'corr_conditionid', + 'fields' => [ + 'corr_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'corr_condition', + 'ref_field' => 'corr_conditionid' + ], + 'oldtag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'newtag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'corr_condition_tagvalue' => [ + 'key' => 'corr_conditionid', + 'fields' => [ + 'corr_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'corr_condition', + 'ref_field' => 'corr_conditionid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'corr_operation' => [ + 'key' => 'corr_operationid', + 'fields' => [ + 'corr_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'correlationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'correlation', + 'ref_field' => 'correlationid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'task' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10 + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ttl' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'proxy_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'task_close_problem' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'acknowledgeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'acknowledges', + 'ref_field' => 'acknowledgeid' + ] + ] + ], + 'item_preproc' => [ + 'key' => 'item_preprocid', + 'fields' => [ + 'item_preprocid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'step' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'params' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'error_handler' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'error_handler_params' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'task_remote_command' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'command_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'execute_on' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'authtype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'username' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'password' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'publickey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'privatekey' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'command' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'alertid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'alerts', + 'ref_field' => 'alertid' + ], + 'parent_taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'task_remote_command_result' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'parent_taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'info' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'task_data' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'data' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ], + 'parent_taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ] + ] + ], + 'task_result' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'parent_taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'info' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_NCLOB, + 'default' => '' + ] + ] + ], + 'task_acknowledge' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'acknowledgeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'acknowledges', + 'ref_field' => 'acknowledgeid' + ] + ] + ], + 'sysmap_shape' => [ + 'key' => 'sysmap_shapeid', + 'fields' => [ + 'sysmap_shapeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'sysmapid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'x' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'y' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '200' + ], + 'height' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '200' + ], + 'text' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'font' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '9' + ], + 'font_size' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '11' + ], + 'font_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '000000' + ], + 'text_halign' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'text_valign' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'border_type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'border_width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'border_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '000000' + ], + 'background_color' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 6, + 'default' => '' + ], + 'zindex' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sysmap_element_trigger' => [ + 'key' => 'selement_triggerid', + 'fields' => [ + 'selement_triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'selementid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_elements', + 'ref_field' => 'selementid' + ], + 'triggerid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'triggers', + 'ref_field' => 'triggerid' + ] + ] + ], + 'httptest_field' => [ + 'key' => 'httptest_fieldid', + 'fields' => [ + 'httptest_fieldid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httptestid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httptest', + 'ref_field' => 'httptestid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'httpstep_field' => [ + 'key' => 'httpstep_fieldid', + 'fields' => [ + 'httpstep_fieldid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httpstepid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httpstep', + 'ref_field' => 'httpstepid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'dashboard' => [ + 'key' => 'dashboardid', + 'fields' => [ + 'dashboardid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255 + ], + 'userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'private' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'templateid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'display_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '30' + ], + 'auto_start' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'uuid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 32, + 'default' => '' + ] + ] + ], + 'dashboard_user' => [ + 'key' => 'dashboard_userid', + 'fields' => [ + 'dashboard_userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'dashboardid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dashboard', + 'ref_field' => 'dashboardid' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'permission' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ] + ] + ], + 'dashboard_usrgrp' => [ + 'key' => 'dashboard_usrgrpid', + 'fields' => [ + 'dashboard_usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'dashboardid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dashboard', + 'ref_field' => 'dashboardid' + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'permission' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ] + ] + ], + 'dashboard_page' => [ + 'key' => 'dashboard_pageid', + 'fields' => [ + 'dashboard_pageid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'dashboardid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dashboard', + 'ref_field' => 'dashboardid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'display_period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'sortorder' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'widget' => [ + 'key' => 'widgetid', + 'fields' => [ + 'widgetid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'x' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'y' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'width' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'height' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'view_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'dashboard_pageid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dashboard_page', + 'ref_field' => 'dashboard_pageid' + ] + ] + ], + 'widget_field' => [ + 'key' => 'widget_fieldid', + 'fields' => [ + 'widget_fieldid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'widgetid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'widget', + 'ref_field' => 'widgetid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value_int' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_str' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value_groupid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hstgrp', + 'ref_field' => 'groupid' + ], + 'value_hostid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'value_itemid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'value_graphid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'graphs', + 'ref_field' => 'graphid' + ], + 'value_sysmapid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps', + 'ref_field' => 'sysmapid' + ], + 'value_serviceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'value_slaid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sla', + 'ref_field' => 'slaid' + ] + ] + ], + 'task_check_now' => [ + 'key' => 'taskid', + 'fields' => [ + 'taskid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'task', + 'ref_field' => 'taskid' + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ] + ] + ], + 'event_suppress' => [ + 'key' => 'event_suppressid', + 'fields' => [ + 'event_suppressid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'events', + 'ref_field' => 'eventid' + ], + 'maintenanceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'suppress_until' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'maintenance_tag' => [ + 'key' => 'maintenancetagid', + 'fields' => [ + 'maintenancetagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'maintenanceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'maintenances', + 'ref_field' => 'maintenanceid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'lld_macro_path' => [ + 'key' => 'lld_macro_pathid', + 'fields' => [ + 'lld_macro_pathid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'lld_macro' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'path' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'host_tag' => [ + 'key' => 'hosttagid', + 'fields' => [ + 'hosttagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'hostid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'config_autoreg_tls' => [ + 'key' => 'autoreg_tlsid', + 'fields' => [ + 'autoreg_tlsid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'tls_psk_identity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128, + 'default' => '' + ], + 'tls_psk' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 512, + 'default' => '' + ] + ] + ], + 'module' => [ + 'key' => 'moduleid', + 'fields' => [ + 'moduleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'id' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'relative_path' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'config' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'interface_snmp' => [ + 'key' => 'interfaceid', + 'fields' => [ + 'interfaceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'interface', + 'ref_field' => 'interfaceid' + ], + 'version' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '2' + ], + 'bulk' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '1' + ], + 'community' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'securityname' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'securitylevel' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'authpassphrase' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'privpassphrase' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'authprotocol' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'privprotocol' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'contextname' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'lld_override' => [ + 'key' => 'lld_overrideid', + 'fields' => [ + 'lld_overrideid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'step' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'evaltype' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'formula' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'stop' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'lld_override_condition' => [ + 'key' => 'lld_override_conditionid', + 'fields' => [ + 'lld_override_conditionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'lld_overrideid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override', + 'ref_field' => 'lld_overrideid' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '8' + ], + 'macro' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'lld_override_operation' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'lld_overrideid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override', + 'ref_field' => 'lld_overrideid' + ], + 'operationobject' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'lld_override_opstatus' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'lld_override_opdiscover' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'discover' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'lld_override_opperiod' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'delay' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 1024, + 'default' => '0' + ] + ] + ], + 'lld_override_ophistory' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'history' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '90d' + ] + ] + ], + 'lld_override_optrends' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'trends' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '365d' + ] + ] + ], + 'lld_override_opseverity' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'lld_override_optag' => [ + 'key' => 'lld_override_optagid', + 'fields' => [ + 'lld_override_optagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'lld_override_optemplate' => [ + 'key' => 'lld_override_optemplateid', + 'fields' => [ + 'lld_override_optemplateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'templateid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'hosts', + 'ref_field' => 'hostid' + ] + ] + ], + 'lld_override_opinventory' => [ + 'key' => 'lld_override_operationid', + 'fields' => [ + 'lld_override_operationid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'lld_override_operation', + 'ref_field' => 'lld_override_operationid' + ], + 'inventory_mode' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'trigger_queue' => [ + 'key' => 'trigger_queueid', + 'fields' => [ + 'trigger_queueid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'objectid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'clock' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ns' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'item_parameter' => [ + 'key' => 'item_parameterid', + 'fields' => [ + 'item_parameterid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'role_rule' => [ + 'key' => 'role_ruleid', + 'fields' => [ + 'role_ruleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'roleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'role', + 'ref_field' => 'roleid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value_int' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value_str' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value_moduleid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'module', + 'ref_field' => 'moduleid' + ], + 'value_serviceid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ] + ] + ], + 'token' => [ + 'key' => 'tokenid', + 'fields' => [ + 'tokenid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 64, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'token' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 128 + ], + 'lastaccess' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'expires_at' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'created_at' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'creator_userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'item_tag' => [ + 'key' => 'itemtagid', + 'fields' => [ + 'itemtagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'itemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'items', + 'ref_field' => 'itemid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'httptest_tag' => [ + 'key' => 'httptesttagid', + 'fields' => [ + 'httptesttagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'httptestid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'httptest', + 'ref_field' => 'httptestid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'sysmaps_element_tag' => [ + 'key' => 'selementtagid', + 'fields' => [ + 'selementtagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'selementid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sysmaps_elements', + 'ref_field' => 'selementid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'report' => [ + 'key' => 'reportid', + 'fields' => [ + 'reportid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'dashboardid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'dashboard', + 'ref_field' => 'dashboardid' + ], + 'period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'cycle' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'weekdays' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'start_time' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'active_since' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'active_till' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'state' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'lastsent' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'info' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 2048, + 'default' => '' + ] + ] + ], + 'report_param' => [ + 'key' => 'reportparamid', + 'fields' => [ + 'reportparamid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'reportid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'report', + 'ref_field' => 'reportid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'report_user' => [ + 'key' => 'reportuserid', + 'fields' => [ + 'reportuserid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'reportid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'report', + 'ref_field' => 'reportid' + ], + 'userid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ], + 'exclude' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'access_userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'report_usrgrp' => [ + 'key' => 'reportusrgrpid', + 'fields' => [ + 'reportusrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'reportid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'report', + 'ref_field' => 'reportid' + ], + 'usrgrpid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'usrgrp', + 'ref_field' => 'usrgrpid' + ], + 'access_userid' => [ + 'null' => true, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'users', + 'ref_field' => 'userid' + ] + ] + ], + 'service_problem_tag' => [ + 'key' => 'service_problem_tagid', + 'fields' => [ + 'service_problem_tagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'service_problem' => [ + 'key' => 'service_problemid', + 'fields' => [ + 'service_problemid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'eventid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'problem', + 'ref_field' => 'eventid' + ], + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'severity' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'service_tag' => [ + 'key' => 'servicetagid', + 'fields' => [ + 'servicetagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'service_status_rule' => [ + 'key' => 'service_status_ruleid', + 'fields' => [ + 'service_status_ruleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'serviceid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'services', + 'ref_field' => 'serviceid' + ], + 'type' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'limit_value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'limit_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'new_status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'ha_node' => [ + 'key' => 'ha_nodeid', + 'fields' => [ + 'ha_nodeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CUID, + 'length' => 25 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'address' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'port' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '10051' + ], + 'lastaccess' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'ha_sessionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CUID, + 'length' => 25, + 'default' => '' + ] + ] + ], + 'sla' => [ + 'key' => 'slaid', + 'fields' => [ + 'slaid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'period' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'slo' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_FLOAT, + 'default' => '99.9' + ], + 'effective_date' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'timezone' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 50, + 'default' => 'UTC' + ], + 'status' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'description' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_TEXT, + 'default' => '' + ] + ] + ], + 'sla_schedule' => [ + 'key' => 'sla_scheduleid', + 'fields' => [ + 'sla_scheduleid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'slaid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sla', + 'ref_field' => 'slaid' + ], + 'period_from' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'period_to' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sla_excluded_downtime' => [ + 'key' => 'sla_excluded_downtimeid', + 'fields' => [ + 'sla_excluded_downtimeid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'slaid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sla', + 'ref_field' => 'slaid' + ], + 'name' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'period_from' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'period_to' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ], + 'sla_service_tag' => [ + 'key' => 'sla_service_tagid', + 'fields' => [ + 'sla_service_tagid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'slaid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20, + 'ref_table' => 'sla', + 'ref_field' => 'slaid' + ], + 'tag' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ], + 'operator' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'value' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_CHAR, + 'length' => 255, + 'default' => '' + ] + ] + ], + 'dbversion' => [ + 'key' => 'dbversionid', + 'fields' => [ + 'dbversionid' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_ID, + 'length' => 20 + ], + 'mandatory' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ], + 'optional' => [ + 'null' => false, + 'type' => DB::FIELD_TYPE_INT, + 'length' => 10, + 'default' => '0' + ] + ] + ] +]; diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index d9dbe4dc536..07dab33a3a1 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1899,11 +1899,12 @@ INDEX |2 |status,lastaccess TABLE|sla|slaid|ZBX_DATA FIELD |slaid |t_id | |NOT NULL |0 FIELD |name |t_varchar(255) |'' |NOT NULL |0 -FIELD |description |t_shorttext |'' |NOT NULL |0 -FIELD |status |t_integer |'0' |NOT NULL |0 -FIELD |slo |t_double |'99.9' |NOT NULL |0 FIELD |period |t_integer |'0' |NOT NULL |0 +FIELD |slo |t_double |'99.9' |NOT NULL |0 +FIELD |effective_date |t_integer |'0' |NOT NULL |0 FIELD |timezone |t_varchar(50) |'UTC' |NOT NULL |ZBX_NODATA +FIELD |status |t_integer |'0' |NOT NULL |0 +FIELD |description |t_shorttext |'' |NOT NULL |0 UNIQUE |1 |name TABLE|sla_schedule|sla_scheduleid|ZBX_DATA -- cgit v1.2.3 From 982182280c247f4b13b146dcffd819f6943675fe Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Thu, 2 Dec 2021 14:06:05 +0200 Subject: ....I..... [ZBXNEXT-6999] updated PHP DB schema #5 --- create/src/schema.inc.php | 8906 --------------------------------------------- create/src/schema.tmpl | 1 + 2 files changed, 1 insertion(+), 8906 deletions(-) delete mode 100644 create/src/schema.inc.php (limited to 'create') diff --git a/create/src/schema.inc.php b/create/src/schema.inc.php deleted file mode 100644 index 90bf4cc5b33..00000000000 --- a/create/src/schema.inc.php +++ /dev/null @@ -1,8906 +0,0 @@ - [ - 'key' => 'roleid', - 'fields' => [ - 'roleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'readonly' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'users' => [ - 'key' => 'userid', - 'fields' => [ - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 100, - 'default' => '' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 100, - 'default' => '' - ], - 'surname' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 100, - 'default' => '' - ], - 'passwd' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 60, - 'default' => '' - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'autologin' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'autologout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '15m' - ], - 'lang' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 7, - 'default' => 'default' - ], - 'refresh' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '30s' - ], - 'theme' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => 'default' - ], - 'attempt_failed' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10 - ], - 'attempt_ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'attempt_clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10 - ], - 'rows_per_page' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => 50 - ], - 'timezone' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 50, - 'default' => 'default' - ], - 'roleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'role', - 'ref_field' => 'roleid' - ] - ] - ], - 'maintenances' => [ - 'key' => 'maintenanceid', - 'fields' => [ - 'maintenanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'maintenance_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'active_since' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'active_till' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'tags_evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'hosts' => [ - 'key' => 'hostid', - 'fields' => [ - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'proxy_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastaccess' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ipmi_authtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '-1' - ], - 'ipmi_privilege' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'ipmi_username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 16, - 'default' => '' - ], - 'ipmi_password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 20, - 'default' => '' - ], - 'maintenanceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'maintenance_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'maintenance_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'maintenance_from' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'tls_connect' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'tls_accept' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'tls_issuer' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'tls_subject' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'tls_psk_identity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'tls_psk' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 512, - 'default' => '' - ], - 'proxy_address' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'auto_compress' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'discover' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'custom_interfaces' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'hstgrp' => [ - 'key' => 'groupid', - 'fields' => [ - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'internal' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'group_prototype' => [ - 'key' => 'group_prototypeid', - 'fields' => [ - 'group_prototypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'groupid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'group_prototype', - 'ref_field' => 'group_prototypeid' - ] - ] - ], - 'group_discovery' => [ - 'key' => 'groupid', - 'fields' => [ - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'parent_group_prototypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'group_prototype', - 'ref_field' => 'group_prototypeid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'lastcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ts_delete' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'drules' => [ - 'key' => 'druleid', - 'fields' => [ - 'druleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'proxy_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'iprange' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'delay' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '1h' - ], - 'nextcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'dchecks' => [ - 'key' => 'dcheckid', - 'fields' => [ - 'dcheckid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'druleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'drules', - 'ref_field' => 'druleid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'key_' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'snmp_community' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ports' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '0' - ], - 'snmpv3_securityname' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'snmpv3_securitylevel' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'snmpv3_authpassphrase' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'snmpv3_privpassphrase' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'uniq' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'snmpv3_authprotocol' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'snmpv3_privprotocol' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'snmpv3_contextname' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'host_source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'name_source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'httptest' => [ - 'key' => 'httptestid', - 'fields' => [ - 'httptestid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'nextcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'delay' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '1m' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'agent' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => 'Zabbix' - ], - 'authentication' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'http_user' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'http_password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httptest', - 'ref_field' => 'httptestid' - ], - 'http_proxy' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'retries' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ssl_cert_file' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ssl_key_file' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ssl_key_password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'verify_peer' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'verify_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'httpstep' => [ - 'key' => 'httpstepid', - 'fields' => [ - 'httpstepid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httptestid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httptest', - 'ref_field' => 'httptestid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'no' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '15s' - ], - 'posts' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'required' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'status_codes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'follow_redirects' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'retrieve_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'post_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'interface' => [ - 'key' => 'interfaceid', - 'fields' => [ - 'interfaceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'main' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'useip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '127.0.0.1' - ], - 'dns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '10050' - ], - 'available' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'error' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'errors_from' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'disable_until' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'valuemap' => [ - 'key' => 'valuemapid', - 'fields' => [ - 'valuemapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'items' => [ - 'key' => 'itemid', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'snmp_oid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 512, - 'default' => '' - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'key_' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'delay' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '0' - ], - 'history' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '90d' - ], - 'trends' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '365d' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'trapper_hosts' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'units' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'formula' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'logtimefmt' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'valuemapid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'valuemap', - 'ref_field' => 'valuemapid' - ], - 'params' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'ipmi_sensor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'authtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'publickey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'privatekey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'interfaceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'interface', - 'ref_field' => 'interfaceid' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'inventory_link' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lifetime' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '30d' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'jmx_endpoint' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'master_itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '3s' - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'query_fields' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'posts' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'status_codes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '200' - ], - 'follow_redirects' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'post_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'http_proxy' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'headers' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'retrieve_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'request_method' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'output_format' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ssl_cert_file' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ssl_key_file' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ssl_key_password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'verify_peer' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'verify_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'allow_traps' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'discover' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'httpstepitem' => [ - 'key' => 'httpstepitemid', - 'fields' => [ - 'httpstepitemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httpstepid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httpstep', - 'ref_field' => 'httpstepid' - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'httptestitem' => [ - 'key' => 'httptestitemid', - 'fields' => [ - 'httptestitemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httptestid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httptest', - 'ref_field' => 'httptestid' - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'media_type' => [ - 'key' => 'mediatypeid', - 'fields' => [ - 'mediatypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 100, - 'default' => '' - ], - 'smtp_server' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'smtp_helo' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'smtp_email' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'exec_path' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'gsm_modem' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'passwd' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'smtp_port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '25' - ], - 'smtp_security' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'smtp_verify_peer' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'smtp_verify_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'smtp_authentication' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'exec_params' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'maxsessions' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'maxattempts' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '3' - ], - 'attempt_interval' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '10s' - ], - 'content_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'script' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '30s' - ], - 'process_tags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'show_event_menu' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'event_menu_url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'event_menu_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'media_type_param' => [ - 'key' => 'mediatype_paramid', - 'fields' => [ - 'mediatype_paramid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'mediatypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'media_type', - 'ref_field' => 'mediatypeid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'media_type_message' => [ - 'key' => 'mediatype_messageid', - 'fields' => [ - 'mediatype_messageid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'mediatypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'media_type', - 'ref_field' => 'mediatypeid' - ], - 'eventsource' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10 - ], - 'recovery' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10 - ], - 'subject' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'message' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ] - ] - ], - 'usrgrp' => [ - 'key' => 'usrgrpid', - 'fields' => [ - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'gui_access' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'users_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'debug_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'users_groups' => [ - 'key' => 'id', - 'fields' => [ - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'scripts' => [ - 'key' => 'scriptid', - 'fields' => [ - 'scriptid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'command' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'host_access' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'usrgrpid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'groupid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'confirmation' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '5' - ], - 'execute_on' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '30s' - ], - 'scope' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'authtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'publickey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'privatekey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'menu_path' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'script_param' => [ - 'key' => 'script_paramid', - 'fields' => [ - 'script_paramid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'scriptid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'scripts', - 'ref_field' => 'scriptid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'actions' => [ - 'key' => 'actionid', - 'fields' => [ - 'actionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'eventsource' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'esc_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '1h' - ], - 'formula' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'pause_suppressed' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ] - ] - ], - 'operations' => [ - 'key' => 'operationid', - 'fields' => [ - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'actionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'actions', - 'ref_field' => 'actionid' - ], - 'operationtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'esc_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '0' - ], - 'esc_step_from' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'esc_step_to' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'recovery' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'opmessage' => [ - 'key' => 'operationid', - 'fields' => [ - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'default_msg' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'subject' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'message' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'mediatypeid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'media_type', - 'ref_field' => 'mediatypeid' - ] - ] - ], - 'opmessage_grp' => [ - 'key' => 'opmessage_grpid', - 'fields' => [ - 'opmessage_grpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ] - ] - ], - 'opmessage_usr' => [ - 'key' => 'opmessage_usrid', - 'fields' => [ - 'opmessage_usrid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'opcommand' => [ - 'key' => 'operationid', - 'fields' => [ - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'scriptid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'scripts', - 'ref_field' => 'scriptid' - ] - ] - ], - 'opcommand_hst' => [ - 'key' => 'opcommand_hstid', - 'fields' => [ - 'opcommand_hstid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'opcommand_grp' => [ - 'key' => 'opcommand_grpid', - 'fields' => [ - 'opcommand_grpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'opgroup' => [ - 'key' => 'opgroupid', - 'fields' => [ - 'opgroupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'optemplate' => [ - 'key' => 'optemplateid', - 'fields' => [ - 'optemplateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'templateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'opconditions' => [ - 'key' => 'opconditionid', - 'fields' => [ - 'opconditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'conditiontype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'conditions' => [ - 'key' => 'conditionid', - 'fields' => [ - 'conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'actionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'actions', - 'ref_field' => 'actionid' - ], - 'conditiontype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value2' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'config' => [ - 'key' => 'configid', - 'fields' => [ - 'configid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'work_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '1-5,09:00-18:00' - ], - 'alert_usrgrpid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'default_theme' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => 'blue-theme' - ], - 'authentication_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ldap_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ldap_port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => 389 - ], - 'ldap_base_dn' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ldap_bind_dn' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ldap_bind_password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'ldap_search_attribute' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'discovery_groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'max_in_table' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '50' - ], - 'search_limit' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1000' - ], - 'severity_color_0' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '97AAB3' - ], - 'severity_color_1' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '7499FF' - ], - 'severity_color_2' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'FFC859' - ], - 'severity_color_3' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'FFA059' - ], - 'severity_color_4' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'E97659' - ], - 'severity_color_5' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'E45959' - ], - 'severity_name_0' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'Not classified' - ], - 'severity_name_1' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'Information' - ], - 'severity_name_2' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'Warning' - ], - 'severity_name_3' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'Average' - ], - 'severity_name_4' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'High' - ], - 'severity_name_5' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => 'Disaster' - ], - 'ok_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '5m' - ], - 'blink_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '2m' - ], - 'problem_unack_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'CC0000' - ], - 'problem_ack_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => 'CC0000' - ], - 'ok_unack_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '009900' - ], - 'ok_ack_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '009900' - ], - 'problem_unack_style' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'problem_ack_style' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ok_unack_style' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ok_ack_style' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'snmptrap_logging' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'server_check_interval' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '10' - ], - 'hk_events_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_events_trigger' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '365d' - ], - 'hk_events_internal' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1d' - ], - 'hk_events_discovery' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1d' - ], - 'hk_events_autoreg' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1d' - ], - 'hk_services_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_services' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '365d' - ], - 'hk_audit_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_audit' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '365d' - ], - 'hk_sessions_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_sessions' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '365d' - ], - 'hk_history_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_history_global' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'hk_history' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '90d' - ], - 'hk_trends_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'hk_trends_global' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'hk_trends' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '365d' - ], - 'default_inventory_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '-1' - ], - 'custom_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'http_auth_enabled' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'http_login_form' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'http_strip_domains' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'http_case_sensitive' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ldap_configured' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ldap_case_sensitive' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'db_extension' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ], - 'autoreg_tls_accept' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'compression_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'compress_older' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '7d' - ], - 'instanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ], - 'saml_auth_enabled' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_idp_entityid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'saml_sso_url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'saml_slo_url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'saml_username_attribute' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'saml_sp_entityid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'saml_nameid_format' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'saml_sign_messages' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_sign_assertions' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_sign_authn_requests' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_sign_logout_requests' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_sign_logout_responses' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_encrypt_nameid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_encrypt_assertions' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'saml_case_sensitive' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'default_lang' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 5, - 'default' => 'en_US' - ], - 'default_timezone' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 50, - 'default' => 'system' - ], - 'login_attempts' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '5' - ], - 'login_block' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '30s' - ], - 'show_technical_errors' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'validate_uri_schemes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'uri_valid_schemes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => 'http,https,ftp,file,mailto,tel,ssh' - ], - 'x_frame_options' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => 'SAMEORIGIN' - ], - 'iframe_sandboxing_enabled' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'iframe_sandboxing_exceptions' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'max_overview_table_size' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '50' - ], - 'history_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '24h' - ], - 'period_default' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1h' - ], - 'max_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '2y' - ], - 'socket_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '3s' - ], - 'connect_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '3s' - ], - 'media_type_test_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '65s' - ], - 'script_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '60s' - ], - 'item_test_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '60s' - ], - 'session_key' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'report_test_timeout' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '60s' - ], - 'dbversion_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'hk_events_service' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1d' - ], - 'passwd_min_length' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '8' - ], - 'passwd_check_rules' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '8' - ], - 'auditlog_enabled' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'ha_failover_delay' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '1m' - ], - 'geomaps_tile_provider' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'geomaps_tile_url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'geomaps_max_zoom' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'geomaps_attribution' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ] - ] - ], - 'triggers' => [ - 'key' => 'triggerid', - 'fields' => [ - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'expression' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'priority' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastchange' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'comments' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'error' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'state' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'recovery_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'recovery_expression' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'correlation_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'correlation_tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'manual_close' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'opdata' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'discover' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'event_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'trigger_depends' => [ - 'key' => 'triggerdepid', - 'fields' => [ - 'triggerdepid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'triggerid_down' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'triggerid_up' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ] - ] - ], - 'functions' => [ - 'key' => 'functionid', - 'fields' => [ - 'functionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 12, - 'default' => '' - ], - 'parameter' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '0' - ] - ] - ], - 'graphs' => [ - 'key' => 'graphid', - 'fields' => [ - 'graphid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '900' - ], - 'height' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '200' - ], - 'yaxismin' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0' - ], - 'yaxismax' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '100' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'graphs', - 'ref_field' => 'graphid' - ], - 'show_work_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'show_triggers' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'graphtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'show_legend' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'show_3d' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'percent_left' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0' - ], - 'percent_right' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0' - ], - 'ymin_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ymax_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ymin_itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'ymax_itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'discover' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'graphs_items' => [ - 'key' => 'gitemid', - 'fields' => [ - 'gitemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'graphid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'graphs', - 'ref_field' => 'graphid' - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'drawtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'sortorder' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '009600' - ], - 'yaxisside' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'calc_fnc' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'graph_theme' => [ - 'key' => 'graphthemeid', - 'fields' => [ - 'graphthemeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'theme' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'backgroundcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'graphcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'gridcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'maingridcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'gridbordercolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'textcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'highlightcolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'leftpercentilecolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'rightpercentilecolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'nonworktimecolor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'colorpalette' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'globalmacro' => [ - 'key' => 'globalmacroid', - 'fields' => [ - 'globalmacroid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'macro' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'hostmacro' => [ - 'key' => 'hostmacroid', - 'fields' => [ - 'hostmacroid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'macro' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'hosts_groups' => [ - 'key' => 'hostgroupid', - 'fields' => [ - 'hostgroupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'hosts_templates' => [ - 'key' => 'hosttemplateid', - 'fields' => [ - 'hosttemplateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'templateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'valuemap_mapping' => [ - 'key' => 'valuemap_mappingid', - 'fields' => [ - 'valuemap_mappingid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'valuemapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'valuemap', - 'ref_field' => 'valuemapid' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'newvalue' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'sortorder' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'media' => [ - 'key' => 'mediaid', - 'fields' => [ - 'mediaid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'mediatypeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'media_type', - 'ref_field' => 'mediatypeid' - ], - 'sendto' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'active' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '63' - ], - 'period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '1-7,00:00-24:00' - ] - ] - ], - 'rights' => [ - 'key' => 'rightid', - 'fields' => [ - 'rightid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'permission' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'services' => [ - 'key' => 'serviceid', - 'fields' => [ - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '-1' - ], - 'algorithm' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'sortorder' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'weight' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'propagation_rule' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'propagation_value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'services_links' => [ - 'key' => 'linkid', - 'fields' => [ - 'linkid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'serviceupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'servicedownid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ] - ] - ], - 'icon_map' => [ - 'key' => 'iconmapid', - 'fields' => [ - 'iconmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'default_iconid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ] - ] - ], - 'icon_mapping' => [ - 'key' => 'iconmappingid', - 'fields' => [ - 'iconmappingid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'iconmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'icon_map', - 'ref_field' => 'iconmapid' - ], - 'iconid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'inventory_link' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'expression' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'sortorder' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sysmaps' => [ - 'key' => 'sysmapid', - 'fields' => [ - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '600' - ], - 'height' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '400' - ], - 'backgroundid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'label_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_location' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'highlight' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'expandproblem' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'markelements' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'show_unack' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'grid_size' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '50' - ], - 'grid_show' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'grid_align' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'label_format' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'label_type_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_type_hostgroup' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_type_trigger' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_type_map' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_type_image' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'label_string_host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'label_string_hostgroup' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'label_string_trigger' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'label_string_map' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'label_string_image' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'iconmapid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'icon_map', - 'ref_field' => 'iconmapid' - ], - 'expand_macros' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'severity_min' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'private' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'show_suppressed' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sysmaps_elements' => [ - 'key' => 'selementid', - 'fields' => [ - 'selementid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'elementid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'default' => '0' - ], - 'elementtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'iconid_off' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'iconid_on' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'label' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'label_location' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '-1' - ], - 'x' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'y' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'iconid_disabled' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'iconid_maintenance' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'images', - 'ref_field' => 'imageid' - ], - 'elementsubtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'areatype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '200' - ], - 'height' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '200' - ], - 'viewtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'use_iconmap' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sysmaps_links' => [ - 'key' => 'linkid', - 'fields' => [ - 'linkid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'selementid1' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_elements', - 'ref_field' => 'selementid' - ], - 'selementid2' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_elements', - 'ref_field' => 'selementid' - ], - 'drawtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '000000' - ], - 'label' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'sysmaps_link_triggers' => [ - 'key' => 'linktriggerid', - 'fields' => [ - 'linktriggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'linkid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_links', - 'ref_field' => 'linkid' - ], - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'drawtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '000000' - ] - ] - ], - 'sysmap_element_url' => [ - 'key' => 'sysmapelementurlid', - 'fields' => [ - 'sysmapelementurlid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'selementid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_elements', - 'ref_field' => 'selementid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255 - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'sysmap_url' => [ - 'key' => 'sysmapurlid', - 'fields' => [ - 'sysmapurlid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255 - ], - 'url' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'elementtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sysmap_user' => [ - 'key' => 'sysmapuserid', - 'fields' => [ - 'sysmapuserid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'permission' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ] - ] - ], - 'sysmap_usrgrp' => [ - 'key' => 'sysmapusrgrpid', - 'fields' => [ - 'sysmapusrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'permission' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ] - ] - ], - 'maintenances_hosts' => [ - 'key' => 'maintenance_hostid', - 'fields' => [ - 'maintenance_hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'maintenanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'maintenances_groups' => [ - 'key' => 'maintenance_groupid', - 'fields' => [ - 'maintenance_groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'maintenanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'timeperiods' => [ - 'key' => 'timeperiodid', - 'fields' => [ - 'timeperiodid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'timeperiod_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'every' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'month' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'dayofweek' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'day' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'start_time' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'start_date' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'maintenances_windows' => [ - 'key' => 'maintenance_timeperiodid', - 'fields' => [ - 'maintenance_timeperiodid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'maintenanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'timeperiodid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'timeperiods', - 'ref_field' => 'timeperiodid' - ] - ] - ], - 'regexps' => [ - 'key' => 'regexpid', - 'fields' => [ - 'regexpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'test_string' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'expressions' => [ - 'key' => 'expressionid', - 'fields' => [ - 'expressionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'regexpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'regexps', - 'ref_field' => 'regexpid' - ], - 'expression' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'expression_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'exp_delimiter' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1, - 'default' => '' - ], - 'case_sensitive' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'ids' => [ - 'key' => 'table_name,field_name', - 'fields' => [ - 'table_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'field_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'nextid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ] - ] - ], - 'alerts' => [ - 'key' => 'alertid', - 'fields' => [ - 'alertid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'actionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'actions', - 'ref_field' => 'actionid' - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'mediatypeid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'media_type', - 'ref_field' => 'mediatypeid' - ], - 'sendto' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '' - ], - 'subject' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'message' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'retries' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'error' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'esc_step' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'alerttype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'p_eventid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'acknowledgeid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'acknowledges', - 'ref_field' => 'acknowledgeid' - ], - 'parameters' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '{}' - ] - ] - ], - 'history' => [ - 'key' => 'itemid,clock,ns', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0.0000' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'history_uint' => [ - 'key' => 'itemid,clock,ns', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'history_str' => [ - 'key' => 'itemid,clock,ns', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'history_log' => [ - 'key' => 'itemid,clock,ns', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'timestamp' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'logeventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'history_text' => [ - 'key' => 'itemid,clock,ns', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'proxy_history' => [ - 'key' => 'id', - 'fields' => [ - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'timestamp' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'logeventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'state' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastlogsize' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ], - 'mtime' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'write_clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'proxy_dhistory' => [ - 'key' => 'id', - 'fields' => [ - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20 - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'druleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'drules', - 'ref_field' => 'druleid' - ], - 'ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'dcheckid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dchecks', - 'ref_field' => 'dcheckid' - ], - 'dns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'events' => [ - 'key' => 'eventid', - 'fields' => [ - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'object' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'objectid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'default' => '0' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'acknowledged' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'trends' => [ - 'key' => 'itemid,clock', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'num' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_min' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0.0000' - ], - 'value_avg' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0.0000' - ], - 'value_max' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '0.0000' - ] - ] - ], - 'trends_uint' => [ - 'key' => 'itemid,clock', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'num' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_min' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ], - 'value_avg' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ], - 'value_max' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ] - ] - ], - 'acknowledges' => [ - 'key' => 'acknowledgeid', - 'fields' => [ - 'acknowledgeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'message' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'action' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'old_severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'new_severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'auditlog' => [ - 'key' => 'auditid', - 'fields' => [ - 'auditid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CUID, - 'length' => 25 - ], - 'userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 100, - 'default' => '' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'action' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'resourcetype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'resourceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'resource_cuid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_CUID, - 'length' => 25 - ], - 'resourcename' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'recordsetid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CUID, - 'length' => 25 - ], - 'details' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ] - ] - ], - 'service_alarms' => [ - 'key' => 'servicealarmid', - 'fields' => [ - 'servicealarmid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '-1' - ] - ] - ], - 'autoreg_host' => [ - 'key' => 'autoreg_hostid', - 'fields' => [ - 'autoreg_hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'proxy_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'listen_ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'listen_port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'listen_dns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'host_metadata' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'tls_accepted' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ] - ] - ], - 'proxy_autoreg_host' => [ - 'key' => 'id', - 'fields' => [ - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20 - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'listen_ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'listen_port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'listen_dns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'host_metadata' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'flags' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'tls_accepted' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ] - ] - ], - 'dhosts' => [ - 'key' => 'dhostid', - 'fields' => [ - 'dhostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'druleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'drules', - 'ref_field' => 'druleid' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastup' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastdown' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'dservices' => [ - 'key' => 'dserviceid', - 'fields' => [ - 'dserviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'dhostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dhosts', - 'ref_field' => 'dhostid' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastup' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastdown' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'dcheckid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dchecks', - 'ref_field' => 'dcheckid' - ], - 'ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'dns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'escalations' => [ - 'key' => 'escalationid', - 'fields' => [ - 'escalationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'actionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'actions', - 'ref_field' => 'actionid' - ], - 'triggerid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'eventid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'r_eventid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'nextcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'esc_step' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'acknowledgeid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'acknowledges', - 'ref_field' => 'acknowledgeid' - ], - 'servicealarmid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'service_alarms', - 'ref_field' => 'servicealarmid' - ], - 'serviceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ] - ] - ], - 'globalvars' => [ - 'key' => 'globalvarid', - 'fields' => [ - 'globalvarid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'snmp_lastsize' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ] - ] - ], - 'graph_discovery' => [ - 'key' => 'graphid', - 'fields' => [ - 'graphid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'graphs', - 'ref_field' => 'graphid' - ], - 'parent_graphid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'graphs', - 'ref_field' => 'graphid' - ], - 'lastcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ts_delete' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'host_inventory' => [ - 'key' => 'hostid', - 'fields' => [ - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'inventory_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'type_full' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'alias' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'os' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'os_full' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'os_short' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'serialno_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'serialno_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'asset_tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'macaddress_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'macaddress_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'hardware' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'hardware_full' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'software' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'software_full' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'software_app_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'software_app_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'software_app_c' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'software_app_d' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'software_app_e' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'contact' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'location' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'location_lat' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 16, - 'default' => '' - ], - 'location_lon' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 16, - 'default' => '' - ], - 'notes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'chassis' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'model' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'hw_arch' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ], - 'vendor' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'contract_number' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'installer_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'deployment_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'url_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'url_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'url_c' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'host_networks' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'host_netmask' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'host_router' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'oob_ip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'oob_netmask' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'oob_router' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 39, - 'default' => '' - ], - 'date_hw_purchase' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'date_hw_install' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'date_hw_expiry' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'date_hw_decomm' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'site_address_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'site_address_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'site_address_c' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'site_city' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'site_state' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'site_country' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'site_zip' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'site_rack' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'site_notes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'poc_1_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'poc_1_email' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'poc_1_phone_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_1_phone_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_1_cell' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_1_screen' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_1_notes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'poc_2_name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'poc_2_email' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'poc_2_phone_a' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_2_phone_b' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_2_cell' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_2_screen' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'poc_2_notes' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'housekeeper' => [ - 'key' => 'housekeeperid', - 'fields' => [ - 'housekeeperid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'tablename' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'field' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'value' - ] - ] - ], - 'images' => [ - 'key' => 'imageid', - 'fields' => [ - 'imageid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'imagetype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '0' - ], - 'image' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_BLOB, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'item_discovery' => [ - 'key' => 'itemdiscoveryid', - 'fields' => [ - 'itemdiscoveryid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'parent_itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'key_' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'lastcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ts_delete' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'host_discovery' => [ - 'key' => 'hostid', - 'fields' => [ - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'parent_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'parent_itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'host' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'lastcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ts_delete' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'interface_discovery' => [ - 'key' => 'interfaceid', - 'fields' => [ - 'interfaceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'interface', - 'ref_field' => 'interfaceid' - ], - 'parent_interfaceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'interface', - 'ref_field' => 'interfaceid' - ] - ] - ], - 'profiles' => [ - 'key' => 'profileid', - 'fields' => [ - 'profileid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'idx' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 96, - 'default' => '' - ], - 'idx2' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'default' => '0' - ], - 'value_id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'default' => '0' - ], - 'value_int' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_str' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 96, - 'default' => '' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sessions' => [ - 'key' => 'sessionid', - 'fields' => [ - 'sessionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'lastaccess' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'trigger_discovery' => [ - 'key' => 'triggerid', - 'fields' => [ - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'parent_triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'lastcheck' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ts_delete' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'item_condition' => [ - 'key' => 'item_conditionid', - 'fields' => [ - 'item_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '8' - ], - 'macro' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'item_rtdata' => [ - 'key' => 'itemid', - 'fields' => [ - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'lastlogsize' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_UINT, - 'length' => 20, - 'default' => '0' - ], - 'state' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'mtime' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'error' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'opinventory' => [ - 'key' => 'operationid', - 'fields' => [ - 'operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'operations', - 'ref_field' => 'operationid' - ], - 'inventory_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'trigger_tag' => [ - 'key' => 'triggertagid', - 'fields' => [ - 'triggertagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'event_tag' => [ - 'key' => 'eventtagid', - 'fields' => [ - 'eventtagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'problem' => [ - 'key' => 'eventid', - 'fields' => [ - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'source' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'object' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'objectid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'default' => '0' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'r_eventid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'r_clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'r_ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'correlationid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'correlation', - 'ref_field' => 'correlationid' - ], - 'userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'acknowledged' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'problem_tag' => [ - 'key' => 'problemtagid', - 'fields' => [ - 'problemtagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'problem', - 'ref_field' => 'eventid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'tag_filter' => [ - 'key' => 'tag_filterid', - 'fields' => [ - 'tag_filterid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'event_recovery' => [ - 'key' => 'eventid', - 'fields' => [ - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'r_eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'c_eventid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'correlationid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'correlation', - 'ref_field' => 'correlationid' - ], - 'userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'correlation' => [ - 'key' => 'correlationid', - 'fields' => [ - 'correlationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'formula' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'corr_condition' => [ - 'key' => 'corr_conditionid', - 'fields' => [ - 'corr_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'correlationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'correlation', - 'ref_field' => 'correlationid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'corr_condition_tag' => [ - 'key' => 'corr_conditionid', - 'fields' => [ - 'corr_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'corr_condition', - 'ref_field' => 'corr_conditionid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'corr_condition_group' => [ - 'key' => 'corr_conditionid', - 'fields' => [ - 'corr_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'corr_condition', - 'ref_field' => 'corr_conditionid' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'groupid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ] - ] - ], - 'corr_condition_tagpair' => [ - 'key' => 'corr_conditionid', - 'fields' => [ - 'corr_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'corr_condition', - 'ref_field' => 'corr_conditionid' - ], - 'oldtag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'newtag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'corr_condition_tagvalue' => [ - 'key' => 'corr_conditionid', - 'fields' => [ - 'corr_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'corr_condition', - 'ref_field' => 'corr_conditionid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'corr_operation' => [ - 'key' => 'corr_operationid', - 'fields' => [ - 'corr_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'correlationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'correlation', - 'ref_field' => 'correlationid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'task' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10 - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ttl' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'proxy_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'task_close_problem' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'acknowledgeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'acknowledges', - 'ref_field' => 'acknowledgeid' - ] - ] - ], - 'item_preproc' => [ - 'key' => 'item_preprocid', - 'fields' => [ - 'item_preprocid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'step' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'params' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'error_handler' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'error_handler_params' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'task_remote_command' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'command_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'execute_on' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'authtype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'username' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'password' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'publickey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'privatekey' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'command' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'alertid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'alerts', - 'ref_field' => 'alertid' - ], - 'parent_taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'task_remote_command_result' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'parent_taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'info' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'task_data' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'data' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ], - 'parent_taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ] - ] - ], - 'task_result' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'parent_taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'info' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_NCLOB, - 'default' => '' - ] - ] - ], - 'task_acknowledge' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'acknowledgeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'acknowledges', - 'ref_field' => 'acknowledgeid' - ] - ] - ], - 'sysmap_shape' => [ - 'key' => 'sysmap_shapeid', - 'fields' => [ - 'sysmap_shapeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'sysmapid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'x' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'y' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '200' - ], - 'height' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '200' - ], - 'text' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'font' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '9' - ], - 'font_size' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '11' - ], - 'font_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '000000' - ], - 'text_halign' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'text_valign' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'border_type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'border_width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'border_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '000000' - ], - 'background_color' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 6, - 'default' => '' - ], - 'zindex' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sysmap_element_trigger' => [ - 'key' => 'selement_triggerid', - 'fields' => [ - 'selement_triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'selementid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_elements', - 'ref_field' => 'selementid' - ], - 'triggerid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'triggers', - 'ref_field' => 'triggerid' - ] - ] - ], - 'httptest_field' => [ - 'key' => 'httptest_fieldid', - 'fields' => [ - 'httptest_fieldid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httptestid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httptest', - 'ref_field' => 'httptestid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'httpstep_field' => [ - 'key' => 'httpstep_fieldid', - 'fields' => [ - 'httpstep_fieldid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httpstepid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httpstep', - 'ref_field' => 'httpstepid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'dashboard' => [ - 'key' => 'dashboardid', - 'fields' => [ - 'dashboardid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255 - ], - 'userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'private' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'templateid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'display_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '30' - ], - 'auto_start' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'uuid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 32, - 'default' => '' - ] - ] - ], - 'dashboard_user' => [ - 'key' => 'dashboard_userid', - 'fields' => [ - 'dashboard_userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'dashboardid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dashboard', - 'ref_field' => 'dashboardid' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'permission' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ] - ] - ], - 'dashboard_usrgrp' => [ - 'key' => 'dashboard_usrgrpid', - 'fields' => [ - 'dashboard_usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'dashboardid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dashboard', - 'ref_field' => 'dashboardid' - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'permission' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ] - ] - ], - 'dashboard_page' => [ - 'key' => 'dashboard_pageid', - 'fields' => [ - 'dashboard_pageid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'dashboardid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dashboard', - 'ref_field' => 'dashboardid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'display_period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'sortorder' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'widget' => [ - 'key' => 'widgetid', - 'fields' => [ - 'widgetid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'x' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'y' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'width' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'height' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'view_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'dashboard_pageid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dashboard_page', - 'ref_field' => 'dashboard_pageid' - ] - ] - ], - 'widget_field' => [ - 'key' => 'widget_fieldid', - 'fields' => [ - 'widget_fieldid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'widgetid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'widget', - 'ref_field' => 'widgetid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value_int' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_str' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value_groupid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hstgrp', - 'ref_field' => 'groupid' - ], - 'value_hostid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'value_itemid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'value_graphid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'graphs', - 'ref_field' => 'graphid' - ], - 'value_sysmapid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps', - 'ref_field' => 'sysmapid' - ], - 'value_serviceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'value_slaid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sla', - 'ref_field' => 'slaid' - ] - ] - ], - 'task_check_now' => [ - 'key' => 'taskid', - 'fields' => [ - 'taskid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'task', - 'ref_field' => 'taskid' - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ] - ] - ], - 'event_suppress' => [ - 'key' => 'event_suppressid', - 'fields' => [ - 'event_suppressid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'events', - 'ref_field' => 'eventid' - ], - 'maintenanceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'suppress_until' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'maintenance_tag' => [ - 'key' => 'maintenancetagid', - 'fields' => [ - 'maintenancetagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'maintenanceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'maintenances', - 'ref_field' => 'maintenanceid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'lld_macro_path' => [ - 'key' => 'lld_macro_pathid', - 'fields' => [ - 'lld_macro_pathid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'lld_macro' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'path' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'host_tag' => [ - 'key' => 'hosttagid', - 'fields' => [ - 'hosttagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'hostid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'config_autoreg_tls' => [ - 'key' => 'autoreg_tlsid', - 'fields' => [ - 'autoreg_tlsid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'tls_psk_identity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128, - 'default' => '' - ], - 'tls_psk' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 512, - 'default' => '' - ] - ] - ], - 'module' => [ - 'key' => 'moduleid', - 'fields' => [ - 'moduleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'id' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'relative_path' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'config' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'interface_snmp' => [ - 'key' => 'interfaceid', - 'fields' => [ - 'interfaceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'interface', - 'ref_field' => 'interfaceid' - ], - 'version' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '2' - ], - 'bulk' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '1' - ], - 'community' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'securityname' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'securitylevel' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'authpassphrase' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'privpassphrase' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'authprotocol' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'privprotocol' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'contextname' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'lld_override' => [ - 'key' => 'lld_overrideid', - 'fields' => [ - 'lld_overrideid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'step' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'evaltype' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'formula' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'stop' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'lld_override_condition' => [ - 'key' => 'lld_override_conditionid', - 'fields' => [ - 'lld_override_conditionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'lld_overrideid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override', - 'ref_field' => 'lld_overrideid' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '8' - ], - 'macro' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'lld_override_operation' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'lld_overrideid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override', - 'ref_field' => 'lld_overrideid' - ], - 'operationobject' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'lld_override_opstatus' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'lld_override_opdiscover' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'discover' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'lld_override_opperiod' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'delay' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 1024, - 'default' => '0' - ] - ] - ], - 'lld_override_ophistory' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'history' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '90d' - ] - ] - ], - 'lld_override_optrends' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'trends' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '365d' - ] - ] - ], - 'lld_override_opseverity' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'lld_override_optag' => [ - 'key' => 'lld_override_optagid', - 'fields' => [ - 'lld_override_optagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'lld_override_optemplate' => [ - 'key' => 'lld_override_optemplateid', - 'fields' => [ - 'lld_override_optemplateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'templateid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'hosts', - 'ref_field' => 'hostid' - ] - ] - ], - 'lld_override_opinventory' => [ - 'key' => 'lld_override_operationid', - 'fields' => [ - 'lld_override_operationid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'lld_override_operation', - 'ref_field' => 'lld_override_operationid' - ], - 'inventory_mode' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'trigger_queue' => [ - 'key' => 'trigger_queueid', - 'fields' => [ - 'trigger_queueid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'objectid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'clock' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ns' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'item_parameter' => [ - 'key' => 'item_parameterid', - 'fields' => [ - 'item_parameterid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'role_rule' => [ - 'key' => 'role_ruleid', - 'fields' => [ - 'role_ruleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'roleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'role', - 'ref_field' => 'roleid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value_int' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value_str' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value_moduleid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'module', - 'ref_field' => 'moduleid' - ], - 'value_serviceid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ] - ] - ], - 'token' => [ - 'key' => 'tokenid', - 'fields' => [ - 'tokenid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 64, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'token' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 128 - ], - 'lastaccess' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'expires_at' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'created_at' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'creator_userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'item_tag' => [ - 'key' => 'itemtagid', - 'fields' => [ - 'itemtagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'itemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'items', - 'ref_field' => 'itemid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'httptest_tag' => [ - 'key' => 'httptesttagid', - 'fields' => [ - 'httptesttagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'httptestid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'httptest', - 'ref_field' => 'httptestid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'sysmaps_element_tag' => [ - 'key' => 'selementtagid', - 'fields' => [ - 'selementtagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'selementid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sysmaps_elements', - 'ref_field' => 'selementid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'report' => [ - 'key' => 'reportid', - 'fields' => [ - 'reportid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'dashboardid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'dashboard', - 'ref_field' => 'dashboardid' - ], - 'period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'cycle' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'weekdays' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'start_time' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'active_since' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'active_till' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'state' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'lastsent' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'info' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 2048, - 'default' => '' - ] - ] - ], - 'report_param' => [ - 'key' => 'reportparamid', - 'fields' => [ - 'reportparamid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'reportid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'report', - 'ref_field' => 'reportid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'report_user' => [ - 'key' => 'reportuserid', - 'fields' => [ - 'reportuserid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'reportid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'report', - 'ref_field' => 'reportid' - ], - 'userid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ], - 'exclude' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'access_userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'report_usrgrp' => [ - 'key' => 'reportusrgrpid', - 'fields' => [ - 'reportusrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'reportid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'report', - 'ref_field' => 'reportid' - ], - 'usrgrpid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'usrgrp', - 'ref_field' => 'usrgrpid' - ], - 'access_userid' => [ - 'null' => true, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'users', - 'ref_field' => 'userid' - ] - ] - ], - 'service_problem_tag' => [ - 'key' => 'service_problem_tagid', - 'fields' => [ - 'service_problem_tagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'service_problem' => [ - 'key' => 'service_problemid', - 'fields' => [ - 'service_problemid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'eventid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'problem', - 'ref_field' => 'eventid' - ], - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'severity' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'service_tag' => [ - 'key' => 'servicetagid', - 'fields' => [ - 'servicetagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'service_status_rule' => [ - 'key' => 'service_status_ruleid', - 'fields' => [ - 'service_status_ruleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'serviceid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'services', - 'ref_field' => 'serviceid' - ], - 'type' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'limit_value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'limit_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'new_status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'ha_node' => [ - 'key' => 'ha_nodeid', - 'fields' => [ - 'ha_nodeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CUID, - 'length' => 25 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'address' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'port' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '10051' - ], - 'lastaccess' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'ha_sessionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CUID, - 'length' => 25, - 'default' => '' - ] - ] - ], - 'sla' => [ - 'key' => 'slaid', - 'fields' => [ - 'slaid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'period' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'slo' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_FLOAT, - 'default' => '99.9' - ], - 'effective_date' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'timezone' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 50, - 'default' => 'UTC' - ], - 'status' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'description' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_TEXT, - 'default' => '' - ] - ] - ], - 'sla_schedule' => [ - 'key' => 'sla_scheduleid', - 'fields' => [ - 'sla_scheduleid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'slaid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sla', - 'ref_field' => 'slaid' - ], - 'period_from' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'period_to' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sla_excluded_downtime' => [ - 'key' => 'sla_excluded_downtimeid', - 'fields' => [ - 'sla_excluded_downtimeid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'slaid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sla', - 'ref_field' => 'slaid' - ], - 'name' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'period_from' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'period_to' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ], - 'sla_service_tag' => [ - 'key' => 'sla_service_tagid', - 'fields' => [ - 'sla_service_tagid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'slaid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20, - 'ref_table' => 'sla', - 'ref_field' => 'slaid' - ], - 'tag' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ], - 'operator' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'value' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_CHAR, - 'length' => 255, - 'default' => '' - ] - ] - ], - 'dbversion' => [ - 'key' => 'dbversionid', - 'fields' => [ - 'dbversionid' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_ID, - 'length' => 20 - ], - 'mandatory' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ], - 'optional' => [ - 'null' => false, - 'type' => DB::FIELD_TYPE_INT, - 'length' => 10, - 'default' => '0' - ] - ] - ] -]; diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 07dab33a3a1..0a7890bf5b8 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -765,6 +765,7 @@ FIELD |propagation_rule|t_integer |'0' |NOT NULL |0 FIELD |propagation_value|t_integer |'0' |NOT NULL |0 FIELD |description |t_shorttext |'' |NOT NULL |0 FIELD |uuid |t_varchar(32) |'' |NOT NULL |0 +FIELD |created_at |t_integer |'0' |NOT NULL |0 TABLE|services_links|linkid|ZBX_DATA FIELD |linkid |t_id | |NOT NULL |0 -- cgit v1.2.3 From a11ba191d95787bb2db1cf810b913b2914de35e0 Mon Sep 17 00:00:00 2001 From: Vladislavs Sokurenko Date: Thu, 2 Dec 2021 15:55:30 +0200 Subject: ....I..... [ZBXNEXT-6999] updated upgrade patch for new schema --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index 0a7890bf5b8..9f441f479a2 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1935,4 +1935,4 @@ TABLE|dbversion|dbversionid| FIELD |dbversionid |t_id | |NOT NULL |0 FIELD |mandatory |t_integer |'0' |NOT NULL | FIELD |optional |t_integer |'0' |NOT NULL | -ROW |1 |5050136 |5050136 +ROW |1 |5050138 |5050138 -- cgit v1.2.3 From 5a952af335f3cf958d16beecc6506851244d0cb1 Mon Sep 17 00:00:00 2001 From: Andrejs Verza Date: Mon, 27 Dec 2021 19:30:06 +0200 Subject: ..F.....S. [ZBXNEXT-6999] fixed the default status of the SLA in the DB schema --- create/src/schema.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'create') diff --git a/create/src/schema.tmpl b/create/src/schema.tmpl index e541160acd0..5d01a8e5e10 100644 --- a/create/src/schema.tmpl +++ b/create/src/schema.tmpl @@ -1905,7 +1905,7 @@ FIELD |period |t_integer |'0' |NOT NULL |0 FIELD |slo |t_double |'99.9' |NOT NULL |0 FIELD |effective_date |t_integer |'0' |NOT NULL |0 FIELD |timezone |t_varchar(50) |'UTC' |NOT NULL |ZBX_NODATA -FIELD |status |t_integer |'0' |NOT NULL |0 +FIELD |status |t_integer |'1' |NOT NULL |0 FIELD |description |t_shorttext |'' |NOT NULL |0 UNIQUE |1 |name -- cgit v1.2.3 From 34e19b964a97bc4ede057758017a031d4aafb077 Mon Sep 17 00:00:00 2001 From: Alexander Vladishev Date: Sun, 9 Jan 2022 19:53:58 +0200 Subject: .......... [ZBXNEXT-826] updated copyright year [2022] --- create/bin/export_data.sh | 2 +- create/bin/gen_data.pl | 2 +- create/bin/gen_schema.pl | 4 ++-- create/bin/gen_top_passwords.php | 2 +- create/src/dashboards.tmpl | 2 +- create/src/data.tmpl | 2 +- create/src/schema.tmpl | 2 +- create/src/templates.tmpl | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) (limited to 'create') diff --git a/create/bin/export_data.sh b/create/bin/export_data.sh index c6a3ea46e62..5b7d3a1d369 100755 --- a/create/bin/export_data.sh +++ b/create/bin/export_data.sh @@ -14,7 +14,7 @@ schema=$basedir/../src/schema.tmpl echo "-- -- Zabbix --- Copyright (C) 2001-2021 Zabbix SIA +-- Copyright (C) 2001-2022 Zabbix SIA -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by diff --git a/create/bin/gen_data.pl b/create/bin/gen_data.pl index f3ad943cf91..ed9e307b234 100755 --- a/create/bin/gen_data.pl +++ b/create/bin/gen_data.pl @@ -1,7 +1,7 @@ #!/usr/bin/env perl # # Zabbix -# Copyright (C) 2001-2021 Zabbix SIA +# Copyright (C) 2001-2022 Zabbix SIA # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as diff --git a/create/bin/gen_schema.pl b/create/bin/gen_schema.pl index f20f4d324aa..f4939ae4e10 100755 --- a/create/bin/gen_schema.pl +++ b/create/bin/gen_schema.pl @@ -1,7 +1,7 @@ #!/usr/bin/env perl # # Zabbix -# Copyright (C) 2001-2021 Zabbix SIA +# Copyright (C) 2001-2022 Zabbix SIA # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -46,7 +46,7 @@ my %c = ( $c{"before"} = "/* ** Zabbix -** Copyright (C) 2001-2021 Zabbix SIA +** Copyright (C) 2001-2022 Zabbix SIA ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by diff --git a/create/bin/gen_top_passwords.php b/create/bin/gen_top_passwords.php index 2eaa2e0e125..3a0f919f930 100644 --- a/create/bin/gen_top_passwords.php +++ b/create/bin/gen_top_passwords.php @@ -1,7 +1,7 @@