Discussion:
95th percentile graphs
doug reid
2013-01-24 01:06:10 UTC
Permalink
doug reid [http://community.zenoss.org/people/dr1111] created the discussion

"Re: 95th percentile graphs"

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

--------------------------------------------------------------
Hi All,

I am also attempting to get the 95th percentile graph working in Zenoss and I have applied the same custom graph....


VDEF:in95=ifHCInOctets,95,PERCENT
VDEF:out95=ifHCOutOctets,95,PERCENT
COMMENT:\s
COMMENT:95th %ile over current period\: \n
HRULE:in95#00ff00:95th % In
GPRINT:in95:= \t %0.2lf%Sbps \n
HRULE:out95#ff00ff:95th % Out
GPRINT:out95:= \t %0.2lf%Sbps


However, the graphs breaks and does not display at all.    I understand the VDEF and its purpose, also HRULE and GPRINT.
My question is, why is the graph not displaying at all ?    Is there a syntax issue somewhere in the custom script ? or am I just missing something ??? 

Need some assistance as I am totally stuck.!.   It seems to work for everyone else here, but it's not working at all for me. !     

Thanks!!

Doug Reid.
--------------------------------------------------------------

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

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
2013-01-24 13:47:18 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: 95th percentile graphs"

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

--------------------------------------------------------------
Did you delete the old RRD file? Is a new one being created? I think changes to graphs mean you have to regenerate the RRD files.

--
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/71202#71202]

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]
doug reid
2013-01-24 23:32:41 UTC
Permalink
doug reid [http://community.zenoss.org/people/dr1111] created the discussion

"Re: 95th percentile graphs"

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

--------------------------------------------------------------
Hi James!

I check the zpoectl logs and found this error, the graph is not being created because of a bad function string for VDEF:out95=ifHCOutOctets,95,PERCENT
I double checked the RRD files and they are fine. Would they still need to be deleted and then regenerated in this case ??

2013-01-21T13:17:36 ERROR RenderServer Failed to generate a graph
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenRRD/RenderServer.py", line 155, in render
    rrdtool.graph(*gopts)
error: Unknown function string '95,PERCENT
' in VDEF 'out95'


For clarity, here is the detailed output that generated the error:  This is for the Throughput graph where the custom script is being applied::

2013-01-21T13:02:05 WARNING RenderServer /tmp/renderserver/graph-d84c513359259bb58ec5bc4595e31cc6129600.png --start=1358661425 --end=1358791025 COMMENT:\c --imgformat=PNG -F -E --height=100 --lower-limit=0 --rigid --vertical-label=bits/sec DEF:ifHCInOctets-raw=/usr/local/zenoss/zenoss/perf/Devices/10.12.96.5/os/interfaces/ae0/ifHCInOctets_ifHCInOctets.rrd:ds0:AVERAGE DEF:ifHCInOctets-raw-max=/usr/local/zenoss/zenoss/perf/Devices/10.12.96.5/os/interfaces/ae0/ifHCInOctets_ifHCInOctets.rrd:ds0:MAX CDEF:ifHCInOctets-rpn=ifHCInOctets-raw,8,* CDEF:ifHCInOctets-rpn-max=ifHCInOctets-raw-max,8,* CDEF:ifHCInOctets=ifHCInOctets-rpn AREA:ifHCInOctets-rpn#00cc00ff:Inbound        GPRINT:ifHCInOctets-rpn:LAST:cur\:%5.2lf%s GPRINT:ifHCInOctets-rpn:AVERAGE:avg\:%5.2lf%s GPRINT:ifHCInOctets-rpn-max:MAX:max\:%5.2lf%s\j DEF:ifHCOutOctets-raw=/usr/local/zenoss/zenoss/perf/Devices/10.12.96.5/os/interfaces/ae0/ifHCOutOctets_ifHCOutOctets.rrd:ds0:AVERAGE DEF:ifHCOutOctets-raw-max=/usr/local/zenoss/zenoss/perf/Devices/10.12.96.5/os/interfaces/ae0/ifHCOutOctets_ifHCOutOctets.rrd:ds0:MAX CDEF:ifHCOutOctets-rpn=ifHCOutOctets-raw,8,* CDEF:ifHCOutOctets-rpn-max=ifHCOutOctets-raw-max,8,* CDEF:ifHCOutOctets=ifHCOutOctets-rpn LINE1:ifHCOutOctets-rpn#0000ff99:Outbound       GPRINT:ifHCOutOctets-rpn:LAST:cur\:%5.2lf%s GPRINT:ifHCOutOctets-rpn:AVERAGE:avg\:%5.2lf%s GPRINT:ifHCOutOctets-rpn-max:MAX:max\:%5.2lf%s\j
VDEF:in95=ifHCInOctets,95,PERCENT
VDEF:out95=ifHCOutOctets,95,PERCENT
COMMENT:\s
COMMENT:95th %ile over current period\: \n
HRULE:in95#00ff00:95th % In
GPRINT:in95:= \t %0.2lf%Sbps \n
HRULE:out95#ff00ff:95th % Out
GPRINT:out95:= \t %0.2lf%Sbps HRULE:INF#00000000 --width=500
------
2013-01-21T13:02:34 INFO RenderServer File: /tmp/renderserver/graph-7ccd68754a94183c077ecb9961b74d05656100.png not created yet.
------
2013-01-21T13:05:14 INFO RenderServer File: /tmp/renderserver/graph-799607ba06c73345549a4b391e384cce129600.png not created yet.
------
2013-01-21T13:05:28 INFO RenderServer File: /tmp/renderserver/graph-ae3926e0af0b543234fe001ea91cc241129600.png not created yet.
------
2013-01-21T13:09:43 INFO zen.ZenossInfo Telling zenmodeler to restart
------
2013-01-21T13:16:31 INFO RenderServer File: /tmp/renderserver/graph-87ab5bd8f6bb4c1a0632eca0414ce898129600.png not created yet.
------
2013-01-21T13:17:28 INFO RenderServer File: /tmp/renderserver/graph-ae3926e0af0b543234fe001ea91cc241129600.png not created yet.
------
2013-01-21T13:17:35 INFO RenderServer File: /tmp/renderserver/graph-80b9a58bfc4285e890cbb9ccb9e9a8aa656100.png not created yet.
------
2013-01-21T13:17:36 ERROR RenderServer Failed to generate a graph
Traceback (most recent call last):
  File "/usr/local/zenoss/zenoss/Products/ZenRRD/RenderServer.py", line 155, in render
    rrdtool.graph(*gopts)
error: Unknown function string '95,PERCENT
' in VDEF 'out95'




Thanks James!    Any thoughts you may have woud be extremely helpful..!

-Doug.
--------------------------------------------------------------

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

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]
doug reid
2013-01-24 23:57:36 UTC
Permalink
doug reid [http://community.zenoss.org/people/dr1111] created the discussion

"Re: 95th percentile graphs"

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

--------------------------------------------------------------
Hi all,

Just as an after thought:  I took the liberty taking a snapshot of the throughput graph commands before I started messing with it:

Here is what it is now:
-F
-E
--height=100
--width=500
--lower-limit=0
--rigid
--vertical-label=bits/sec
DEF:ifHCInOctets-raw=rrdPath/ifHCInOctets_ifHCInOctets.rrd:ds0:AVERAGE
DEF:ifHCInOctets-raw-max=rrdPath/ifHCInOctets_ifHCInOctets.rrd:ds0:MAX
CDEF:ifHCInOctets=ifHCInOctets-raw
LINE1:ifHCInOctets-raw#00cc00ff:ifHCInOctets 
GPRINT:ifHCInOctets-raw:LAST:cur\:%5.2lf%s
GPRINT:ifHCInOctets-raw:AVERAGE:avg\:%5.2lf%s
GPRINT:ifHCInOctets-raw-max:MAX:max\:%5.2lf%s\j
DEF:ifHCOutOctets-raw=rrdPath/ifHCOutOctets_ifHCOutOctets.rrd:ds0:AVERAGE
DEF:ifHCOutOctets-raw-max=rrdPath/ifHCOutOctets_ifHCOutOctets.rrd:ds0:MAX
CDEF:ifHCOutOctets=ifHCOutOctets-raw
LINE1:ifHCOutOctets-raw#0000ff99:ifHCOutOctets
GPRINT:ifHCOutOctets-raw:LAST:cur\:%5.2lf%s
GPRINT:ifHCOutOctets-raw:AVERAGE:avg\:%5.2lf%s
GPRINT:ifHCOutOctets-raw-max:MAX:max\:%5.2lf%s\j
HRULE:0#00ff00:95


It is missing these CDEF's
CDEF:ifHCInOctects-rpn=ifHCInOctects-raw,8,*
CDEF:ifHCInOctects-rpn-max=ifHCInOctects-raw-max,8,*
CDEF:ifHCInOctects=ifHCInOctects-rpn
CDEF:ifHCOutOctects-rpn=ifHCOutOctects-raw,8,*
CDEF:ifHCOutOctects-rpn-max=ifHCOutOctects-raw-max,8,*
CDEF:ifHCOutOctects=ifHCOutOctects-rpn

this is wrong
LINE1:ifHCInOctets-raw#00cc00ff:ifHCInOctets

it should be:
AREA:ifHCIOctects-rpn#00cc00ff:Inbound
HRULE should not be there. 

How would I go about repairing the graph commands to get back to the original settings ??

Any comments are appreciated. !

Thanks.
Doug.  


--------------------------------------------------------------

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

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]
Ryan Matte
2013-01-25 21:53:25 UTC
Permalink
Ryan Matte [http://community.zenoss.org/people/rmatte] created the discussion

"Re: 95th percentile graphs"

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

--------------------------------------------------------------
This is the custom graph definition that I use for the Throughput graph and it works well...

VDEF:in95=ifInOctets,95,PERCENT
VDEF:out95=ifOutOctets,95,PERCENT
COMMENT:\s
COMMENT:95th percentile over current period\: \n
LINE2:in95#ff9900:95th % In
GPRINT:in95:= %0.2lf%Sbps \n
LINE2:out95#00ccff:95th % Out
GPRINT:out95:= %0.2lf%Sbps \n

The names of the datapoints need to be modified for 64bit templates.  I took Chet's examples and modified them to make them look better.
--------------------------------------------------------------

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

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...