VMware Monitor (Read-Only)
Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc. "VMware" and "vSphere" are trademarks of Broadcom. Source code is publicly auditable at github.com/vmware-skills/VMware-Monitor under the MIT license.
Read-only VMware vCenter/ESXi monitoring — 32 MCP tools, zero destructive code.
Read-only toward vSphere: no code path changes vCenter/ESXi state — no power, create, delete, snapshot, or reconfigure call exists. On vCenter it opens only its login session and short-lived query handles it releases. Gate: tests/eval/regression/test_read_only_enforcement.py (source repo, not this bundle) requires every vSphere method called to be on a reviewed allowlist, checked against pyVmomi's type metadata. It checks source, not runtime, and no CI runs it. Independent of this code: use a dedicated account with vCenter's Read-Only role.
Local writes (this machine only): init writes ~/.vmware-monitor/config.yaml and .env (0600; plaintext passwords are rewritten as b64: on load); audit logs ~/.vmware/audit.db (MCP) and ~/.vmware-monitor/audit.log (CLI); --html snapshots in ~/vmware-health/; after daemon start only, scan.log, daemon.pid and opt-in webhook posts.
Companion skills: vmware-aiops (VM lifecycle), vmware-storage (iSCSI/vSAN), vmware-vks (Tanzu Kubernetes), vmware-nsx (NSX networking), vmware-nsx-security (DFW/firewall), vmware-aria (metrics/alerts/capacity), vmware-avi (AVI/ALB/AKO), vmware-harden (compliance baselines).
| vmware-pilot (workflow orchestration) | vmware-policy (audit/policy)
What This Skill Does
| Category |
Capabilities |
| Cluster Triage |
One-glance cluster_health_summary — cross-cluster Problems/Capacity/Health rollup with an opinionated status; customizable view |
| Object Investigation |
"What is happening around this VM / host / datastore?" — one correlated drill-down bundle per object, plus cross_vcenter_attention — one ranked "what needs attention now?" list across every configured vCenter |
| Inventory |
List VMs, ESXi hosts, datastores, clusters, networks |
| Health |
Active alarms, recent events (filter by severity/time), hardware sensors, host services |
| Performance |
Real-time host & VM CPU/memory/disk/network utilisation (PerfManager) |
| Capacity |
Datastore thin-provisioning over-commit, resource-pool reservation/usage |
| Infra Health |
ESXi certificate expiry, license usage/expiry, NTP configuration health |
| Snapshots |
Inventory-wide snapshot aging & sprawl (flag old snapshots) |
| Activity |
In-flight tasks, active login sessions |
| VM Details |
CPU, memory, disks, NICs, snapshots, guest OS, IP |
| Scanning |
Scheduled alarm/log scanning with Slack/Discord webhooks |
| vSphere 9.1 |
Host memory tiering (DRAM/NVMe uplift), vLCM cluster patch compliance & last-apply result, vCenter deployment size |
Quick Install
uv tool install vmware-monitor==1.12.0
vmware-monitor doctor
When to Use This Skill
- List or search VMs, hosts, datastores, clusters
- Check active alarms or recent events
- Get detailed info about a specific VM
- Set up scheduled monitoring with webhook alerts
- Any read-only VMware query where safety is paramount
Alarm/Event Output: suggested_actions Field
get_alarms and get_events results include a suggested_actions list. Each
item is a ready-to-use hint naming the correct companion skill and tool call
(e.g. "vmware-aiops: acknowledge_vcenter_alarm(entity_name=..., alarm_name=...)"),
so agents — especially smaller local models — can follow them directly without
reasoning about skill routing. Example payload: references/capabilities.md.
Use companion skills for:
- Power on/off, deploy, clone, migrate -->
vmware-aiops
- iSCSI, vSAN, datastore management -->
vmware-storage
- Tanzu Kubernetes clusters -->
vmware-vks
- Load balancing, AVI/ALB, AKO, Ingress -->
vmware-avi
Related Skills — Skill Routing
| User Intent |
Recommended Skill |
| Read-only vSphere monitoring |
vmware-monitor ← this skill |
| Storage: iSCSI, vSAN, datastores |
vmware-storage |
| VM lifecycle, deployment, guest ops |
vmware-aiops |
| Tanzu Kubernetes (vSphere 8.x+) |
vmware-vks |
| NSX networking: segments, gateways, NAT |
vmware-nsx |
| NSX security: DFW rules, security groups |
vmware-nsx-security |
| Aria Ops: metrics, alerts, capacity planning |
vmware-aria |
| Multi-step workflows with approval |
vmware-pilot |
| Compliance baselines (CIS / 等保 / PCI-DSS), drift detection, LLM remediation advisor |
vmware-harden (uv tool install vmware-harden) |
| Load balancer, AVI, ALB, AKO, Ingress |
vmware-avi (uv tool install vmware-avi) |
| Audit log query |
vmware-policy (vmware-audit CLI) |
Common Workflows
Diagnostic investigations: Before running any "why is X failing / down / abnormal" workflow, follow references/investigation-protocol.md. It enforces the four root-cause completeness criteria (falsifiability / sufficiency / necessity / mechanism) and the up-to-three-rounds deepening loop. Since vmware-monitor is read-only, it serves as the data source — actuation belongs to companion skills like vmware-aiops.
Cluster Health Check ("is anything on fire?" / "what's wrong right now?")
Judgment: this is the 5-second triage glance, not an Aria replacement. One call rolls every cluster's hosts, VM power, live CPU/memory and alarms up, flattens the individual anomalies into a ranked top-N focus list (top_issues), and gives each cluster an opinionated status. On a big fleet, lead with the focus list — scanning per-cluster rows is too slow.
- One glance -->
vmware-monitor summary (MCP: cluster_health_summary). Read top_issues first (worst first, each with a drill-down next step); the per-cluster table is context. issues_total shows how many anomalies existed before the top-N cap
- Tighten or widen the focus -->
--top 5 for the 5 most urgent, --top 20 for more, --top 0 to hide the list and just see the table
- Drill into what the list points at --> e.g. a
host_down row → inventory hosts; an alarm row → get_alarms; a capacity row → perf hosts / capacity datastores; scope with --cluster prod-a
- Reshape the view on request --> the output ends with a friendly hint; the operator can say "add datastore free space", "drop the DRS column", "only show clusters needing attention", or "save this as an HTML page". Default layout, columns, and thresholds live in
references/health-summary-template.md and are meant to be edited
- Save an offline snapshot -->
vmware-monitor summary --html writes a self-contained HTML file (no external assets, nothing uploaded) to ~/vmware-health/cluster-health-<vc>-<timestamp>.html; --html-path <file> for an explicit path. The timestamped filename means a folder of them becomes a browsable point-in-time history. It is a snapshot, not a live page — re-run to refresh
- On a very large fleet --> add
--no-vms to skip the VM rollup pass when you only need host/alarm/capacity signals
totals.clusters is 0 --> not empty: un-clustered hosts (standalone ESXi, or a cluster-less vCenter) form the (standalone hosts) row, still in totals and top_issues
Daily Health Check
Judgment: alarms tell you what vCenter has decided is wrong, events tell you what happened. They diverge — an event burst with no alarms often signals a metric threshold miscalibration, not "everything is fine." Read both.
- Check alarms -->
vmware-monitor health alarms --target prod-vcenter — focus on Red severity AND alarms older than 1 hour (transient ones self-clear)
- Review recent events -->
vmware-monitor health events --hours 24 --severity warning — look for repeated events from the same entity (a single event is noise; 50 events in an hour is a pattern)
- List hosts -->
vmware-monitor inventory hosts — flag hosts disconnected, in maintenance mode unexpectedly, or memory > 90%
- If connection fails --> run
vmware-monitor doctor to diagnose config/network issues
Object-Centered Investigation ("what is happening around this VM / host / datastore?")
Judgment: this is the drill-down the operator wants after triage points at a problem — one call correlates the object with its surrounding infrastructure and recent history, so you explain the aggregated result in operational language instead of stitching five tools yourself. The tool aggregates; you never dump raw inventory into the conversation.
Offer the levels progressively — do not ask for details the environment already fixes:
- Start at the top -->
cross_vcenter_attention (CLI: vmware-monitor attention) for "what needs attention now?" across every vCenter. If only one vCenter is configured, skip straight to its cluster_health_summary — no need to ask which target
- Offer to drill into an object the top-issues list points at. Ask which level only when it is genuinely ambiguous:
- a VM -->
vm_investigation_bundle (CLI: vmware-monitor investigate vm <name>) → VM state, recent events, snapshots, alarms & recent changes, the host it runs on, the cluster context, the datastores backing it, performance signals, and a correlated event timeline
- a host -->
host_investigation_bundle (CLI: investigate host <name>) → host state, cluster context, the VMs it runs, mounted datastores, alarms, performance, correlated timeline
- a datastore -->
datastore_investigation_bundle (CLI: investigate datastore <name>) → capacity/free, mounting hosts, VMs it backs, alarms, correlated timeline
- Widen or narrow on request -->
--hours 72 for a longer event window; the bundle ends with a hint listing what is adjustable
- Make it tangible --> add
--html to any investigate/attention command for a self-contained offline snapshot (drill-down sections collapse/expand natively, no JS, nothing uploaded) written to ~/vmware-health/
- If the object name is unknown --> the tool returns a teaching error naming exactly how to list the objects (
list_virtual_machines / list_esxi_hosts / list_all_datastores); get the exact name and retry
- If a vCenter is unreachable (attention only) --> it is listed under
unreachable with a reason and the rest still aggregate — surface the gap, don't fail the whole view
Performance Triage ("the cluster feels slow")
Judgment: inventory shows configured capacity (cores, GB); it cannot tell you what is actually hot. Use the real-time perf tools, then narrow.
- Rank hosts -->
vmware-monitor perf hosts — the busiest host floats to the top (sorted by CPU%)
- Rank VMs on the suspect -->
vmware-monitor perf vms --limit 25 — find the noisy neighbour
- Check for hidden storage pressure -->
vmware-monitor capacity datastores — over-commit % > 100 means a thin datastore can fill mid-run even with "free" space showing
- Rule out snapshot drag -->
vmware-monitor snapshots aging --only-old — old snapshots silently degrade I/O
- If perf tools return empty --> the host/VM may be disconnected or powered off (no real-time provider); confirm with
inventory hosts / inventory vms
Scheduled-Outage Pre-flight (certs, licenses, time)
- Cert expiry -->
vmware-monitor infra certs --warn-days 60 — an expired ESXi cert drops host management
- License headroom -->
vmware-monitor infra licenses — catch over-allocation before it disables features
- Time sync -->
vmware-monitor infra ntp — healthy: no breaks SSO/Kerberos/log correlation (note: live offset is not exposed by the SOAP API, only config health)
Set Up Continuous Monitoring
- Configure webhook in
~/.vmware-monitor/config.yaml
- Start daemon -->
vmware-monitor daemon start
- Daemon scans every 15 min, sends alerts to Slack/Discord
Usage Mode
| Scenario |
Recommended |
Why |
| Local/small models (Ollama, Qwen) |
CLI |
~2K tokens vs ~8K for MCP |
| Cloud models (Claude, GPT-4o) |
Either |
MCP gives structured JSON I/O |
| Automated pipelines |
MCP |
Type-safe parameters, structured output |
MCP Tools (32 — all read-only)
| Tool |
Description |
list_virtual_machines |
List VMs with filtering (power state, sort, limit, folder_filter); each VM includes folder_path |
list_esxi_hosts |
ESXi hosts with CPU, memory, version, uptime |
list_all_datastores |
Datastores with capacity, free space, type |
list_all_clusters |
Clusters with host count, DRS/HA status |
cluster_health_summary |
One-glance triage across all clusters — ranked top_issues focus list + per-cluster rollup with opinionated status. Params: cluster_filter, include_vms, top_n. Render per references/health-summary-template.md |
vm_investigation_bundle |
"What is happening around this VM?" — correlated drill-down with a merged, newest-first event timeline (contents listed in the workflow above). Params: vm_name, hours. Aggregated in the tool; explain, don't dump raw |
host_investigation_bundle |
Same correlated drill-down around an ESXi host. Params: host_name, hours |
datastore_investigation_bundle |
Same correlated drill-down around a datastore. Params: datastore_name, hours |
cross_vcenter_attention |
"What needs attention now?" across every configured vCenter — one globally-ranked top_issues list (each tagged with its vcenter) + per-target rollup; unreachable targets degrade gracefully. Params: cluster_filter, top_n |
list_all_networks |
Networks with attached VM count and accessibility |
get_alarms |
Active alarms: suggested_actions, acknowledger, condition_now (cleared = stale) |
get_events |
Events by severity and time window (start/end) |
get_host_sensors |
Hardware sensor status (temperature/voltage/fan) per host with green/yellow/red health |
get_host_services |
Host service status (running state and startup policy), optionally filtered by host |
vm_info |
Detailed VM info (CPU, memory, disks, NICs, snapshots) |
vm_list_snapshots |
Snapshot list for one VM with nesting hierarchy (read-only) |
host_performance |
Real-time host CPU/mem/disk/net utilisation (PerfManager); busiest first |
vm_performance |
Real-time VM CPU/mem/disk/net utilisation (top 25 by default); powered-on only |
snapshot_aging |
Inventory-wide snapshot sweep with age + sprawl; flags snapshots older than N days |
vm_backup_snapshot_history |
Backup windows for one VM from snapshot task history; a lower bound, not job duration |
certificate_status |
Per-host ESXi management certificate expiry (days until expiry, expiring flag) |
license_status |
Licenses and per-asset assignments |
ntp_status |
Per-host NTP config health (servers + ntpd state); live offset not in SOAP API |
datastore_capacity |
Datastore over-commit (provisioned vs capacity); thin-provisioning risk |
resource_pool_usage |
Resource-pool CPU/memory reservation, limit, and current usage |
active_tasks |
In-flight (and recently completed) vCenter tasks with progress/errors |
active_sessions |
Who is logged in, and from which client |
host_log_scan |
ESXi host log trouble lines, grouped by pattern (CLI: scan logs) |
host_memory_tiering |
vSphere 9.1 — per-host memory tiering (DRAM/NVMe tiers) + NVMe uplift ratio (pyVmomi hardware.memoryTierInfo, needs ESXi 8.0U3+). Params: host_name, limit. Returns the list envelope |
cluster_patch_compliance |
vSphere 9.1 — vLCM software (patch) compliance for one cluster over vSphere Automation REST. Param: cluster (MoID, e.g. domain-c123). available:false = vCenter answered 503 (likely mid-patch), not an error; non_compliant_hosts is null when the host-status field is unknown, never a false 0 |
cluster_last_apply_result |
vSphere 9.1 — result of the last vLCM remediation (apply) on one cluster (REST). Param: cluster (MoID). Reports outcome only; never runs a remediation |
vcenter_deployment_size |
vSphere 9.1 — vCenter appliance deployment size class (REST, NEW in 9.1). available:false on 503 |
vSphere 9.1 field-parse honesty: the 3 REST tools' endpoints are spec-verified, but their JSON field names have NOT yet been replayed against a live 9.1 vCenter — every field is read defensively and each result self-labels via its note (endpoint verified; field parse best-effort pending live 9.1 vCenter). host_memory_tiering requires vCenter/ESXi 8.0U3+; older targets raise a teaching error naming the missing property.
No tool modifies, creates, or deletes any vCenter/ESXi resource.
Performance/capacity readings are point-in-time samples — this skill retains no
history, so it never reports a fabricated "trend" or runway date.
List result shape
The 21 row-listing tools above (including host_memory_tiering) return the family list envelope
{items, returned, limit, total, truncated, hint}, not a bare array. Read
truncated before summarising: true means more rows exist — never call
items the whole picture; false means complete, so empty items means
"checked, found none" — for host_log_scan, only if logs_unavailable
(logs it could not read) is empty too. A null total
(get_events, host_log_scan) is deliberate. Aggregate tools return
purpose-built objects — see references/capabilities.md.
Read-Only by Design
All 32 tools are vSphere reads (local writes: see top). Running
with local or small models? See
references/agent-guardrails.md.
CLI Quick Reference
vmware-monitor summary [--top 10] [--cluster <substr>] [--html] [--target <t>]
vmware-monitor inventory vms|hosts|datastores|clusters|networks [--target <t>]
vmware-monitor health alarms|events|sensors|services [--target <t>]
vmware-monitor perf hosts|vms [--target <t>]
vmware-monitor capacity datastores|pools [--target <t>]
vmware-monitor infra certs|licenses|ntp [--target <t>]
vmware-monitor snapshots aging [--only-old] [--target <t>]
vmware-monitor vm info <vm-name> [--target <t>]
vmware-monitor memory tiering [--host <esxi>] [--target <t>] # vSphere 9.1
vmware-monitor patch compliance|last-apply <cluster-moid> [--target <t>] # vSphere 9.1 (vLCM)
vmware-monitor deployment-size [--target <t>] # vSphere 9.1
vmware-monitor scan now | scan logs [--host <name>] | daemon start|stop|status | doctor [--skip-auth]
Full CLI reference (all flags + activity/tasks/sessions): see references/cli-reference.md
Troubleshooting
Alarms returns empty but vCenter shows alarms
The get_alarms tool queries triggered alarms at the root folder level. Some alarms are entity-specific — try checking events instead: get_events --hours 1 --severity info.
"Connection refused" error
- Run
vmware-monitor doctor to diagnose
- Verify target hostname/IP and port (443) in config.yaml
- For self-signed certs: set
verify_ssl: false
Events returns too many results
Use severity filter: --severity warning (default) filters out info-level events. Use --hours 4 to narrow time range.
VM info shows "guest_os: unknown"
VMware Tools not installed or not running in the guest. Install/start VMware Tools for guest OS detection, IP address, and guest family info.
Doctor passes but commands fail with timeout
vCenter may be under heavy load. Try targeting a specific ESXi host directly instead of vCenter, or increase connection timeout in config.yaml.
Should I set environment: on a read-only skill?
You can — add environment: production (or staging, lab, your own label)
to each target in ~/.vmware-monitor/config.yaml. It's an optional label; this
skill has zero write tools, so nothing it exposes is ever gated by it — reads
are never gated. It matters for the write skills (vmware-aiops,
vmware-storage, vmware-nsx) pointed at the same vCenter: an
environment-scoped deny rule in ~/.vmware/rules.yaml can match on the label
to block their writes (e.g. freeze production). A target with no label is
simply not matched by such a rule. Config example: references/setup-guide.md.
Setup
uv tool install vmware-monitor==1.12.0
vmware-monitor init # guided: prompts for host/user/password, writes config + .env (chmod 600), then verifies
init stores the password grep-safe (obfuscated b64:, never plaintext) and
locks .env to 0600. Prefer it over hand-editing; manual steps:
references/setup-guide.md.
Full setup guide, security details, and AI platform compatibility: see references/setup-guide.md
Audit & Safety
MCP tool calls are audited via vmware-policy (@vmware_tool); CLI commands append to ~/.vmware-monitor/audit.log:
- Every MCP tool call logged to
~/.vmware/audit.db (SQLite)
- Policy rules enforced via
~/.vmware/rules.yaml (deny rules, maintenance windows, risk levels)
- Risk classification: each tool tagged as low/medium/high/critical
- View recent operations:
vmware-audit log --last 20
- View denied operations:
vmware-audit log --status denied
License
MIT — github.com/vmware-skills/VMware-Monitor
1---2name: vmware-monitor3description: Use this skill for safe, read-only queries of VMware infrastructure — no destructive operations exist in the codebase; a test enforces it. Directly handles: a one-glance cross-cluster health summary, object-centered VM/host/datastore investigation drill-downs (correlating surrounding infrastructure + recent events), a cross-vCenter "what needs attention now?" rollup, list VMs/hosts/datastores/clusters, active alarms, recent events, VM details. Always use vmware-monitor when the user asks to "list VMs", "check vSphere alarms", "show host status", "is anything on fire", "what needs attention now", "what is happening around this VM/host/datastore", "investigate this VM" — or needs read-only VMware info before making changes. Do NOT use for any write operations — this skill is read-only and has no code path that creates, modifies, or deletes a vSphere resource. For VM modifications use vmware-aiops, for networking use vmware-nsx, for metrics/capacity use vmware-aria. For load balancing/AVI/AKO use vmware-avi.4---56# VMware Monitor (Read-Only)78> **Disclaimer**: This is a community-maintained open-source project and is **not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc.** "VMware" and "vSphere" are trademarks of Broadcom. Source code is publicly auditable at [github.com/vmware-skills/VMware-Monitor](https://github.com/vmware-skills/VMware-Monitor) under the MIT license.910Read-only VMware vCenter/ESXi monitoring — 32 MCP tools, zero destructive code.1112> **Read-only toward vSphere**: no code path changes vCenter/ESXi state — no power, create, delete, snapshot, or reconfigure call exists. On vCenter it opens only its login session and short-lived query handles it releases. Gate: [`tests/eval/regression/test_read_only_enforcement.py`](https://github.com/vmware-skills/VMware-Monitor/blob/main/tests/eval/regression/test_read_only_enforcement.py) (source repo, not this bundle) requires every vSphere method called to be on a reviewed allowlist, checked against pyVmomi's type metadata. It checks source, not runtime, and no CI runs it. Independent of this code: use a dedicated account with vCenter's Read-Only role.13> **Local writes** (this machine only): `init` writes `~/.vmware-monitor/config.yaml` and `.env` (0600; plaintext passwords are rewritten as `b64:` on load); audit logs `~/.vmware/audit.db` (MCP) and `~/.vmware-monitor/audit.log` (CLI); `--html` snapshots in `~/vmware-health/`; after `daemon start` only, `scan.log`, `daemon.pid` and opt-in webhook posts.14> **Companion skills**: [vmware-aiops](https://github.com/vmware-skills/VMware-AIops) (VM lifecycle), [vmware-storage](https://github.com/vmware-skills/VMware-Storage) (iSCSI/vSAN), [vmware-vks](https://github.com/vmware-skills/VMware-VKS) (Tanzu Kubernetes), [vmware-nsx](https://github.com/vmware-skills/VMware-NSX) (NSX networking), [vmware-nsx-security](https://github.com/vmware-skills/VMware-NSX-Security) (DFW/firewall), [vmware-aria](https://github.com/vmware-skills/VMware-Aria) (metrics/alerts/capacity), [vmware-avi](https://github.com/vmware-skills/VMware-AVI) (AVI/ALB/AKO), [vmware-harden](https://github.com/vmware-skills/VMware-Harden) (compliance baselines).15> | [vmware-pilot](../vmware-pilot/SKILL.md) (workflow orchestration) | [vmware-policy](../vmware-policy/SKILL.md) (audit/policy)1617## What This Skill Does1819| Category | Capabilities |20|----------|-------------|21| **Cluster Triage** | One-glance `cluster_health_summary` — cross-cluster Problems/Capacity/Health rollup with an opinionated status; customizable view |22| **Object Investigation** | "What is happening around this VM / host / datastore?" — one correlated drill-down bundle per object, plus `cross_vcenter_attention` — one ranked "what needs attention now?" list across every configured vCenter |23| **Inventory** | List VMs, ESXi hosts, datastores, clusters, networks |24| **Health** | Active alarms, recent events (filter by severity/time), hardware sensors, host services |25| **Performance** | Real-time host & VM CPU/memory/disk/network utilisation (PerfManager) |26| **Capacity** | Datastore thin-provisioning over-commit, resource-pool reservation/usage |27| **Infra Health** | ESXi certificate expiry, license usage/expiry, NTP configuration health |28| **Snapshots** | Inventory-wide snapshot aging & sprawl (flag old snapshots) |29| **Activity** | In-flight tasks, active login sessions |30| **VM Details** | CPU, memory, disks, NICs, snapshots, guest OS, IP |31| **Scanning** | Scheduled alarm/log scanning with Slack/Discord webhooks |32| **vSphere 9.1** | Host memory tiering (DRAM/NVMe uplift), vLCM cluster patch compliance & last-apply result, vCenter deployment size |3334## Quick Install3536```bash37uv tool install vmware-monitor==1.12.038vmware-monitor doctor39```4041## When to Use This Skill4243- List or search VMs, hosts, datastores, clusters44- Check active alarms or recent events45- Get detailed info about a specific VM46- Set up scheduled monitoring with webhook alerts47- Any read-only VMware query where safety is paramount4849### Alarm/Event Output: `suggested_actions` Field5051`get_alarms` and `get_events` results include a `suggested_actions` list. Each52item is a ready-to-use hint naming the correct companion skill and tool call53(e.g. `"vmware-aiops: acknowledge_vcenter_alarm(entity_name=..., alarm_name=...)"`),54so agents — especially smaller local models — can follow them directly without55reasoning about skill routing. Example payload: `references/capabilities.md`.5657**Use companion skills for**:58- Power on/off, deploy, clone, migrate --> `vmware-aiops`59- iSCSI, vSAN, datastore management --> `vmware-storage`60- Tanzu Kubernetes clusters --> `vmware-vks`61- Load balancing, AVI/ALB, AKO, Ingress --> `vmware-avi`6263## Related Skills — Skill Routing6465| User Intent | Recommended Skill |66|-------------|------------------|67| Read-only vSphere monitoring | **vmware-monitor** ← this skill |68| Storage: iSCSI, vSAN, datastores | **vmware-storage** |69| VM lifecycle, deployment, guest ops | **vmware-aiops** |70| Tanzu Kubernetes (vSphere 8.x+) | **vmware-vks** |71| NSX networking: segments, gateways, NAT | **vmware-nsx** |72| NSX security: DFW rules, security groups | **vmware-nsx-security** |73| Aria Ops: metrics, alerts, capacity planning | **vmware-aria** |74| Multi-step workflows with approval | **vmware-pilot** |75| Compliance baselines (CIS / 等保 / PCI-DSS), drift detection, LLM remediation advisor | **vmware-harden** (`uv tool install vmware-harden`) |76| Load balancer, AVI, ALB, AKO, Ingress | **vmware-avi** (`uv tool install vmware-avi`) |77| Audit log query | **vmware-policy** (`vmware-audit` CLI) |7879## Common Workflows8081> **Diagnostic investigations**: Before running any "why is X failing / down / abnormal" workflow, follow [`references/investigation-protocol.md`](references/investigation-protocol.md). It enforces the four root-cause completeness criteria (falsifiability / sufficiency / necessity / mechanism) and the up-to-three-rounds deepening loop. Since vmware-monitor is read-only, it serves as the data source — actuation belongs to companion skills like vmware-aiops.8283### Cluster Health Check ("is anything on fire?" / "what's wrong right now?")8485**Judgment**: this is the 5-second triage glance, not an Aria replacement. One call rolls every cluster's hosts, VM power, live CPU/memory and alarms up, flattens the individual anomalies into a ranked **top-N focus list** (`top_issues`), and gives each cluster an opinionated `status`. On a big fleet, lead with the focus list — scanning per-cluster rows is too slow.86871. One glance --> `vmware-monitor summary` (MCP: `cluster_health_summary`). Read `top_issues` first (worst first, each with a drill-down `next step`); the per-cluster table is context. `issues_total` shows how many anomalies existed before the top-N cap882. Tighten or widen the focus --> `--top 5` for the 5 most urgent, `--top 20` for more, `--top 0` to hide the list and just see the table893. Drill into what the list points at --> e.g. a `host_down` row → `inventory hosts`; an `alarm` row → `get_alarms`; a `capacity` row → `perf hosts` / `capacity datastores`; scope with `--cluster prod-a`904. Reshape the view on request --> the output ends with a friendly hint; the operator can say "add datastore free space", "drop the DRS column", "only show clusters needing attention", or "save this as an HTML page". Default layout, columns, and thresholds live in [`references/health-summary-template.md`](references/health-summary-template.md) and are meant to be edited915. Save an offline snapshot --> `vmware-monitor summary --html` writes a self-contained HTML file (no external assets, nothing uploaded) to `~/vmware-health/cluster-health-<vc>-<timestamp>.html`; `--html-path <file>` for an explicit path. The timestamped filename means a folder of them becomes a browsable point-in-time history. It is a snapshot, not a live page — re-run to refresh926. **On a very large fleet** --> add `--no-vms` to skip the VM rollup pass when you only need host/alarm/capacity signals937. **`totals.clusters` is 0** --> not empty: un-clustered hosts (standalone ESXi, or a cluster-less vCenter) form the `(standalone hosts)` row, still in `totals` and `top_issues`9495### Daily Health Check9697**Judgment**: alarms tell you what vCenter has decided is wrong, events tell you what happened. They diverge — an event burst with no alarms often signals a metric threshold miscalibration, not "everything is fine." Read both.98991. Check alarms --> `vmware-monitor health alarms --target prod-vcenter` — focus on Red severity AND alarms older than 1 hour (transient ones self-clear)1002. Review recent events --> `vmware-monitor health events --hours 24 --severity warning` — look for repeated events from the same entity (a single event is noise; 50 events in an hour is a pattern)1013. List hosts --> `vmware-monitor inventory hosts` — flag hosts disconnected, in maintenance mode unexpectedly, or memory > 90%1024. **If connection fails** --> run `vmware-monitor doctor` to diagnose config/network issues103104### Object-Centered Investigation ("what is happening around this VM / host / datastore?")105106**Judgment**: this is the drill-down the operator wants after triage points at a problem — one call *correlates* the object with its surrounding infrastructure and recent history, so you explain the aggregated result in operational language instead of stitching five tools yourself. The tool aggregates; you never dump raw inventory into the conversation.107108Offer the levels progressively — do **not** ask for details the environment already fixes:1091. **Start at the top** --> `cross_vcenter_attention` (CLI: `vmware-monitor attention`) for "what needs attention now?" across every vCenter. If only one vCenter is configured, skip straight to its `cluster_health_summary` — no need to ask which target1102. **Offer to drill into an object** the top-issues list points at. Ask *which level* only when it is genuinely ambiguous:111 - a VM --> `vm_investigation_bundle` (CLI: `vmware-monitor investigate vm <name>`) → VM state, recent events, snapshots, alarms & recent changes, the host it runs on, the cluster context, the datastores backing it, performance signals, and a correlated event timeline112 - a host --> `host_investigation_bundle` (CLI: `investigate host <name>`) → host state, cluster context, the VMs it runs, mounted datastores, alarms, performance, correlated timeline113 - a datastore --> `datastore_investigation_bundle` (CLI: `investigate datastore <name>`) → capacity/free, mounting hosts, VMs it backs, alarms, correlated timeline1143. **Widen or narrow** on request --> `--hours 72` for a longer event window; the bundle ends with a hint listing what is adjustable1154. **Make it tangible** --> add `--html` to any `investigate`/`attention` command for a self-contained offline snapshot (drill-down sections collapse/expand natively, no JS, nothing uploaded) written to `~/vmware-health/`1165. **If the object name is unknown** --> the tool returns a *teaching* error naming exactly how to list the objects (`list_virtual_machines` / `list_esxi_hosts` / `list_all_datastores`); get the exact name and retry1176. **If a vCenter is unreachable** (attention only) --> it is listed under `unreachable` with a reason and the rest still aggregate — surface the gap, don't fail the whole view118119### Performance Triage ("the cluster feels slow")120**Judgment**: inventory shows *configured* capacity (cores, GB); it cannot tell you what is actually hot. Use the real-time perf tools, then narrow.1211. Rank hosts --> `vmware-monitor perf hosts` — the busiest host floats to the top (sorted by CPU%)1222. Rank VMs on the suspect --> `vmware-monitor perf vms --limit 25` — find the noisy neighbour1233. Check for hidden storage pressure --> `vmware-monitor capacity datastores` — over-commit % > 100 means a thin datastore can fill mid-run even with "free" space showing1244. Rule out snapshot drag --> `vmware-monitor snapshots aging --only-old` — old snapshots silently degrade I/O1255. **If perf tools return empty** --> the host/VM may be disconnected or powered off (no real-time provider); confirm with `inventory hosts` / `inventory vms`126127### Scheduled-Outage Pre-flight (certs, licenses, time)1281. Cert expiry --> `vmware-monitor infra certs --warn-days 60` — an expired ESXi cert drops host management1292. License headroom --> `vmware-monitor infra licenses` — catch over-allocation before it disables features1303. Time sync --> `vmware-monitor infra ntp` — `healthy: no` breaks SSO/Kerberos/log correlation (note: live offset is not exposed by the SOAP API, only config health)131132### Set Up Continuous Monitoring1331. Configure webhook in `~/.vmware-monitor/config.yaml`1342. Start daemon --> `vmware-monitor daemon start`1353. Daemon scans every 15 min, sends alerts to Slack/Discord136137## Usage Mode138139| Scenario | Recommended | Why |140|----------|:-----------:|-----|141| Local/small models (Ollama, Qwen) | **CLI** | ~2K tokens vs ~8K for MCP |142| Cloud models (Claude, GPT-4o) | Either | MCP gives structured JSON I/O |143| Automated pipelines | **MCP** | Type-safe parameters, structured output |144145## MCP Tools (32 — all read-only)146147| Tool | Description |148|------|------------|149| `list_virtual_machines` | List VMs with filtering (power state, sort, limit, `folder_filter`); each VM includes `folder_path` |150| `list_esxi_hosts` | ESXi hosts with CPU, memory, version, uptime |151| `list_all_datastores` | Datastores with capacity, free space, type |152| `list_all_clusters` | Clusters with host count, DRS/HA status |153| `cluster_health_summary` | One-glance triage across all clusters — ranked `top_issues` focus list + per-cluster rollup with opinionated `status`. Params: `cluster_filter`, `include_vms`, `top_n`. Render per `references/health-summary-template.md` |154| `vm_investigation_bundle` | "What is happening around this VM?" — correlated drill-down with a merged, newest-first **event timeline** (contents listed in the workflow above). Params: `vm_name`, `hours`. Aggregated in the tool; explain, don't dump raw |155| `host_investigation_bundle` | Same correlated drill-down around an ESXi host. Params: `host_name`, `hours` |156| `datastore_investigation_bundle` | Same correlated drill-down around a datastore. Params: `datastore_name`, `hours` |157| `cross_vcenter_attention` | "What needs attention now?" across **every** configured vCenter — one globally-ranked `top_issues` list (each tagged with its `vcenter`) + per-target rollup; unreachable targets degrade gracefully. Params: `cluster_filter`, `top_n` |158| `list_all_networks` | Networks with attached VM count and accessibility |159| `get_alarms` | Active alarms: `suggested_actions`, acknowledger, `condition_now` (`cleared` = stale) |160| `get_events` | Events by severity and time window (`start`/`end`) |161| `get_host_sensors` | Hardware sensor status (temperature/voltage/fan) per host with green/yellow/red health |162| `get_host_services` | Host service status (running state and startup policy), optionally filtered by host |163| `vm_info` | Detailed VM info (CPU, memory, disks, NICs, snapshots) |164| `vm_list_snapshots` | Snapshot list for one VM with nesting hierarchy (read-only) |165| `host_performance` | **Real-time** host CPU/mem/disk/net utilisation (PerfManager); busiest first |166| `vm_performance` | **Real-time** VM CPU/mem/disk/net utilisation (top 25 by default); powered-on only |167| `snapshot_aging` | Inventory-wide snapshot sweep with age + sprawl; flags snapshots older than N days |168| `vm_backup_snapshot_history` | Backup windows for one VM from snapshot task history; a lower bound, not job duration |169| `certificate_status` | Per-host ESXi management certificate expiry (days until expiry, expiring flag) |170| `license_status` | Licenses and per-asset `assignments` |171| `ntp_status` | Per-host NTP config health (servers + ntpd state); live offset not in SOAP API |172| `datastore_capacity` | Datastore over-commit (provisioned vs capacity); thin-provisioning risk |173| `resource_pool_usage` | Resource-pool CPU/memory reservation, limit, and current usage |174| `active_tasks` | In-flight (and recently completed) vCenter tasks with progress/errors |175| `active_sessions` | Who is logged in, and from which client |176| `host_log_scan` | ESXi host log trouble lines, grouped by pattern (CLI: `scan logs`) |177| `host_memory_tiering` | **vSphere 9.1** — per-host memory tiering (DRAM/NVMe tiers) + NVMe uplift ratio (pyVmomi `hardware.memoryTierInfo`, needs ESXi 8.0U3+). Params: `host_name`, `limit`. Returns the list envelope |178| `cluster_patch_compliance` | **vSphere 9.1** — vLCM software (patch) compliance for one cluster over vSphere Automation REST. Param: `cluster` (MoID, e.g. `domain-c123`). `available:false` = vCenter answered 503 (likely mid-patch), not an error; `non_compliant_hosts` is `null` when the host-status field is unknown, never a false 0 |179| `cluster_last_apply_result` | **vSphere 9.1** — result of the last vLCM remediation (apply) on one cluster (REST). Param: `cluster` (MoID). Reports outcome only; never runs a remediation |180| `vcenter_deployment_size` | **vSphere 9.1** — vCenter appliance deployment size class (REST, NEW in 9.1). `available:false` on 503 |181182> **vSphere 9.1 field-parse honesty**: the 3 REST tools' *endpoints* are spec-verified, but their JSON field names have NOT yet been replayed against a live 9.1 vCenter — every field is read defensively and each result self-labels via its `note` (`endpoint verified; field parse best-effort pending live 9.1 vCenter`). `host_memory_tiering` requires vCenter/ESXi 8.0U3+; older targets raise a teaching error naming the missing property.183184No tool modifies, creates, or deletes any vCenter/ESXi resource.185Performance/capacity readings are point-in-time samples — this skill retains no186history, so it never reports a fabricated "trend" or runway date.187188### List result shape189190The 21 row-listing tools above (including `host_memory_tiering`) return the family list envelope191`{items, returned, limit, total, truncated, hint}`, not a bare array. Read192`truncated` before summarising: `true` means more rows exist — never call193`items` the whole picture; `false` means complete, so empty `items` means194"checked, found none" — for `host_log_scan`, only if `logs_unavailable`195(logs it could not read) is empty too. A `null` `total`196(`get_events`, `host_log_scan`) is deliberate. Aggregate tools return197purpose-built objects — see `references/capabilities.md`.198199## Read-Only by Design200201All 32 tools are vSphere reads (local writes: see top). Running202with local or small models? See203[`references/agent-guardrails.md`](references/agent-guardrails.md).204205## CLI Quick Reference206207```bash208vmware-monitor summary [--top 10] [--cluster <substr>] [--html] [--target <t>]209vmware-monitor inventory vms|hosts|datastores|clusters|networks [--target <t>]210vmware-monitor health alarms|events|sensors|services [--target <t>]211vmware-monitor perf hosts|vms [--target <t>]212vmware-monitor capacity datastores|pools [--target <t>]213vmware-monitor infra certs|licenses|ntp [--target <t>]214vmware-monitor snapshots aging [--only-old] [--target <t>]215vmware-monitor vm info <vm-name> [--target <t>]216vmware-monitor memory tiering [--host <esxi>] [--target <t>] # vSphere 9.1217vmware-monitor patch compliance|last-apply <cluster-moid> [--target <t>] # vSphere 9.1 (vLCM)218vmware-monitor deployment-size [--target <t>] # vSphere 9.1219vmware-monitor scan now | scan logs [--host <name>] | daemon start|stop|status | doctor [--skip-auth]220```221222> Full CLI reference (all flags + activity/tasks/sessions): see `references/cli-reference.md`223224## Troubleshooting225226### Alarms returns empty but vCenter shows alarms227The `get_alarms` tool queries triggered alarms at the root folder level. Some alarms are entity-specific — try checking events instead: `get_events --hours 1 --severity info`.228229### "Connection refused" error2301. Run `vmware-monitor doctor` to diagnose2312. Verify target hostname/IP and port (443) in config.yaml2323. For self-signed certs: set `verify_ssl: false`233234### Events returns too many results235Use severity filter: `--severity warning` (default) filters out info-level events. Use `--hours 4` to narrow time range.236237### VM info shows "guest_os: unknown"238VMware Tools not installed or not running in the guest. Install/start VMware Tools for guest OS detection, IP address, and guest family info.239240### Doctor passes but commands fail with timeout241vCenter may be under heavy load. Try targeting a specific ESXi host directly instead of vCenter, or increase connection timeout in config.yaml.242243### Should I set `environment:` on a read-only skill?244You can — add `environment: production` (or `staging`, `lab`, your own label)245to each target in `~/.vmware-monitor/config.yaml`. It's an optional label; this246skill has zero write tools, so nothing it exposes is ever gated by it — reads247are never gated. It matters for the write skills (`vmware-aiops`,248`vmware-storage`, `vmware-nsx`) pointed at the same vCenter: an249environment-scoped `deny` rule in `~/.vmware/rules.yaml` can match on the label250to block their writes (e.g. freeze `production`). A target with no label is251simply not matched by such a rule. Config example: `references/setup-guide.md`.252253## Setup254255```bash256uv tool install vmware-monitor==1.12.0257vmware-monitor init # guided: prompts for host/user/password, writes config + .env (chmod 600), then verifies258```259260`init` stores the password grep-safe (obfuscated `b64:`, never plaintext) and261locks `.env` to 0600. Prefer it over hand-editing; manual steps:262`references/setup-guide.md`.263264> Full setup guide, security details, and AI platform compatibility: see `references/setup-guide.md`265266## Audit & Safety267268MCP tool calls are audited via vmware-policy (`@vmware_tool`); CLI commands append to `~/.vmware-monitor/audit.log`:269- Every MCP tool call logged to `~/.vmware/audit.db` (SQLite)270- Policy rules enforced via `~/.vmware/rules.yaml` (deny rules, maintenance windows, risk levels)271- Risk classification: each tool tagged as low/medium/high/critical272- View recent operations: `vmware-audit log --last 20`273- View denied operations: `vmware-audit log --status denied`274275## License276277MIT — [github.com/vmware-skills/VMware-Monitor](https://github.com/vmware-skills/VMware-Monitor)