Hi.
I have proxmox's server, so i want to monitor vm.
In proxmox server, i run command: qm list
in /etc/zabbix/scripts/ i have vm_memory.sh, when i run this script the result is:
it's all VMID of my virtual machine. This is ok.
in zabbix_agentd.conf - proxmox server the last line :
when run command in cli: qm list | grep 1 | cut -c 44-47
vm 100 use 100 mb ram, vm 101 use 101 mb ram, ...vm 111 use 1111 ram.
Let's go to zabbix server.
Create new discovery rule
create new item prototypes:
Next, go to Configuration > hosts(proxmox) > Items :
there is 5 result. but
this messages is for all my vm...
Where is my error in configuration?
I have proxmox's server, so i want to monitor vm.
In proxmox server, i run command: qm list
VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
100 kali stopped 100 12.00 0
101 kali2 stopped 101 12.00 0
...
100 kali stopped 100 12.00 0
101 kali2 stopped 101 12.00 0
...
{
"data":[
{"{#VMID}":"100"}
,{"{#VMID}":"101"}
,{"{#VMID}":"103"}
,{"{#VMID}":"108"}
,{"{#VMID}":"111"}
]
}
"data":[
{"{#VMID}":"100"}
,{"{#VMID}":"101"}
,{"{#VMID}":"103"}
,{"{#VMID}":"108"}
,{"{#VMID}":"111"}
]
}
in zabbix_agentd.conf - proxmox server the last line :
UserParameter=vm.memory.usage[*],qm list | grep 1 | cut -c 44-47
UserParameter=discovery.vm, /etc/zabbix/scripts/vm_memory.sh
UserParameter=discovery.vm, /etc/zabbix/scripts/vm_memory.sh
100
101
103
1000
1111
101
103
1000
1111
Let's go to zabbix server.
Create new discovery rule
key:discovery.vm
key: vm.memory.usage[{#VMID}]
Type of information: Numeric
Data type: Decimal
Type of information: Numeric
Data type: Decimal
there is 5 result. but
Received value [100 101 103 1000 1111] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
Where is my error in configuration?
Comment