a-schild / Zabbix-HyperV-Templates

Zabbix Templates and agent script for HyperV monitoring
51 stars 29 forks source link

Error in counter JSON by CPU an NIC #16

Open cmoreno1981 opened 3 years ago

cmoreno1981 commented 3 years ago

Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'Get-Counter : The object does not found in the device On C:\Program Files\Zabbix Agent\scripts\zabbix-vm-perf.ps1: 163 Character: 17

OS Windows Server Datacenter 2016 Server Zabbix 5.2.6

Regards

a-schild commented 6 months ago

Hello, I have received ownership of this repository. Is this issue still valid, and if yes, do you have a solution for it, or more analysis?

If no answer is received by end of march 2024 I will close this issue

NGC2068 commented 4 months ago

Hello, yes this problem is still relevant, I also get the error "Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'Exception calling "Substring" with "2" argument(s): "Index and length must refer to a location within the string. Parameter name: length" At C:\Pro" I am using Windows Server 2016 English version, Zabbix Agent 2 version 6.0.28, server 6.0.28 Thanks for your work!