VMware Monitor (Read-Only)
Safe, read-only VMware vCenter and ESXi monitoring skill. Query your entire VMware infrastructure using natural language through any AI coding assistant — without risk of accidental modifications.
Code-level safety: This is an independent repository (zw008/VMware-Monitor). No destructive code paths exist — no power off, delete, create, reconfigure, snapshot-create/revert/delete, clone, or migrate functions are present in the codebase. For full operations, use the separate VMware-AIops repo. Install: clawhub install vmware-aiops
When to Use This Skill
- Query VM, host, datastore, cluster, and network inventory
- Check health status, active alarms, hardware sensors, and event logs
- View VM details and existing snapshot lists (read-only)
- Run scheduled log scanning with webhook notifications (Slack, Discord)
- You need zero-risk monitoring — no accidental power-off, delete, or reconfigure possible
Quick Install
Works with Claude Code, Cursor, Codex, Gemini CLI, Trae, Kimi, and 30+ AI agents:
# Via ClawHub (recommended)
clawhub install vmware-monitor
# Via Skills.sh
npx skills add zw008/VMware-Monitor
Claude Code
/plugin marketplace add zw008/VMware-Monitor
/plugin install vmware-monitor
/vmware-monitor:vmware-monitor
Usage Mode: MCP First, CLI Fallback
Default: MCP mode — vmware-monitor runs as an MCP Server registered in Claude Code. All monitoring queries go through MCP tool calls directly, no manual CLI needed.
Fallback: CLI mode — only when MCP connection fails (server crash, config error, etc.), switch to CLI commands via vmware-monitor in the terminal.
MCP Tools (7 tools, all read-only)
| MCP Tool |
Description |
Equivalent CLI |
list_virtual_machines |
List all VMs |
vmware-monitor inventory vms |
list_esxi_hosts |
List ESXi hosts |
vmware-monitor inventory hosts |
list_all_datastores |
List datastores |
vmware-monitor inventory datastores |
list_all_clusters |
List clusters |
vmware-monitor inventory clusters |
get_alarms |
Active alarms |
vmware-monitor health alarms |
get_events |
Recent events |
vmware-monitor health events |
vm_info |
VM details |
vmware-monitor vm info <name> |
All tools accept optional target parameter (e.g., "home-esxi", "prod-vcenter").
MCP Setup (Claude Code)
Add to ~/.claude/settings.json:
{
"mcpServers": {
"vmware-monitor": {
"command": "/path/to/VMware-Monitor/.venv/bin/python",
"args": ["-m", "mcp_server"],
"cwd": "/path/to/VMware-Monitor",
"env": {
"VMWARE_MONITOR_CONFIG": "~/.vmware-monitor/config.yaml"
}
}
}
}
When to Fall Back to CLI
- MCP server fails to start or crashes mid-session
- Need daemon/scan features not exposed via MCP (
scan now, daemon start)
- Debugging connection issues (CLI gives more verbose output)
# Activate venv and run CLI
source /path/to/VMware-Monitor/.venv/bin/activate
vmware-monitor inventory vms --target home-esxi
Architecture
User (Natural Language)
↓
AI CLI Tool (Claude Code / Gemini / Codex / Aider / Continue / Trae / Kimi)
↓
├─ MCP mode (default): MCP Server (stdio) ──→ pyVmomi ──→ vSphere API
│
└─ CLI fallback: vmware-monitor CLI ──→ pyVmomi ──→ vSphere API
↓
vCenter Server ──→ ESXi Clusters ──→ VMs
or
ESXi Standalone ──→ VMs
First Interaction: Environment Selection
When the user starts a conversation, always ask first:
- Which environment do they want to monitor? (vCenter Server or standalone ESXi host)
- Which target from their config? (e.g.,
prod-vcenter, lab-esxi)
- If no config exists yet, guide them through creating
~/.vmware-monitor/config.yaml
Capabilities (Read-Only)
1. Inventory
| Feature |
vCenter |
ESXi |
Details |
| List VMs |
✅ |
✅ |
Name, power state, CPU, memory, guest OS, IP |
| List Hosts |
✅ |
⚠️ Self only |
CPU cores, memory, ESXi version, VM count, uptime |
| List Datastores |
✅ |
✅ |
Capacity, free/used, type (VMFS/NFS), usage % |
| List Clusters |
✅ |
❌ |
Host count, DRS/HA status |
| List Networks |
✅ |
✅ |
Network name, associated VM count |
2. Health & Monitoring
| Feature |
vCenter |
ESXi |
Details |
| Active Alarms |
✅ |
✅ |
Severity, alarm name, entity, timestamp |
| Event/Log Query |
✅ |
✅ |
Filter by time range, severity; 50+ event types |
| Hardware Sensors |
✅ |
✅ |
Temperature, voltage, fan status |
| Host Services |
✅ |
✅ |
hostd, vpxa running/stopped status |
Monitored Event Types:
| Category |
Events |
| VM Failures |
VmFailedToPowerOnEvent, VmDiskFailedEvent, VmFailoverFailed |
| Host Issues |
HostConnectionLostEvent, HostShutdownEvent, HostIpChangedEvent |
| Storage |
DatastoreCapacityIncreasedEvent, SCSI high latency |
| HA/DRS |
DasHostFailedEvent, DrsVmMigratedEvent, DrsSoftRuleViolationEvent |
| Auth |
UserLoginSessionEvent, BadUsernameSessionEvent |
3. VM Info & Snapshot List (Read-Only)
| Feature |
Details |
| VM Info |
Name, power state, guest OS, CPU, memory, IP, VMware Tools, disks, NICs |
| Snapshot List |
List existing snapshots with name and creation time (no create/revert/delete) |
4. Scheduled Scanning & Notifications
| Feature |
Details |
| Daemon |
APScheduler-based, configurable interval (default 15 min) |
| Multi-target Scan |
Sequentially scan all configured vCenter/ESXi targets |
| Scan Content |
Alarms + Events + Host logs (hostd, vmkernel, vpxd) |
| Log Analysis |
Regex pattern matching: error, fail, critical, panic, timeout |
| Webhook |
Slack, Discord, or any HTTP endpoint |
FORBIDDEN Operations — DO NOT EXIST IN CODEBASE
These operations cannot be performed with this skill — zero destructive code paths exist:
- ❌
vm power-on/off, vm reset, vm suspend
- ❌
vm create/delete/reconfigure
- ❌
vm snapshot-create/revert/delete
- ❌
vm clone/migrate
Direct users to VMware-AIops (clawhub install vmware-aiops) for these.
Safety Features
| Feature |
Details |
| Code-Level Isolation |
Independent repository — zero destructive functions in codebase |
| Audit Trail |
All queries logged to ~/.vmware-monitor/audit.log (JSONL) |
| Password Protection |
.env file loading with permission check (warn if not 600) |
| SSL Self-signed Support |
disableSslCertValidation for ESXi 8.0 self-signed certs |
Version Compatibility
| vSphere Version |
Support |
Notes |
| 8.0 / 8.0U1-U3 |
✅ Full |
pyVmomi 8.0.3+ |
| 7.0 / 7.0U1-U3 |
✅ Full |
All read-only APIs supported |
| 6.7 |
✅ Compatible |
Backward-compatible, tested |
| 6.5 |
✅ Compatible |
Backward-compatible, tested |
pyVmomi auto-negotiates the API version during SOAP handshake — no manual configuration needed.
Supported AI Platforms
| Platform |
Status |
Config File |
| Claude Code |
✅ Native Skill |
plugins/.../SKILL.md |
| Gemini CLI |
✅ Extension |
gemini-extension/GEMINI.md |
| OpenAI Codex CLI |
✅ Skill + AGENTS.md |
codex-skill/AGENTS.md |
| Aider |
✅ Conventions |
codex-skill/AGENTS.md |
| Continue CLI |
✅ Rules |
codex-skill/AGENTS.md |
| Trae IDE |
✅ Rules |
trae-rules/project_rules.md |
| Kimi Code CLI |
✅ Skill |
kimi-skill/SKILL.md |
| MCP Server |
✅ MCP Protocol |
mcp_server/ |
| Python CLI |
✅ Standalone |
N/A |
CLI Reference
# Inventory
vmware-monitor inventory vms [--target <name>]
vmware-monitor inventory hosts [--target <name>]
vmware-monitor inventory datastores [--target <name>]
vmware-monitor inventory clusters [--target <name>]
# Health
vmware-monitor health alarms [--target <name>]
vmware-monitor health events [--hours 24] [--severity warning]
# VM Info (read-only)
vmware-monitor vm info <vm-name>
vmware-monitor vm snapshot-list <vm-name>
# Scanning & Daemon
vmware-monitor scan now [--target <name>]
vmware-monitor daemon start
vmware-monitor daemon stop
vmware-monitor daemon status
Setup
# 1. Install via uv (recommended) or pip
uv tool install vmware-monitor
# Or: pip install vmware-monitor
# 2. Configure
mkdir -p ~/.vmware-monitor
vmware-monitor init # generates config.yaml and .env templates
chmod 600 ~/.vmware-monitor/.env
# Edit ~/.vmware-monitor/config.yaml and .env with your target details
Development Install
git clone https://github.com/zw008/VMware-Monitor.git
cd VMware-Monitor
uv venv && source .venv/bin/activate
uv pip install -e .
License
MIT
1---
2name: vmware-monitor
3description: >
4 VMware vCenter/ESXi read-only monitoring skill. Code-level enforced safety —
5 no destructive operations exist in this codebase. Query inventory, check
6 health/alarms/events, view VM info and snapshots, scan logs.
7installer:
8 kind: uv
9 package: vmware-monitor
10metadata:
11 source: https://skillmd.com/skills/modbender/vmware-monitor
12---
13
14# VMware Monitor (Read-Only)
15
16Safe, read-only VMware vCenter and ESXi monitoring skill. Query your entire VMware infrastructure using natural language through any AI coding assistant — without risk of accidental modifications.
17
18> **Code-level safety**: This is an independent repository (`zw008/VMware-Monitor`). No destructive code paths exist — no power off, delete, create, reconfigure, snapshot-create/revert/delete, clone, or migrate functions are present in the codebase. For full operations, use the separate [VMware-AIops](https://github.com/zw008/VMware-AIops) repo. Install: `clawhub install vmware-aiops`
19
20## When to Use This Skill
21
22- Query VM, host, datastore, cluster, and network inventory
23- Check health status, active alarms, hardware sensors, and event logs
24- View VM details and existing snapshot lists (read-only)
25- Run scheduled log scanning with webhook notifications (Slack, Discord)
26- **You need zero-risk monitoring** — no accidental power-off, delete, or reconfigure possible
27
28## Quick Install
29
30Works with Claude Code, Cursor, Codex, Gemini CLI, Trae, Kimi, and 30+ AI agents:
31
32```bash
33# Via ClawHub (recommended)
34clawhub install vmware-monitor
35
36# Via Skills.sh
37npx skills add zw008/VMware-Monitor
38```
39
40### Claude Code
41
42```
43/plugin marketplace add zw008/VMware-Monitor
44/plugin install vmware-monitor
45/vmware-monitor:vmware-monitor
46```
47
48## Usage Mode: MCP First, CLI Fallback
49
50**Default: MCP mode** — vmware-monitor runs as an MCP Server registered in Claude Code. All monitoring queries go through MCP tool calls directly, no manual CLI needed.
51
52**Fallback: CLI mode** — only when MCP connection fails (server crash, config error, etc.), switch to CLI commands via `vmware-monitor` in the terminal.
53
54### MCP Tools (7 tools, all read-only)
55
56| MCP Tool | Description | Equivalent CLI |
57|----------|-------------|----------------|
58| `list_virtual_machines` | List all VMs | `vmware-monitor inventory vms` |
59| `list_esxi_hosts` | List ESXi hosts | `vmware-monitor inventory hosts` |
60| `list_all_datastores` | List datastores | `vmware-monitor inventory datastores` |
61| `list_all_clusters` | List clusters | `vmware-monitor inventory clusters` |
62| `get_alarms` | Active alarms | `vmware-monitor health alarms` |
63| `get_events` | Recent events | `vmware-monitor health events` |
64| `vm_info` | VM details | `vmware-monitor vm info <name>` |
65
66All tools accept optional `target` parameter (e.g., `"home-esxi"`, `"prod-vcenter"`).
67
68### MCP Setup (Claude Code)
69
70Add to `~/.claude/settings.json`:
71
72```json
73{
74 "mcpServers": {
75 "vmware-monitor": {
76 "command": "/path/to/VMware-Monitor/.venv/bin/python",
77 "args": ["-m", "mcp_server"],
78 "cwd": "/path/to/VMware-Monitor",
79 "env": {
80 "VMWARE_MONITOR_CONFIG": "~/.vmware-monitor/config.yaml"
81 }
82 }
83 }
84}
85```
86
87### When to Fall Back to CLI
88
89- MCP server fails to start or crashes mid-session
90- Need daemon/scan features not exposed via MCP (`scan now`, `daemon start`)
91- Debugging connection issues (CLI gives more verbose output)
92
93```bash
94# Activate venv and run CLI
95source /path/to/VMware-Monitor/.venv/bin/activate
96vmware-monitor inventory vms --target home-esxi
97```
98
99## Architecture
100
101```
102User (Natural Language)
103 ↓
104AI CLI Tool (Claude Code / Gemini / Codex / Aider / Continue / Trae / Kimi)
105 ↓
106 ├─ MCP mode (default): MCP Server (stdio) ──→ pyVmomi ──→ vSphere API
107 │
108 └─ CLI fallback: vmware-monitor CLI ──→ pyVmomi ──→ vSphere API
109 ↓
110vCenter Server ──→ ESXi Clusters ──→ VMs
111 or
112ESXi Standalone ──→ VMs
113```
114
115## First Interaction: Environment Selection
116
117When the user starts a conversation, **always ask first**:
118
1191. **Which environment** do they want to monitor? (vCenter Server or standalone ESXi host)
1202. **Which target** from their config? (e.g., `prod-vcenter`, `lab-esxi`)
1213. If no config exists yet, guide them through creating `~/.vmware-monitor/config.yaml`
122
123## Capabilities (Read-Only)
124
125### 1. Inventory
126
127| Feature | vCenter | ESXi | Details |
128|---------|:-------:|:----:|---------|
129| List VMs | ✅ | ✅ | Name, power state, CPU, memory, guest OS, IP |
130| List Hosts | ✅ | ⚠️ Self only | CPU cores, memory, ESXi version, VM count, uptime |
131| List Datastores | ✅ | ✅ | Capacity, free/used, type (VMFS/NFS), usage % |
132| List Clusters | ✅ | ❌ | Host count, DRS/HA status |
133| List Networks | ✅ | ✅ | Network name, associated VM count |
134
135### 2. Health & Monitoring
136
137| Feature | vCenter | ESXi | Details |
138|---------|:-------:|:----:|---------|
139| Active Alarms | ✅ | ✅ | Severity, alarm name, entity, timestamp |
140| Event/Log Query | ✅ | ✅ | Filter by time range, severity; 50+ event types |
141| Hardware Sensors | ✅ | ✅ | Temperature, voltage, fan status |
142| Host Services | ✅ | ✅ | hostd, vpxa running/stopped status |
143
144**Monitored Event Types:**
145
146| Category | Events |
147|----------|--------|
148| VM Failures | `VmFailedToPowerOnEvent`, `VmDiskFailedEvent`, `VmFailoverFailed` |
149| Host Issues | `HostConnectionLostEvent`, `HostShutdownEvent`, `HostIpChangedEvent` |
150| Storage | `DatastoreCapacityIncreasedEvent`, SCSI high latency |
151| HA/DRS | `DasHostFailedEvent`, `DrsVmMigratedEvent`, `DrsSoftRuleViolationEvent` |
152| Auth | `UserLoginSessionEvent`, `BadUsernameSessionEvent` |
153
154### 3. VM Info & Snapshot List (Read-Only)
155
156| Feature | Details |
157|---------|---------|
158| VM Info | Name, power state, guest OS, CPU, memory, IP, VMware Tools, disks, NICs |
159| Snapshot List | List existing snapshots with name and creation time (no create/revert/delete) |
160
161### 4. Scheduled Scanning & Notifications
162
163| Feature | Details |
164|---------|---------|
165| Daemon | APScheduler-based, configurable interval (default 15 min) |
166| Multi-target Scan | Sequentially scan all configured vCenter/ESXi targets |
167| Scan Content | Alarms + Events + Host logs (hostd, vmkernel, vpxd) |
168| Log Analysis | Regex pattern matching: error, fail, critical, panic, timeout |
169| Webhook | Slack, Discord, or any HTTP endpoint |
170
171## FORBIDDEN Operations — DO NOT EXIST IN CODEBASE
172
173These operations **cannot** be performed with this skill — zero destructive code paths exist:
174
175- ❌ `vm power-on/off`, `vm reset`, `vm suspend`
176- ❌ `vm create/delete/reconfigure`
177- ❌ `vm snapshot-create/revert/delete`
178- ❌ `vm clone/migrate`
179
180Direct users to **VMware-AIops** (`clawhub install vmware-aiops`) for these.
181
182## Safety Features
183
184| Feature | Details |
185|---------|---------|
186| Code-Level Isolation | Independent repository — zero destructive functions in codebase |
187| Audit Trail | All queries logged to `~/.vmware-monitor/audit.log` (JSONL) |
188| Password Protection | `.env` file loading with permission check (warn if not 600) |
189| SSL Self-signed Support | `disableSslCertValidation` for ESXi 8.0 self-signed certs |
190
191## Version Compatibility
192
193| vSphere Version | Support | Notes |
194|----------------|---------|-------|
195| 8.0 / 8.0U1-U3 | ✅ Full | pyVmomi 8.0.3+ |
196| 7.0 / 7.0U1-U3 | ✅ Full | All read-only APIs supported |
197| 6.7 | ✅ Compatible | Backward-compatible, tested |
198| 6.5 | ✅ Compatible | Backward-compatible, tested |
199
200> pyVmomi auto-negotiates the API version during SOAP handshake — no manual configuration needed.
201
202## Supported AI Platforms
203
204| Platform | Status | Config File |
205|----------|--------|-------------|
206| Claude Code | ✅ Native Skill | `plugins/.../SKILL.md` |
207| Gemini CLI | ✅ Extension | `gemini-extension/GEMINI.md` |
208| OpenAI Codex CLI | ✅ Skill + AGENTS.md | `codex-skill/AGENTS.md` |
209| Aider | ✅ Conventions | `codex-skill/AGENTS.md` |
210| Continue CLI | ✅ Rules | `codex-skill/AGENTS.md` |
211| Trae IDE | ✅ Rules | `trae-rules/project_rules.md` |
212| Kimi Code CLI | ✅ Skill | `kimi-skill/SKILL.md` |
213| MCP Server | ✅ MCP Protocol | `mcp_server/` |
214| Python CLI | ✅ Standalone | N/A |
215
216## CLI Reference
217
218```bash
219# Inventory
220vmware-monitor inventory vms [--target <name>]
221vmware-monitor inventory hosts [--target <name>]
222vmware-monitor inventory datastores [--target <name>]
223vmware-monitor inventory clusters [--target <name>]
224
225# Health
226vmware-monitor health alarms [--target <name>]
227vmware-monitor health events [--hours 24] [--severity warning]
228
229# VM Info (read-only)
230vmware-monitor vm info <vm-name>
231vmware-monitor vm snapshot-list <vm-name>
232
233# Scanning & Daemon
234vmware-monitor scan now [--target <name>]
235vmware-monitor daemon start
236vmware-monitor daemon stop
237vmware-monitor daemon status
238```
239
240## Setup
241
242```bash
243# 1. Install via uv (recommended) or pip
244uv tool install vmware-monitor
245# Or: pip install vmware-monitor
246
247# 2. Configure
248mkdir -p ~/.vmware-monitor
249vmware-monitor init # generates config.yaml and .env templates
250chmod 600 ~/.vmware-monitor/.env
251# Edit ~/.vmware-monitor/config.yaml and .env with your target details
252```
253
254### Development Install
255
256```bash
257git clone https://github.com/zw008/VMware-Monitor.git
258cd VMware-Monitor
259uv venv && source .venv/bin/activate
260uv pip install -e .
261```
262
263## License
264
265MIT