diff -urN zabbix-3.0.1.orig/database/ibm_db2/schema.sql zabbix-3.0.1/database/ibm_db2/schema.sql --- zabbix-3.0.1.orig/database/ibm_db2/schema.sql 2016-02-26 04:46:48.000000000 -0500 +++ zabbix-3.0.1/database/ibm_db2/schema.sql 2016-04-11 12:03:02.000000000 -0400 @@ -273,7 +273,7 @@ itemid bigint NOT NULL, type integer WITH DEFAULT '0' NOT NULL, snmp_community varchar(64) WITH DEFAULT '' NOT NULL, - snmp_oid varchar(255) WITH DEFAULT '' NOT NULL, + snmp_oid varchar(511) WITH DEFAULT '' NOT NULL, hostid bigint NOT NULL, name varchar(255) WITH DEFAULT '' NOT NULL, key_ varchar(255) WITH DEFAULT '' NOT NULL, diff -urN zabbix-3.0.1.orig/database/mysql/schema.sql zabbix-3.0.1/database/mysql/schema.sql --- zabbix-3.0.1.orig/database/mysql/schema.sql 2016-02-26 04:46:49.000000000 -0500 +++ zabbix-3.0.1/database/mysql/schema.sql 2016-04-11 12:02:52.000000000 -0400 @@ -273,7 +273,7 @@ `itemid` bigint unsigned NOT NULL, `type` integer DEFAULT '0' NOT NULL, `snmp_community` varchar(64) DEFAULT '' NOT NULL, - `snmp_oid` varchar(255) DEFAULT '' NOT NULL, + `snmp_oid` varchar(511) DEFAULT '' NOT NULL, `hostid` bigint unsigned NOT NULL, `name` varchar(255) DEFAULT '' NOT NULL, `key_` varchar(255) DEFAULT '' NOT NULL, diff -urN zabbix-3.0.1.orig/database/oracle/schema.sql zabbix-3.0.1/database/oracle/schema.sql --- zabbix-3.0.1.orig/database/oracle/schema.sql 2016-02-26 04:46:48.000000000 -0500 +++ zabbix-3.0.1/database/oracle/schema.sql 2016-04-11 12:03:17.000000000 -0400 @@ -273,7 +273,7 @@ itemid number(20) NOT NULL, type number(10) DEFAULT '0' NOT NULL, snmp_community nvarchar2(64) DEFAULT '' , - snmp_oid nvarchar2(255) DEFAULT '' , + snmp_oid nvarchar2(511) DEFAULT '' , hostid number(20) NOT NULL, name nvarchar2(255) DEFAULT '' , key_ nvarchar2(255) DEFAULT '' , diff -urN zabbix-3.0.1.orig/database/postgresql/schema.sql zabbix-3.0.1/database/postgresql/schema.sql --- zabbix-3.0.1.orig/database/postgresql/schema.sql 2016-02-26 04:46:49.000000000 -0500 +++ zabbix-3.0.1/database/postgresql/schema.sql 2016-04-11 12:02:36.000000000 -0400 @@ -273,7 +273,7 @@ itemid bigint NOT NULL, type integer DEFAULT '0' NOT NULL, snmp_community varchar(64) DEFAULT '' NOT NULL, - snmp_oid varchar(255) DEFAULT '' NOT NULL, + snmp_oid varchar(511) DEFAULT '' NOT NULL, hostid bigint NOT NULL, name varchar(255) DEFAULT '' NOT NULL, key_ varchar(255) DEFAULT '' NOT NULL, diff -urN zabbix-3.0.1.orig/database/sqlite3/schema.sql zabbix-3.0.1/database/sqlite3/schema.sql --- zabbix-3.0.1.orig/database/sqlite3/schema.sql 2016-02-26 04:46:49.000000000 -0500 +++ zabbix-3.0.1/database/sqlite3/schema.sql 2016-04-11 12:03:28.000000000 -0400 @@ -273,7 +273,7 @@ itemid bigint NOT NULL, type integer DEFAULT '0' NOT NULL, snmp_community varchar(64) DEFAULT '' NOT NULL, - snmp_oid varchar(255) DEFAULT '' NOT NULL, + snmp_oid varchar(511) DEFAULT '' NOT NULL, hostid bigint NOT NULL REFERENCES hosts (hostid) ON DELETE CASCADE, name varchar(255) DEFAULT '' NOT NULL, key_ varchar(255) DEFAULT '' NOT NULL, diff -urN zabbix-3.0.1.orig/include/db.h zabbix-3.0.1/include/db.h --- zabbix-3.0.1.orig/include/db.h 2016-02-26 04:45:45.000000000 -0500 +++ zabbix-3.0.1/include/db.h 2016-04-11 11:59:50.000000000 -0400 @@ -106,7 +106,7 @@ #define ITEM_UNITS_LEN 255 #define ITEM_SNMP_COMMUNITY_LEN 64 #define ITEM_SNMP_COMMUNITY_LEN_MAX (ITEM_SNMP_COMMUNITY_LEN + 1) -#define ITEM_SNMP_OID_LEN 255 +#define ITEM_SNMP_OID_LEN 511 #define ITEM_SNMP_OID_LEN_MAX (ITEM_SNMP_OID_LEN + 1) #define ITEM_ERROR_LEN 2048 #define ITEM_ERROR_LEN_MAX (ITEM_ERROR_LEN + 1) diff -urN zabbix-3.0.1.orig/src/libs/zbxdbupgrade/dbupgrade_3000.c zabbix-3.0.1/src/libs/zbxdbupgrade/dbupgrade_3000.c --- zabbix-3.0.1.orig/src/libs/zbxdbupgrade/dbupgrade_3000.c 2016-02-26 04:45:46.000000000 -0500 +++ zabbix-3.0.1/src/libs/zbxdbupgrade/dbupgrade_3000.c 2016-04-11 14:33:51.000000000 -0400 @@ -33,6 +33,13 @@ return SUCCEED; } +static int DBpatch_3000001(void) +{ + const ZBX_FIELD field = {"snmp_oid", "", NULL, NULL, 511, ZBX_TYPE_CHAR, ZBX_NOTNULL, 0}; + + return DBmodify_field_type("items", &field); +} + #endif DBPATCH_START(3000) @@ -40,5 +47,6 @@ /* version, duplicates flag, mandatory flag */ DBPATCH_ADD(3000000, 0, 1) +DBPATCH_ADD(3000001, 0, 0) DBPATCH_END()