VirtualMachine and Service monitor for vSphere (VMware ESXi Cluster)
git clone https://github.com/BlueT/vMonitor.git
cd vMonitor
npm install
cp config.json.example config.json
# Edit config.json
Download vsphere-1.x.x-src.tgz from https://labs.vmware.com/flings/vsphere-sdk-for-javascript (for example vsphere-1.1.0-src.tgz)
Save in vendor/vsphere-sdk/, extract it and install.
mkdir -p vendor/vsphere-sdk/
cd vendor/vsphere-sdk/
# download vsphere-1.x.x-src.tgz and save here
tar zxvf vsphere-1.1.0-src.tgz
npm install
# Go back to project folder
cd ../../
# Prepare data folder
mkdir ./rethinkdb-data
# Start RethinkDB in docker
docker run --name rethinkdb -v "$PWD/rethinkdb-data:/data" -d rethinkdb
npm start
List all instance ID
Get VM instance info
Change state (Boot / Reboot / Shutdown) (Not implement yet)