Query the cluster which node runs vmid X

mo_

Active Member
Oct 27, 2011
401
6
38
Germany
Hi,

I was wondering whether there was a way (via CLI) to query the cluster about which node is currently running VMID X.

Alternatively is there a folder in the clusterfs structure that I can put files into and they would be distributed to all the other nodes (no HA present)? If so I could maintain a list of all the clusters VMs that way.


The idea behind this is that I would want to run nagios checks on the containers without having to install nrpe into each and every one of them and for that nagios would need a way of knowing where a specific CT is currently running
 
yea that works, ty.

Code:
find /etc/pve/nodes -name *.conf|sed -e "/qemu\-server/d" -e "s#/etc/pve/nodes/##g" -e "s#openvz/##" -e "s#\.conf##"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!