mirror of
https://github.com/bashclub/check-opnsense.git
synced 2024-11-07 16:31:58 +01:00
Update opnsense_checkmk_agent.py
nginx fixed
This commit is contained in:
parent
d09acd3810
commit
97cbe33d02
@ -27,7 +27,7 @@
|
|||||||
## * smartdisk - install the mkp from https://github.com/bashclub/checkmk-smart plugins os-smart
|
## * 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
|
## * 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 sys
|
||||||
import os
|
import os
|
||||||
@ -131,8 +131,11 @@ class NginxConnectionPool(HTTPConnectionPool):
|
|||||||
return NginxConnection()
|
return NginxConnection()
|
||||||
|
|
||||||
class NginxAdapter(HTTPAdapter):
|
class NginxAdapter(HTTPAdapter):
|
||||||
|
## deprecated
|
||||||
def get_connection(self, url, proxies=None):
|
def get_connection(self, url, proxies=None):
|
||||||
return NginxConnectionPool()
|
return NginxConnectionPool()
|
||||||
|
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
|
||||||
|
return NginxConnectionPool()
|
||||||
|
|
||||||
def check_pid(pid):
|
def check_pid(pid):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user