hello zenoss users

I wished to try to modify ethernetCsmacd template to add the fourth column 
after cur avg max. Comunm of summary traffic

My custom definition of graph


Code:

-F
-E
--height=100
--width=500
--lower-limit=0
--rigid
--vertical-label=bits/sec
DEF:ifInOctets-raw=rrdPath/ifInOctets_ifInOctets.rrd:ds0:AVERAGE
CDEF:ifInOctets-rpn=ifInOctets-raw,8,*
CDEF:ifInOctets=ifInOctets-rpn
AREA:ifInOctets-rpn#00cc00:ifInOctets
GPRINT:ifInOctets-rpn:LAST:cur\:%5.2lf%s
GPRINT:ifInOctets-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:ifInOctets-rpn:MAX:max\:%5.2lf%s
GPRINT:ifInOctets-rpn:TOTAL:total\:%5.2lf%s\j
DEF:ifOutOctets-raw=rrdPath/ifOutOctets_ifOutOctets.rrd:ds0:AVERAGE
CDEF:ifOutOctets-rpn=ifOutOctets-raw,8,*
CDEF:ifOutOctets=ifOutOctets-rpn
LINE1:ifOutOctets-rpn#0000ff:ifOutOctets
GPRINT:ifOutOctets-rpn:LAST:cur\:%5.2lf%s
GPRINT:ifOutOctets-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:ifOutOctets-rpn:MAX:max\:%5.2lf%s
GPRINT:ifOutOctets-rpn:TOTAL:total\:%5.2lf%s\j




In event.log i see


Code:

2008-03-21T10:44:03 ERROR Zope.SiteErrorLog 
http://172.16.59.240:8080/zport/RenderServer/render
Traceback (most recent call last):
  File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 114, in publish
    request, bind=1)
  File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 40, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/opt/zenoss/Products/ZenRRD/RenderServer.py", line 182, in render
    gopts = self.removeInvalidRRDReferences(gopts)
  File "/opt/zenoss/Products/ZenRRD/RenderServer.py", line 149, in 
removeInvalidRRDReferences
    devIndex = parts.index('Devices') + 1
ValueError: list.index(x): x not in list




I try add in custom graph definition


Code:

DEF:ifInOctets-raw=rrdPath/ifInOctets_ifInOctets.rrd:ds0:AVERAGE
CDEF:ifInOctets=ifInOctets-raw
LINE1:ifInOctets-raw#00cc00:ifInOctets    
GPRINT:ifInOctets-raw:LAST:cur\:%5.2lf%s
GPRINT:ifInOctets-raw:AVERAGE:avg\:%5.2lf%s
GPRINT:ifInOctets-raw:MAX:max\:%5.2lf%s\j
DEF:ifOutOctets-raw=rrdPath/ifOutOctets_ifOutOctets.rrd:ds0:AVERAGE
CDEF:ifOutOctets=ifOutOctets-raw
LINE1:ifOutOctets-raw#0000ff:ifOutOctets   
GPRINT:ifOutOctets-raw:LAST:cur\:%5.2lf%s
GPRINT:ifOutOctets-raw:AVERAGE:avg\:%5.2lf%s
GPRINT:ifOutOctets-raw:MAX:max\:%5.2lf%s\j




It is a kind the column when for it are certain ifInOctets and ifOutOctets 
through the menu when the pattern is not changed and is completely by default

In log file present a same error.[/code]




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=17666#17666

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to