This commit is contained in:
Mr Chen
2024-07-20 12:16:00 +08:00
parent f9caafcb86
commit 1c47a4cc2f
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -242,7 +242,10 @@ def zabbixImportMySQLDataFile():
return '/usr/share/zabbix-sql-scripts/mysql/server.sql.gz'
def zabbixImportMySQLData():
getMySQLConf()
mysql_conf = getMySQLConf()
if os.path.exists(mysql_conf):
exit("需要安装MySQL")
choose_mysql = getServerDir()+'/mysql.pl'
ver = mw.readFile(choose_mysql)
+2 -2
View File
@@ -26,13 +26,13 @@ Install_App()
echo "rpm -Uvh https://repo.zabbix.com/zabbix/7.0/sles/${SYS_VERSION_ID:0:2}/x86_64/${ZABBIX_NAME}"
# cd $serverPath/source/zabbix && rpm -Uvh ${ZABBIX_NAME}
zypper install -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts zabbix-selinux-policy
zypper install -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts
zypper install -y zabbix-agent
}
Uninstall_App()
{
zypper remove -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts zabbix-selinux-policy
zypper remove -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts
zypper remove -y zabbix-agent
rm -rf /etc/zabbix
echo "卸载成功"