TECHZEN Zenoss User Community ARCHIVE  

performance query for multiple drives giving same value

Subject: performance query for multiple drives giving same value
Author: Gary Samek
Posted: 2018-06-12 10:11

Hello all,

I am using a performance query to pull the free mb for the drives on one server.  The problem is that the return set has the same value for all drives and times.  Below is an example of a json query block that I use...

{ "start" : 1528002000000,
"end" : 1528088399000,
"series" : "true",
"downsample" : "10m-avg",
"tags" : {},
"returnset" : "EXACT",
"metrics" :
[
{ "aggregator":"avg",
"id":"<device name>:C",
"metric":"<device name>/FreeMegabytes_FreeMegabytes",
"tags":{ "key" : ["<device name>/os/filesystems/C"]},
"name":"FreeMegabytes"
},
{ "aggregator":"avg",
"id":"<device name>:D",
"metric":"<device name>/FreeMegabytes_FreeMegabytes",
"tags":{ "key" : ["Devices/<device name>/os/filesystems/D"]},
"name":"FreeMegabytes"
}
]
}

This will return the same value for all timestamps.  But unexpectedly it returns that same value for all the drives.  If I run them separately in2 different queries, i get different results for the different drives.

------------------------------
Gary Samek
------------------------------


< Previous
How to get Dynamic View to work in Zenoss RM 4.2.5 Enterprise
  Next
Zenpack to monitor UPS Device via CS1x1 SNMP/Web Adapter
>