itmicus / zabbix

Zabbix Templates
GNU General Public License v3.0
155 stars 264 forks source link

problem with automatic inventory on windows server 2019 with active agent #51

Open shaiuzi opened 4 years ago

shaiuzi commented 4 years ago

hi ,

template work just fine for windows server 2012-16 on my network. only for 2 windows server 2019 systems , its seems to be a problem with many of the items in this template. latest data show valuses , but automatic inventory fields not fiils up with values.

its show this error when press the unsupported item: Preprocessing failed for: Exception from HRESULT: 0x80240007..At C:\zabbix\scripts\os_windows_active.ps1:163 char:5..+ ...

  1. Failed: cannot extract value from json by path "$.Antivirus": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'Exception from HRESULT: 0x80240007 At C:\zabbix\scripts\os_windows_active.ps1:163 char:5
    • $InstalledUpdates = $UpdateSearcher.QueryHistory(1, $N
shaiuzi commented 4 years ago

item_not_supported

shaiuzi commented 4 years ago

item_not_supported2

zhukovd commented 4 years ago

i have the same problem! Can you help us to solve this problem?

zhukovd commented 4 years ago

Значение не попадает в ожидаемый диапазон.

C:\zAgent\scripts\os_windows_active.ps1:163 знак:5

Не удается найти перегрузку для "op_Subtraction" и количества аргументов: "2".

C:\zAgent\scripts\os_windows_active.ps1:358 знак:9

Невозможно вызвать метод для выражения со значением NULL.

C:\zAgent\scripts\os_windows_active.ps1:367 знак:9

wmorgue commented 3 years ago

Hi @shaiuzi You steel need help with this issue?