vasmarfas / Zabbix-LibreHardwareMonitor-agent

Zabbix template, a powershell script for sending values from Libre Hardware Monitor (Open Hardware Monitor) to the server using Zabbix Agent 2 (active)
1 stars 0 forks source link

PowerShell script fails with "Cannot index into a null array" #1

Open SmartSmartoff opened 3 days ago

SmartSmartoff commented 3 days ago

PowerShell script does not work... "Не удаётся индексировать в массив NULL" "Cannot index into a null array"

$jsonData = & curl -Uri 'http://localhost:8085/data.json' | Select-Object -Expand Content & curl -Uri 'http://localhost:8085/data.json' | Select-Object -Expand Content > out.json

vasmarfas commented 3 days ago

Copy all content from http://localhost:8085/data.json,paste it to pastebin and send here. I dare say that you did not edit script/template as a wrote in the bottom of readme