I am creating a new Template Page and would like to display the
value of "ssCpuRawIdle-raw:MAX". This is the graph point
"ssCpuRawIdle max" that I can usually see in the CPU performance
graph of a give device. Do you know which TAL expression I can use
in my Template Page to get the value?
You would use the following of course you'd replace the square
brackets with angled ones.
[tal:block tal:define="maxCpuRawIdle
python:here.getRRDValue('ssCpuRawIdle', None, None, 'MAXIMUM');"]
[tal:block tal:content="maxCpuRawIdle"/]
[/tal:block]
Of course you don't have to use the tal:blocks if you have other
structural elements that you can stick the definition and usage of the
defined value on. The parameters to getRRDValue are dsname, start
time, end time, and consolidation function. You can find the source
for this method in $ZENHOME/Products/ZenModel/RRDView.py which all
managed entities (devices and device components) inherit from.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users