From ce6d7e64270be32be6985ab426b5eff109c258f9 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Tue, 5 Jul 2022 18:05:25 +0200
Subject: [PATCH] Py3 support for php_fpm_tools plugin

---
 checkmk/custom-files/php_fpm_pools | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checkmk/custom-files/php_fpm_pools b/checkmk/custom-files/php_fpm_pools
index a48650a..d5f12df 100644
--- a/checkmk/custom-files/php_fpm_pools
+++ b/checkmk/custom-files/php_fpm_pools
@@ -137,7 +137,7 @@ config_file=os.path.join(os.environ.get("MK_CONFDIR", "/etc/check_mk"), "php_fpm
 php_fpm = None
 
 if os.path.exists(config_file):
-    execfile(config_file)
+    exec(open(config_file).read())
 
 if not php_fpm:
     print("Config file does not exist or is empty!")
-- 
GitLab