a-schild / Zabbix-HyperV-Templates

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

Template Windows HyperV Host: Hyper-V VM Discovery проблема обнаружения #14

Open studenttmb opened 3 years ago

studenttmb commented 3 years ago

Есть WinServ2008 R2 на нем стоит Hyper-V (в powershell добавил модуль Get-VM), теперь цепляю шаблон HyperV Host к хосту гипервизора, но в правилах обнаружения hyperv.discovery вот это: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: '"powershell" ?? ???? ????७??? ??? ???譥? ????????, ?ᯮ??塞?? ?ணࠬ??? ??? ?????? 䠩???.' хотя на самом хосте через Get-VM значения получаю ..а к самим хостам гостевых ОС добавил HyperV VM Guest и там тоже тишина, вообще ничего не обнаружил. я новичок в zabbixe, может где-то что-то упускаю, подскажите пожалуйста версия powershell на хосте с гипервизором 5.1 модуль hyperv 2.0.0.0

ameiji commented 3 years ago

Если Windows Server русской версии могуть быть проблемы с именами счётчиков. Попробуйте этот форк, где эта проблема исправлена Этот репозиторий же я более не поддерживаю.

studenttmb commented 3 years ago

ссылка на форк 404-ю ошибку пишет. со счетчиками perf_counter для русской версии я вроде немного разобрался как можно переделать под числовые значения, а вот с этой проблемой что-то никак

ameiji commented 3 years ago

https://github.com/a-schild/Zabbix-HyperV-Templates

studenttmb commented 3 years ago

https://github.com/a-schild/Zabbix-HyperV-Templates

спасибо! буду пробовать этот вариант

a-schild commented 6 months ago

English please

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!