checkmk-plugins/check_mk-azure/local/share/check_mk/checks/agent_azure

23 lines
793 B
Plaintext
Raw Normal View History

2024-08-24 13:26:38 +03:00
#!/usr/bin/env python3
# Copyright (C) 2024 Spearhead Systems SRL
def get_params(params):
return params["tenant"], params["client"], params["secret"]
2024-08-24 23:49:22 +03:00
def agent_azure_keyvault(params, hostname, ipaddress):
2024-08-24 13:26:38 +03:00
tenant, client, secret = get_params(params)
return ["keyvault", tenant, client, secret]
2024-08-24 23:49:22 +03:00
def agent_azure_firewall(params, hostname, ipaddress):
2024-08-24 13:26:38 +03:00
tenant, client, secret = get_params(params)
return ["firewall", tenant, client, secret]
2024-08-24 23:49:22 +03:00
def agent_azure_defender(params, hostname, ipaddress):
2024-08-24 13:26:38 +03:00
tenant, client, secret = get_params(params)
return ["defender", tenant, client, secret]
2024-08-24 23:49:22 +03:00
special_agent_info["azure_keyvault"] = agent_azure_keyvault
special_agent_info["azure_firewall"] = agent_azure_firewall
special_agent_info["azure_defender"] = agent_azure_defender
2024-08-24 13:26:38 +03:00