ace6285
2012-11-23 13:32:35 UTC
ace6285 [http://community.zenoss.org/people/ace6285] created the discussion
"Re: ZENRRD - External Front-End for Zenoss Graphs. Cacti Like zooming with date ranges"
To view the discussion, visit: http://community.zenoss.org/message/70124#70124
--------------------------------------------------------------
Hi robetr. First of all, great job with this awesome work. I've tried this and it works great. However, I'm trying to add another metric for the interfaces (since the default is just throughput, packets and errors) but can't seem to properly load it (please note that the RRDs for this metric is already in Zenoss). Haven't found any directions on how to do that (README and github), but tried to figure it out by reviewing the codes. First I've tried to define the RRD files in zenoss_rrd.cgi as well as the template to be used (and type called by functions.php). I've just copy pasted the existing codes and just change the appropriate variables/fields. Then in functions.php, copied the part in which the type is called. Then of course created the appropriate template in the templates folder. Bel
ow is the template:
-F
-E
--disable-rrdtool-tag
--height=100
--lower-limit=0
--vertical-label=bytes
DEF:inboundbytes-raw={$rrd_file_in}:ds0:LAST
DEF:inboundbytes-raw-max={$rrd_file_in}:ds0:MAX
CDEF:inboundbytes-rpn=inboundbytes-raw,1000,*
CDEF:inboundbytes-rpn-max=inboundbytes-raw-max,1000,*
CDEF:inboundbytes=inboundbytes-rpn
AREA:inboundbytes-rpn#00cc00ff:inboundbytes :STACK
GPRINT:inboundbytes-rpn:LAST:cur\:%5.2lf%s
GPRINT:inboundbytes-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:inboundbytes-rpn-max:MAX:max\:%5.2lf%s\j
DEF:outboundbytes-raw={$rrd_file_out}:ds0:LAST
DEF:outboundbytes-raw-max={$rrd_file_out}:ds0:MAX
CDEF:outboundbytes-rpn=outboundbytes-raw,1000,*
CDEF:outboundbytes-rpn-max=outboundbytes-raw-max,1000,*
CDEF:outboundbytes=outboundbytes-rpn
AREA:outboundbytes-rpn#0000ffff:outboundbytes :STACK
GPRINT:outboundbytes-rpn:LAST:cur\:%5.2lf%s
GPRINT:outboundbytes-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:outboundbytes-rpn-max:MAX:max\:%5.2lf%s\j
Anything that I'm missing or need to check. Thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70124#70124]
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]
"Re: ZENRRD - External Front-End for Zenoss Graphs. Cacti Like zooming with date ranges"
To view the discussion, visit: http://community.zenoss.org/message/70124#70124
--------------------------------------------------------------
Hi robetr. First of all, great job with this awesome work. I've tried this and it works great. However, I'm trying to add another metric for the interfaces (since the default is just throughput, packets and errors) but can't seem to properly load it (please note that the RRDs for this metric is already in Zenoss). Haven't found any directions on how to do that (README and github), but tried to figure it out by reviewing the codes. First I've tried to define the RRD files in zenoss_rrd.cgi as well as the template to be used (and type called by functions.php). I've just copy pasted the existing codes and just change the appropriate variables/fields. Then in functions.php, copied the part in which the type is called. Then of course created the appropriate template in the templates folder. Bel
ow is the template:
-F
-E
--disable-rrdtool-tag
--height=100
--lower-limit=0
--vertical-label=bytes
DEF:inboundbytes-raw={$rrd_file_in}:ds0:LAST
DEF:inboundbytes-raw-max={$rrd_file_in}:ds0:MAX
CDEF:inboundbytes-rpn=inboundbytes-raw,1000,*
CDEF:inboundbytes-rpn-max=inboundbytes-raw-max,1000,*
CDEF:inboundbytes=inboundbytes-rpn
AREA:inboundbytes-rpn#00cc00ff:inboundbytes :STACK
GPRINT:inboundbytes-rpn:LAST:cur\:%5.2lf%s
GPRINT:inboundbytes-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:inboundbytes-rpn-max:MAX:max\:%5.2lf%s\j
DEF:outboundbytes-raw={$rrd_file_out}:ds0:LAST
DEF:outboundbytes-raw-max={$rrd_file_out}:ds0:MAX
CDEF:outboundbytes-rpn=outboundbytes-raw,1000,*
CDEF:outboundbytes-rpn-max=outboundbytes-raw-max,1000,*
CDEF:outboundbytes=outboundbytes-rpn
AREA:outboundbytes-rpn#0000ffff:outboundbytes :STACK
GPRINT:outboundbytes-rpn:LAST:cur\:%5.2lf%s
GPRINT:outboundbytes-rpn:AVERAGE:avg\:%5.2lf%s
GPRINT:outboundbytes-rpn-max:MAX:max\:%5.2lf%s\j
Anything that I'm missing or need to check. Thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70124#70124]
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]