Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1097

TALES expression for Device Name in legend of a component multi-graph report

$
0
0

I have created a multi-graph report with collection items which are OSprocesses (component instances on a device). And with a graph definition with the ps_cpu datapoint.

 

By default, the legend for that datapoint is:  "${here/name | here/id} ${graphPoint/id}", which when I view the report results in the component name (the name of the process) and the datapoint name.  For example: "syslog cpu" 

 

When I set the graph group to combine all devices on a single graph, they all have the same legend: "syslog cpu"; I can't tell which device that legend entry (color) belongs to.

 

In zendmd, I can see that a process (p=dev.os.process()[10]), does have the "device" method from which I can get the device id (p.device().id).

 

However, I can't seem to nail the syntax to do this in TALES:

 

${here/device} results in: "<device at {name}>"

 

but

 

${here/device/id}, ${here/device().id), ${here/device()/id}, all fail with "tales expression error".

 



Help!?!?!?

TIA!

Richard Evans


Viewing all articles
Browse latest Browse all 1097

Trending Articles