Discussion:
Tales expression error
Yasha Zislin
2012-01-05 21:10:35 UTC
Permalink
Yasha Zislin [http://community.zenoss.org/people/yzislin] created the discussion

"Tales expression error"

To view the discussion, visit: http://community.zenoss.org/message/63565#63565

--------------------------------------------------------------
I am trying to fix an error which I get on built in graph.
Graph is located in FileSystem (/Server) monitoring template. There is one data source that is used in this graph. It's usedBlocks.
By default it is using the following OID: 1.3.6.1.2.1.25.2.3.1.6
If there are multiple file systems, this will return a list of values.
The graph gives an error when you click on Graph link. I've posted this before without result so I've been troubleshooting and I got stuck on Tale Expression error that I got.

In the properties of data point (graph settings), there is a formula in RPN location.
${here/getTotalBlocks},/,100,*

This basically is calculating used storage over total storage times 100. Which gives % used space.
It doesnt work. When looking at zopectl log I have the following:
2012-01-05T15:57:27 WARNING RenderServer /tmp/renderserver/graph-28bd2921b684fd9cc186bf9e4b5082ee129600.png --start=1325667147 --end=1325796747 --imgformat=PNG -F -E --height=100 --upper-limit=100 --rigid --lower-limit=0 --rigid --vertical-label=percentage DEF:usedBlocks-raw=/opt/zenoss/perf/Devices/10.177.80.75/usedBlocks_usedBlocks.rrd:ds0:AVERAGE DEF:usedBlocks-raw-max=/opt/zenoss/perf/Devices/10.177.80.75/usedBlocks_usedBlocks.rrd:ds0:MAX CDEF:usedBlocks-rpn=usedBlocks-raw,(Tales expression error) CDEF:usedBlocks-rpn-max=usedBlocks-raw-max,(Tales expression error) CDEF:usedBlocks=usedBlocks-rpn AREA:usedBlocks-rpn#00cc00ff:Used           GPRINT:usedBlocks-rpn:LAST:cur\:%6.2lf%% GPRINT:usedBlocks-rpn:AVERAGE:avg\:%6.2lf%% GPRINT:usedBlocks-rpn-max:MAX:max\:%6.2lf%%\j HRULE:INF#00000000 --width=500
------
2012-01-05T16:08:54 ERROR RenderServer Failed to generate a graph
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenRRD/RenderServer.py", line 151, in render
    rrdtool.graph(*gopts)
error: invalid rpn expression in: usedBlocks-raw,(Tales expression error)

I need help with Tale expressions. I think something is wrong with it.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63565#63565]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jmp242
2012-01-05 21:26:45 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Tales expression error"

To view the discussion, visit: http://community.zenoss.org/message/63566#63566

--------------------------------------------------------------
I don't think that is a valid TALES expression.${here/getTotalBlocks} doesn't appear to be valid...

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63566#63566]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Yasha Zislin
2012-01-05 21:32:03 UTC
Permalink
Yasha Zislin [http://community.zenoss.org/people/yzislin] created the discussion

"Re: Tales expression error"

To view the discussion, visit: http://community.zenoss.org/message/63567#63567

--------------------------------------------------------------
This is what was in default installation of Zenoss (version 3.2.0). This happens in 3.2.1 as well.

Do you how to get it corrected?

Thanks.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63567#63567]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...