From 97cbe33d0265a1af73a932d73ab1245651a5ef7b Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 12 Aug 2024 11:45:12 +0200 Subject: [PATCH] Update opnsense_checkmk_agent.py nginx fixed --- opnsense_checkmk_agent.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/opnsense_checkmk_agent.py b/opnsense_checkmk_agent.py index d0f6142..7a789d8 100644 --- a/opnsense_checkmk_agent.py +++ b/opnsense_checkmk_agent.py @@ -27,7 +27,7 @@ ## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart ## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active -__VERSION__ = "1.0.8" +__VERSION__ = "1.0.9" import sys import os @@ -131,8 +131,11 @@ class NginxConnectionPool(HTTPConnectionPool): return NginxConnection() class NginxAdapter(HTTPAdapter): + ## deprecated def get_connection(self, url, proxies=None): return NginxConnectionPool() + def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None): + return NginxConnectionPool() def check_pid(pid): try: @@ -1880,4 +1883,4 @@ if __name__ == "__main__": print("checkmk_agent for opnsense") print(f"Version: {__VERSION__}") print("#"*35) - print("use --help or -h for help") \ No newline at end of file + print("use --help or -h for help")