Ok news on this:
we examined the special agent (~/local/share/check_mk/agents/special/agent_kubernetes) and it seems that there is no option for parsing argument for a proxy.
Is this correct?
We modified the special agent to fetch the systems’ proxy settings. The the proxy options in the global settings do not work.
Old(line 1416ff):
def get_api_client(arguments):
# type: (argparse.Namespace) -> client.ApiClient
logging.info('Constructing API client')
config = client.Configuration()
if arguments.url_prefix:
config.host = '%s:%s%s' % (arguments.url_prefix.rstrip("/"), arguments.port,
arguments.path_prefix)
New (line 1416ff):
> def get_api_client(arguments): > # type: (argparse.Namespace) -> client.ApiClient > logging.info('Constructing API client') > > config = client.Configuration() > > proxy_url = os.getenv('http_proxy', None) > logging.info("Setting proxy: {}".format(proxy_url)) > config.proxy = proxy_url > > if arguments.url_prefix: > config.host = '%s:%s%s' % (arguments.url_prefix.rstrip("/"), arguments.port, > arguments.path_prefix)
Now the host gets inventarized fine and the check from command line also works (i.e. cmk -D -v ):
But in the webinterface Check_MK reports a timeout and all discovered services remain on PEND
Dynamic configuration is set up according to Dynamic host configuration - Managing dynamic infrastructures