Hi, i saw on release notes that from the latest versions it is possible to monitor VMware via the vCenter SDK, but I cannot find any documentation on it.
thank you
Andrea
Hi Andrea,
It's not in the Admin Guide yet (I've opened a ticket to add it). For now the documentation is the README next to the extension itself: https://github.com/netxms/netxms/blob/stable-6.2/src/agent/extensions/vcenter/README.md
It's not a subagent - it's a Python agent extension (6.2.0 and later) built on pyvmomi. The agent starts the script and keeps it running, and the script polls vCenter (or a standalone ESXi) once a minute. Setup in short:
- Install pyvmomi on the agent host: pip install pyvmomi
- Add the extension block to nxagentd.conf and restart the agent:
*extensions/vcenter
Mode = spawn
Command = /usr/bin/python3 /usr/share/netxms/extensions/vcenter/nxagent-vcenter.py # adjust to where your package installed it
Environment = VC_HOST=vcenter.example.com
Environment = [email protected]
Environment = VC_PASSWORD=secret
- Import the template vmware_vcenter_esxi.json and apply it to the node where that agent runs. It creates DCIs for every VM, host and datastore, with thresholds and alarms. It's in share/netxms/templates on Linux server installs, and also on GitHub: https://github.com/netxms/netxms/blob/stable-6.2/contrib/templates/vmware_vcenter_esxi.json