Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
studenttmb opened this issue Jan 20, 2021 · 6 comments
Labels

Comments

@studenttmb
Copy link

studenttmb commented Jan 20, 2021

Есть 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

@studenttmb studenttmb changed the title Template Windows HyperV Host: Hyper-V VM Discovery Hyper-V VM Discovery ошибка Template Windows HyperV Host: Hyper-V VM Discovery ошибка Jan 20, 2021
@studenttmb studenttmb changed the title Template Windows HyperV Host: Hyper-V VM Discovery ошибка Template Windows HyperV Host: Hyper-V VM Discovery проблема обнаружения Jan 20, 2021
@ameiji
Copy link
Collaborator

ameiji commented Jan 20, 2021

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

@studenttmb
Copy link
Author

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

@ameiji
Copy link
Collaborator

ameiji commented Jan 20, 2021

@studenttmb
Copy link
Author

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

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

@a-schild
Copy link
Owner

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
Copy link

NGC2068 commented Apr 10, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants