Back to Checks
All ESXi hosts have ACTIVE configuration status
hosts_connected
Service: hostsSeverity: high
Categories:resilience
Resource Type:Host
ESXi hosts managed by VCF are in ACTIVE configuration state, indicating they are reachable, configured and operational.
Risk
Hosts not in ACTIVE configuration state cannot run workloads and may indicate network issues, hardware failures, or unresolved maintenance state, breaking availability of the workloads they should host.
Run this check with Prowler
Run in Prowler CloudInstall
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"Run
prowler vcf --checks hosts_connectedRecommendation
Keep all ESXi hosts reachable and in ACTIVE configuration state by remediating connectivity and hardware issues promptly.
Remediation
Other
1Investigate hosts not in **ACTIVE** state in the **SDDC Manager** UI under **Inventory > Hosts** and resolve the underlying connectivity or hardware issue.
Check Code
from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.hosts.hosts_client import hosts_client
class hosts_connected(Check):
def execute(self) -> list[CheckReportVCF]:
findings = []
for host in hosts_client.hosts:
report = CheckReportVCF(
metadata=self.metadata(),
resource=host,
)
if host.configuration_status == "ACTIVE":
report.status = "PASS"
report.status_extended = (
f"Host {host.name} configuration status is ACTIVE."
)
else:
report.status = "FAIL"
report.status_extended = (
f"Host {host.name} configuration status is "
f"{host.configuration_status} (expected ACTIVE)."
)
findings.append(report)
return findings