For those having issues with zpool pool stats. Here's what I've used for the last 24 hours.
@Nemos, I'm having success using this code from sniffdog.
Zpool24hour.ps1 pool
try
{
$Zpool_Request = Invoke-WebRequest "
http://www.zpool.ca/api/status" -UseBasicParsing | ConvertFrom-Json
}
catch
{
return
}
I am not entirely sure what this code does: -Headers @{"Cache-Control"="no-cache"} since I am not that familiar with scripting but I do understand some of it.