I have this running for a suite of (legacy) CentOS machines ranging from 5.6 to 6.7 (not my fault. I've just inherited looking after them). I managed to get them all running php 5.3.3 for this to work.
However, the host machines where the discovery script ISN'T working (CentOS 6.8-6.10) have in common versions of xen-hypervisor that is 4.6+ (4.6.3, 4.9.1, 4.9.3) where the output of "xm list -l" is somewhat different.
Which appears to be confusing the script when it is looking to fill the arrays, erroring with:
PHP Notice: Undefined index: name-label in /etc/zabbix/scripts/parse_vm_list_xen.php on line 134
PHP Notice: Undefined index: uuid in /etc/zabbix/scripts/parse_vm_list_xen.php on line 150
PHP Notice: Undefined index: name-label in /etc/zabbix/scripts/parse_vm_list_xen.php on line 149
I have this running for a suite of (legacy) CentOS machines ranging from 5.6 to 6.7 (not my fault. I've just inherited looking after them). I managed to get them all running php 5.3.3 for this to work.
However, the host machines where the discovery script ISN'T working (CentOS 6.8-6.10) have in common versions of xen-hypervisor that is 4.6+ (4.6.3, 4.9.1, 4.9.3) where the output of "xm list -l" is somewhat different.
Which appears to be confusing the script when it is looking to fill the arrays, erroring with:
PHP Notice: Undefined index: name-label in /etc/zabbix/scripts/parse_vm_list_xen.php on line 134
PHP Notice: Undefined index: uuid in /etc/zabbix/scripts/parse_vm_list_xen.php on line 150
PHP Notice: Undefined index: name-label in /etc/zabbix/scripts/parse_vm_list_xen.php on line 149