Skip to content

Commit

Permalink
Update opnsense_checkmk_agent.py
Browse files Browse the repository at this point in the history
nginx fixed
  • Loading branch information
thorstenspille authored Aug 12, 2024
1 parent d09acd3 commit 97cbe33
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions opnsense_checkmk_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -131,8 +131,11 @@ def _new_conn(self):
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:
Expand Down Expand Up @@ -1880,4 +1883,4 @@ def _args_error(message):
print("checkmk_agent for opnsense")
print(f"Version: {__VERSION__}")
print("#"*35)
print("use --help or -h for help")
print("use --help or -h for help")

0 comments on commit 97cbe33

Please sign in to comment.