From b1ce9fb05ee1172c136b725bf62de19ea703da12 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 20 Jul 2024 03:07:33 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index cfc5ae503..770d6a2c6 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -480,7 +480,7 @@ def installPreInspection(): is_installed_mysql = isInstalledMySQL() - if not os.path.exists(mysql_dir): + if not is_installed_mysql: return '需要安装MySQL/MySQL-APT/MySQL-YUM插件,至少8.0!' return 'ok'