I'm trying to monitor drives that are SQL cluster, as these drives change their drive letters as they fail over between clusters I'm using a wmi query to monitor them by LogicalName.
I'm using to items one monitoring the size of the drive and one to monitor free space. I also need to monitor free space by percent.
Here are the keys for the wmi.get items
Free space
wmi.get[root\cimv2,SELECT FreeSpace FROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data']
Size
wmi.get[root\cimv2,SELECT SizeFROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data']
A test Formula I'm using in my calculated item is
last(wmi.get[root\cimv2,SELECT FreeSpace FROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data'])
This is just returning a not supported status with cannot evaluate function.
I think it might be the extra single quotes (') in the wheres statement as this is the only thing that is different.
Has anyone else been able to run calculated values off wmi.get values?
I'm using to items one monitoring the size of the drive and one to monitor free space. I also need to monitor free space by percent.
Here are the keys for the wmi.get items
Free space
wmi.get[root\cimv2,SELECT FreeSpace FROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data']
Size
wmi.get[root\cimv2,SELECT SizeFROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data']
A test Formula I'm using in my calculated item is
last(wmi.get[root\cimv2,SELECT FreeSpace FROM Win32_LogicalDisk where VolumeName = 'FSSQL01Data'])
This is just returning a not supported status with cannot evaluate function.
I think it might be the extra single quotes (') in the wheres statement as this is the only thing that is different.
Has anyone else been able to run calculated values off wmi.get values?
Comment