Archived community.zenoss.org | full text search
Skip navigation
2260 Views 2 Replies Latest reply: Sep 19, 2011 2:00 PM by dpetzel RSS
dpetzel Rank: Brown Belt 1,141 posts since
Oct 17, 2010
Currently Being Moderated

Sep 17, 2011 9:14 PM

getRRDValues when datasource name contains a space

So I've been playing around with creating some time based reports as outlined in message/32004#32004 and message/60977#60977. I've managed to get it work, however I ran into a bump with a certain set of datasources I want to include. I have data sources that contain spaces in the names.

 

So take something like 'ServiceName HTTP totalServicedSum_totalServicedSum.rrd'

 

As a simple example I have:

print d.getRRDValues(['ServiceName HTTP totalServicedSum'],

                         start=startDate, end=endDate, function=how)

 

It results in a traceback:

 

ERROR:RenderServer:Failed while generating summary

Traceback (most recent call last):

  File "/opt/zenoss/Products/ZenRRD/RenderServer.py", line 346, in summary

    values = rrdtool.graph(*gopts)[2]

error: Cannot parse vname from 'DEF:ServiceName HTTP totalServicedSum_r=/opt/zenoss/perf/Devices/DeviceName/ServiceName HTTP totalServicedSum_totalServicedSum.rrd:ds0:AVERAGE'

WARNING:RenderServer:/dev/null DEF:ServiceName HTTP totalServicedSum_r=/opt/zenoss/perf/Devices/DeviceName/ServiceName HTTP totalServicedSum_totalServicedSum.rrd:ds0:AVERAGE CDEF:ServiceName HTTP totalServicedSum_c=ServiceName HTTP totalServicedSum_r VDEF:ServiceName HTTP totalServicedSum=ServiceName HTTP totalServicedSum_c,MAXIMUM PRINT:ServiceName HTTP totalServicedSum:%.2lf --start=1316203200 --end=1316206800

ERROR:zen.RRDView:Cannot parse vname from 'DEF:ServiceName HTTP totalServicedSum_r=/opt/zenoss/perf/Devices/DeviceName/ServiceName HTTP totalServicedSum_totalServicedSum.rrd:ds0:AVERAGE'

Traceback (most recent call last):

  File "/opt/zenoss/Products/ZenModel/RRDView.py", line 167, in getRRDValues

    vals = perfServer.performanceCustomSummary(gopts)

  File "/opt/zenoss/Products/ZenModel/PerformanceConf.py", line 400, in performanceCustomSummary

    return server.summary(gopts)

  File "/opt/zenoss/Products/ZenRRD/RenderServer.py", line 346, in summary

    values = rrdtool.graph(*gopts)[2]

error: Cannot parse vname from 'DEF:ServiceName HTTP totalServicedSum_r=/opt/zenoss/perf/Devices/DeviceName/ServiceName HTTP totalServicedSum_totalServicedSum.rrd:ds0:AVERAGE'

 

Based on http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html

Variable names (vname) must be made up strings of the following characters A-Z, a-z, 0-9, -,_and a maximum length of 255 characters.

 

So it would appear that when its trying to generate the VDEF name, it contains illegal characters in the form of the spaces.

 

Anyone have any ideas, on how I could get this to work?

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points