diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index 87aaf7d5d..3fd73ae14 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -86,6 +86,11 @@ def status(): return 'stop' return 'start' +def getInstallVerion(): + version_pl = getServerDir() + "/version.pl" + version = mw.readFile(version_pl).strip() + return version + def contentReplace(content): service_path = mw.getServerDir() content = content.replace('{$ROOT_PATH}', mw.getRootDir()) @@ -177,6 +182,11 @@ def zabbixImportMySQLData(): content = contentReplace(content) mw.writeFile(php_dst_path, content) + + ver = getInstallVerion() + if ver == '6.0': + pmdb.query("update dbversion set mandatory=6000000") + return True def initOpConf():