Archived community.zenoss.org | full text search
Skip navigation
29290 Views 13 Replies Latest reply: Jan 25, 2013 4:53 PM by Ryan Matte RSS
mshundal Rank: Green Belt 116 posts since
Jul 21, 2008
Currently Being Moderated

Dec 31, 2008 1:22 PM

95th percentile graphs

hi all,

trying to get 95th percentile graphs going for some of my interfaces; searched in the forums and google but did not find anything useful or current.

anyone currently doing this? if so would you mind sharing?


regards,

m s hundal
  • Chet Luther ZenossEmployee 1,302 posts since
    May 22, 2007
    Currently Being Moderated
    1. Dec 31, 2008 4:24 PM (in response to mshundal)
    95th percentile graphs
    On Dec 31, 2008, at 1:22 PM, mshundal wrote:

     

     

    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?


    This is quite easy to do. Go to the template that you're using to
    monitor the interfaces (likely /Devices/ethernetCsmacd) and edit the
    Throughput graph definition. Add the following on the custom tab.

    VDEF:in95=ifInOctets,95,PERCENT
    VDEF:out95=ifOutOctets,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
    _______________________________________________
    zenoss-users mailing list
    zenoss-users@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-users
  • mansor Rank: White Belt 7 posts since
    Mar 19, 2009
    Currently Being Moderated
    3. Mar 30, 2009 11:35 AM (in response to mshundal)
    how to add the graph
    Hi,

    I added to the custom graph definition the text above.
    Now where I set my 95th percentile for a server for example?

    Thanks
  • mansor Rank: White Belt 7 posts since
    Mar 19, 2009
    Currently Being Moderated
    5. Mar 30, 2009 12:14 PM (in response to mshundal)
    RE: how to add the graph
    Hi,

    Yes I notice that, now I want to graph all my server's eth0 output bandwidth in one graph.
    I'm trying with Multi-graph with no success.

    Thanks for reply.
  • OneLoveAmaru Rank: White Belt 73 posts since
    May 30, 2011
    Currently Being Moderated
    6. May 17, 2012 1:55 PM (in response to Chet Luther)
    Re: 95th percentile graphs

    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

  • OneLoveAmaru Rank: White Belt 73 posts since
    May 30, 2011
    Currently Being Moderated
    7. May 17, 2012 2:06 PM (in response to Chet Luther)
    Re: 95th percentile graphs

    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.

  • OneLoveAmaru Rank: White Belt 73 posts since
    May 30, 2011
    Currently Being Moderated
    8. May 17, 2012 2:26 PM (in response to Chet Luther)
    Re: 95th percentile graphs

    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!

  • doug reid Newbie 3 posts since
    Dec 24, 2012
    Currently Being Moderated
    9. Jan 23, 2013 8:06 PM (in response to mshundal)
    Re: 95th percentile graphs

    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.

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    10. Jan 24, 2013 8:47 AM (in response to doug reid)
    Re: 95th percentile graphs

    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

  • doug reid Newbie 3 posts since
    Dec 24, 2012
    Currently Being Moderated
    11. Jan 24, 2013 6:32 PM (in response to jmp242)
    Re: 95th percentile graphs

    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.

  • doug reid Newbie 3 posts since
    Dec 24, 2012
    Currently Being Moderated
    12. Jan 24, 2013 6:57 PM (in response to doug reid)
    Re: 95th percentile graphs

    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.  

     

    
  • Ryan Matte ZenossMaster 653 posts since
    Mar 26, 2009
    Currently Being Moderated
    13. Jan 25, 2013 4:53 PM (in response to mshundal)
    Re: 95th percentile graphs

    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.

More Like This

  • Retrieving data ...