dnaeon / py-vpoller

Distributed vSphere API Proxy
Other
83 stars 31 forks source link

Problem while creating VM with characters"(" #266

Open respection opened 5 years ago

respection commented 5 years ago

Hello,

I have installed vconnector and vpoller.

This are versions of programs: vconnector-cli --version : 0.5.3 vpoller-worker --version: 0.7.3 python --version : Python 3.4.3

all works, but LLD can't create zabbix VMs, when the VM's name contains the characters "(" or ")".

the issue is in that vpoller operates by the names of the VMs not their UUID. Could somebody help to change it?

The names of my VMs contains such characters because we use vCloud Director.

The other way to solve the problem is to teach Zabbix to cut the UUID from the name, but I didn't find the way how to do it.

jungkung6 commented 5 years ago

I have so many VMs contain space and they have this issue too.

k05054 commented 2 years ago

I managed to resolve this by work with templates in zabbix5 Changed a virtual machine discovery proptotype: 1 In Host i'm providing instanceUUID 2 In HOST.NAME i'm providing desired name for the host. 3 In macroses i added a macro {$VMNAME} = {#VSPHERE.VM.NAME} Then i changed template for VM's In every key i changed {HOST.HOST}/{HOST.NAME} to {$VMNAME} Hope it works for someone