So trying to get a WMI Monitor to work based of a query. This query works from the server itself via powershell so I know the query is valid. I am also testing directly from the Solarwinds Server.
Select FreeSpace From Win32_LogicalDisk Where NAME='Z:' | ForEach-Object {[math]::truncate($_.freespace / 1GB)}
I thought maybe it was the conversion I was doing at the end of the query that might be the issue so I removed it yet it still fails upon test.
Select FreeSpace From Win32_LogicalDisk Where NAME='Z:'
Any thoughts? This query is perfect from the server side because it gives me in either GB or MB depending on the modifier the exact amount of space available for a mount point.