Dec 31, 2008 1:22 PM
95th percentile graphs
-
Like (0)
trying to get 95th percentile graphs going for some my interfaces;
searched in the forums and google but did not find anything useful
or current.
anyone currently doing this? is so would you mind sharing?
Chet, I realize this post is a bit old but I did stumble upon it and add that code into some of my tempates. It's working great with Linux SNMP, Linux SSH and Windows via WMI.
BUT, it's not working with anything under /Network/.
I can see the Throughput bar but then it has a broken picture icon under it. I am using Zenoss Core 3.2.1.
Any help would be appreciated. Thanks!
~Matt
And I found my error:
2012-05-17T13:58:21 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: Not a valid vname: ifInOctets in line VDEF:in95=ifInOctets,95,PERCENT
Well, I take the Linux SNMP working back. It appears it has a problem with SNMP. It's working with Windows WMI and Linx SSH but NOT anything with SNMP.
And I got it.
Apparently SNMP is using the ethernetCsmacd_64 template this of course doesn't have ifInOctets or inOutOctets.
Just a small change by adding in HC between the if and In.
Like this:
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
Working perfect now!
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.
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
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.
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.
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.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||