slug: vmware-monitor
version: 1.7.7
displayName: "VMware Monitor"
name: vmware-monitor
description: >
Use this skill for safe, risk-free queries of VMware infrastructure — code-level enforced safety means no destructive operations exist in the codebase.
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 code-level read-only and cannot modify, create, or delete any 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.
installer:
kind: uv
package: vmware-monitor
allowed-tools:
- Bash
metadata: {"openclaw":{"requires":{"env":["VMWARE_MONITOR_CONFIG"],"bins":["vmware-monitor"],"config":["~/.vmware-monitor/config.yaml","~/.vmware-monitor/.env"]},"optional":{"env":["VMWARE_TARGET_PASSWORD","SLACK_WEBHOOK_URL","DISCORD_WEBHOOK_URL"],"bins":["vmware-policy"]},"primaryEnv":"VMWARE_MONITOR_CONFIG","homepage":"https://github.com/zw008/VMware-Monitor","emoji":"📊","os":["macos","linux"]}}
compatibility: >
vmware-policy auto-installed as Python dependency (provides @vmware_tool decorator and audit logging). All operations audited to ~/.vmware/audit.db.
Credentials: Each vCenter/ESXi target requires a per-target password env var in ~/.vmware-monitor/.env following the pattern VMWARE_
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/zw008/VMware-Monitor under the MIT license.
Read-only VMware vCenter/ESXi monitoring — 27 MCP tools, zero destructive code.
Code-level safety: This skill contains NO power, create, delete, snapshot, or modify operations. Not disabled — they don't exist in the codebase. 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)
All 27 tools are read-only.
| 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 (state + host/cluster/datastore context + snapshots + alarms + performance + a merged event timeline), 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 |
uv tool install vmware-monitor
vmware-monitor doctor
suggested_actions Fieldget_alarms and get_events results include a suggested_actions list.
Each item is a ready-to-use hint pointing to the correct companion skill and tool:
{
"alarm_name": "VM CPU Ready High",
"entity_name": "prod-db-01",
"suggested_actions": [
"vmware-aiops: acknowledge_vcenter_alarm(entity_name='prod-db-01', alarm_name='VM CPU Ready High')",
"vmware-aiops: reset_vcenter_alarm(entity_name='prod-db-01', alarm_name='VM CPU Ready High')"
]
}
AI agents (especially smaller local models) can read these hints directly to determine which skill and tool to call next, without needing to reason about skill routing themselves.
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
| User Intent | Recommended Skill |
|---|---|
| Read-only vSphere monitoring, zero risk | 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) |
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.
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.
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--top 5 for the 5 most urgent, --top 20 for more, --top 0 to hide the list and just see the tablehost_down row → inventory hosts; an alarm row → get_alarms; a capacity row → perf hosts / capacity datastores; scope with --cluster prod-areferences/health-summary-template.md and are meant to be editedvmware-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 refresh7w4.net小葱技能站收录全网优质技能,值得收藏。
--no-vms to skip the VM rollup pass when you only need host/alarm/capacity signalsinventory hosts + health alarms insteadJudgment: 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.
vmware-monitor health alarms --target prod-vcenter — focus on Red severity AND alarms older than 1 hour (transient ones self-clear)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)vmware-monitor inventory hosts — flag hosts disconnected, in maintenance mode unexpectedly, or memory > 90%vmware-monitor doctor to diagnose config/network issuesJudgment: 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:
1. 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
2. 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
3. Widen or narrow on request --> --hours 72 for a longer event window; the bundle ends with a hint listing what is adjustable
4. 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/
5. If the object name is unknown --> the tool returns a teaching error naming exactly how to list the objects (list_vms / list_esxi_hosts / list_all_datastores); get the exact name and retry
6. 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
Judgment: inventory shows configured capacity (cores, GB); it cannot tell you what is actually hot. Use the real-time perf tools, then narrow.
1. Rank hosts --> vmware-monitor perf hosts — the busiest host floats to the top (sorted by CPU%)
2. Rank VMs on the suspect --> vmware-monitor perf vms --limit 25 — find the noisy neighbour
3. 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
4. Rule out snapshot drag --> vmware-monitor snapshots aging --only-old — old snapshots silently degrade I/O
5. If perf tools return empty --> the host/VM may be disconnected or powered off (no real-time provider); confirm with inventory hosts / inventory vms
vmware-monitor infra certs --warn-days 60 — an expired ESXi cert drops host managementvmware-monitor infra licenses — catch over-allocation before it disables featuresvmware-monitor infra ntp — healthy: no breaks SSO/Kerberos/log correlation (note: live offset is not exposed by the SOAP API, only config health)~/.vmware-monitor/config.yamlvmware-monitor daemon start| 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 |
| Tool | Description |
|---|---|
list_virtual_machines |
List VMs with filtering (power state, sort, limit, folder_filter for case-insensitive folder-tree search); 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 (top-N anomalies, worst first, with drill-down hints) + per-cluster rollup with opinionated status (ok/warn/critical). Params: cluster_filter, include_vms, top_n. Render as a table or HTML; see references/health-summary-template.md |
vm_investigation_bundle |
"What is happening around this VM?" — correlated drill-down: VM state + host/cluster/datastore context + snapshots + alarms (all scopes) + live performance + a merged, newest-first event timeline across the VM/host/cluster/datastore. Params: vm_name, hours. Aggregated in the tool; explain, don't dump raw |
host_investigation_bundle |
"What is happening around this ESXi host?" — host state + cluster context + VM rollup + mounted datastores + alarms + performance + correlated event timeline. Params: host_name, hours |
datastore_investigation_bundle |
"What is happening around this datastore?" — capacity/free + mounting hosts + VM rollup + alarms + correlated event timeline. 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 |
All active/triggered alarms — includes suggested_actions remediation hints |
get_events |
Recent events filtered by severity and time — includes suggested_actions hints |
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 |
certificate_status |
Per-host ESXi management certificate expiry (days until expiry, expiring flag) |
license_status |
vCenter/ESXi license inventory with used/total and expiration |
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 |
Currently authenticated vCenter/ESXi sessions (who is logged in) |
host_log_scan |
Scan recent ESXi host syslog (hostd/vmkernel/vpxa) for error/warning patterns; returns only matching lines, optionally filtered to one host |
All tools are read-only. No tool can modify, create, or delete any resource. Performance/capacity readings are point-in-time samples — this skill retains no history, so it never reports a fabricated "trend" or runway date.
vmware-monitor summary [--top 10] [--cluster <substr>] [--no-vms] [--html | --html-path <f>] [--target <t>]
vmware-monitor inventory vms [--target <t>] [--limit 20] [--power-state poweredOn]
vmware-monitor inventory hosts [--target <t>]
vmware-monitor inventory datastores [--target <t>]
vmware-monitor inventory clusters [--target <t>]
vmware-monitor inventory networks [--target <t>]
vmware-monitor health alarms [--target <t>]
vmware-monitor health events [--hours 24] [--severity warning]
vmware-monitor health sensors [--target <t>]
vmware-monitor health services [--host <esxi>] [--target <t>]
vmware-monitor perf hosts [--host <esxi>] [--target <t>]
vmware-monitor perf vms [--vm <name>] [--limit 25] [--target <t>]
vmware-monitor capacity datastores [--target <t>]
vmware-monitor capacity pools [--target <t>]
vmware-monitor infra certs [--warn-days 30] [--target <t>]
vmware-monitor infra licenses [--target <t>]
vmware-monitor infra ntp [--host <esxi>] [--target <t>]
vmware-monitor snapshots aging [--threshold 30] [--only-old] [--target <t>]
vmware-monitor activity tasks [--active-only] [--target <t>]
vmware-monitor activity sessions [--target <t>]
vmware-monitor vm info <vm-name> [--target <t>]
vmware-monitor scan now [--target <t>]
vmware-monitor daemon start|stop|status
vmware-monitor doctor [--skip-auth]
Full CLI reference: see
references/cli-reference.md
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.
vmware-monitor doctor to diagnosedisableSslCertValidation: trueUse severity filter: --severity warning (default) filters out info-level events. Use --hours 4 to narrow time range.
VMware Tools not installed or not running in the guest. Install/start VMware Tools for guest OS detection, IP address, and guest family info.
vCenter may be under heavy load. Try targeting a specific ESXi host directly instead of vCenter, or increase connection timeout in config.yaml.
uv tool install vmware-monitor
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 alternative:
mkdir -p ~/.vmware-monitor
cp config.example.yaml ~/.vmware-monitor/config.yaml
cp .env.example ~/.vmware-monitor/.env && chmod 600 ~/.vmware-monitor/.env
# Edit config.yaml (targets) and .env (passwords), then: vmware-monitor doctor
All tools are automatically audited via vmware-policy. Audit logs:
vmware-audit log --last 20Full setup guide, security details, and AI platform compatibility: see
references/setup-guide.md
All operations are automatically audited via vmware-policy (@vmware_tool decorator):
- Every tool call logged to ~/.vmware/audit.db (SQLite, framework-agnostic)
- 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
vmware-policy is automatically installed as a dependency — no manual setup needed.
这个 Skill 质量很高,文档写得非常详细全面,对新手友好。它专注于只读查询,操作安全——代码层面没有任何写操作,不用担心误删或误改。功能覆盖很广,从集群健康检查、虚拟机详情到性能监控都能做,还能生成 HTML 报告方便分享。唯一的不足是测试用例太少(只有3个),另外对密码安全的说明有些技术细节埋得太深,一般用户可能没注意到"混淆不等于加密"这个警告。总体来说非常值得推荐。