@cryptotaxi247 / netdata-1 / commits / b4fdb9658

proxmox VMs are now named qemu_XXXX to allow the dashboard categorize them properly

Costa Tsaousis (ktsaou) committed Jul 2, 2017 at 20:49 UTC b4fdb9658e7f1aee3b0a450cb34b94515989a71f
1 file changed +1 -1
plugins.d/cgroup-name.sh
+1 -1
@@ -133,7 +133,7 @@ if [ -z "${NAME}" ]
133 FILENAME="/etc/pve/qemu-server/${BASH_REMATCH[1]}.conf"
134 if [[ -f $FILENAME && -r $FILENAME ]]
135 then
136 - NAME=$(grep -e '^name: ' /etc/pve/qemu-server/${BASH_REMATCH[1]}.conf | head -1 | sed -rn 's|\s*name\s*:\s*(.*)?$|\1|p')
136 + NAME="qemu_$(grep -e '^name: ' "/etc/pve/qemu-server/${BASH_REMATCH[1]}.conf" | head -1 | sed -rn 's|\s*name\s*:\s*(.*)?$|\1|p')"
137 else
138 error "proxmox config file missing ${FILENAME} or netdata does not have read access. Please ensure netdata is a member of www-data group."
139 fi