Skip to content

Instantly share code, notes, and snippets.

@higebu
Created March 28, 2014 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save higebu/9826325 to your computer and use it in GitHub Desktop.
Save higebu/9826325 to your computer and use it in GitHub Desktop.
diff -u -r zabbix-2.2.2.orig/database/mysql/schema.sql zabbix-2.2.2/database/mysql/schema.sql
--- zabbix-2.2.2.orig/database/mysql/schema.sql 2014-02-12 18:07:45.000000000 +0900
+++ zabbix-2.2.2/database/mysql/schema.sql 2014-03-28 14:01:21.892152182 +0900
@@ -38,7 +38,7 @@
`jmx_available` integer DEFAULT '0' NOT NULL,
`jmx_errors_from` integer DEFAULT '0' NOT NULL,
`jmx_error` varchar(128) DEFAULT '' NOT NULL,
- `name` varchar(64) DEFAULT '' NOT NULL,
+ `name` varchar(128) DEFAULT '' NOT NULL,
`flags` integer DEFAULT '0' NOT NULL,
`templateid` bigint unsigned NULL,
PRIMARY KEY (hostid)
diff -u -r zabbix-2.2.2.orig/include/db.h zabbix-2.2.2/include/db.h
--- zabbix-2.2.2.orig/include/db.h 2014-02-12 18:04:36.000000000 +0900
+++ zabbix-2.2.2/include/db.h 2014-03-28 14:01:22.192157243 +0900
@@ -78,7 +78,7 @@
#define HOST_HOST_LEN MAX_ZBX_HOSTNAME_LEN
#define HOST_HOST_LEN_MAX (HOST_HOST_LEN + 1)
-#define HOST_NAME_LEN 64
+#define HOST_NAME_LEN 128
#define HOST_ERROR_LEN 128
#define HOST_ERROR_LEN_MAX (HOST_ERROR_LEN + 1)
#define HOST_IPMI_USERNAME_LEN 16
@higebu
Copy link
Author

higebu commented Mar 28, 2014

wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.2/zabbix-2.2.2.tar.gz
tar xf zabbix-2.2.2.tar.gz
patch -p1 -d zabbix-2.2.2 < ZBX-7720-zabbix-2.2.2.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment