Skip to content

Commit 97cbe33

Browse files
Update opnsense_checkmk_agent.py
nginx fixed
1 parent d09acd3 commit 97cbe33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

opnsense_checkmk_agent.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
2828
## * squid - install the mkp from https://exchange.checkmk.com/p/squid and forwarder -> listen on loopback active
2929

30-
__VERSION__ = "1.0.8"
30+
__VERSION__ = "1.0.9"
3131

3232
import sys
3333
import os
@@ -131,8 +131,11 @@ def _new_conn(self):
131131
return NginxConnection()
132132

133133
class NginxAdapter(HTTPAdapter):
134+
## deprecated
134135
def get_connection(self, url, proxies=None):
135136
return NginxConnectionPool()
137+
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
138+
return NginxConnectionPool()
136139

137140
def check_pid(pid):
138141
try:
@@ -1880,4 +1883,4 @@ def _args_error(message):
18801883
print("checkmk_agent for opnsense")
18811884
print(f"Version: {__VERSION__}")
18821885
print("#"*35)
1883-
print("use --help or -h for help")
1886+
print("use --help or -h for help")

0 commit comments

Comments
 (0)