Query the cluster which node runs vmid X

mo_

Renowned Member
Oct 27, 2011
401
9
83
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##"