Sep 21, 2009 9:45 AM
RenderServer - Generating links to graphs
-
Like (0)
Hey,
I don't know if I'm asking the wrong question or looking in the wrong place but I can't find any information on how I might go about creating direct links to graphs in Zenoss? I understand the links will be dynamic depending on the date ranges etc. but none of the documentation specifies how or where to specify what is required.
All I really need is a link to the 'printable' page for each device with the scale set to monthly rather than hourly as is the default.
Thanks,
Stu
Well, in Zenoss, first you'll have to have users login, but you might be
able to use graph reports?
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
joll200x wrote, On 9/21/2009 9:45 AM:
Hey,
I don't know if I'm asking the wrong question or looking in the wrong place but I can't find any information on how I might go about creating direct links to graphs in Zenoss? I understand the links will be dynamic depending on the date ranges etc. but none of the documentation specifies how or where to specify what is required.
All I really need is a link to the 'printable' page for each device with the scale set to monthly rather than hourly as is the default.
Thanks,
Stu
>
you sir... are a genius
I will be having a hack away at this shortly, your help is much appreciated! I think the "==" part denotes base64 encoding but not 100% positive.
again, thank you so much!
Ah, that's where it gets a little tricky. You're not actually specifying a Zenoss-recognized "device".. instead, you are telling the RenderServer specifically what RRD data file(s) to reference. Take a look at the "Graph Commands" section of a graph in any performance template. Ex:
-F
-E
--height=100
--width=500
--vertical-label=percentage
--upper-limit=100
--lower-limit=0
DEF:cpu5min-raw=rrdPath/cpu5min_cpu5min.rrd:ds0:AVERAGE
CDEF:cpu5min=cpu5min-raw
AREA:cpu5min-raw#00cc00ff:cpu5min
GPRINT:cpu5min-raw:LAST:cur\:%0.2lf%s
GPRINT:cpu5min-raw:AVERAGE:avg\:%0.2lf%s
GPRINT:cpu5min-raw:MAX:max\:%0.2lf%s\j
If you were to use this example (a CPU usage graph), you would need to replace "rrdPath" in the "DEF" line with the full filesystem path to the RRD data in question. Ex:
DEF:cpu5min-raw=/usr/local/zenoss/perf/Devices/MYROUTER/cpu5min_cpu5min.rrd:ds0:AVERAGE
Aside from knowing the path to the device, you'll also need to know the name of the datapoint you want to graph. In the above example it's "cpu5min". Take a look at the $ZENHOME/perf/Devices filesystem tree if you haven't already in order to better understand these references.
Other folks type much faster than I do, it appears.
Let's go with their solution.
--Jay
hey if you've got another solution do share . I'm open to all offers and i'm sure there are others about who will be interested.
Almost got the above perl script working (after a crash course of googling for 'perl hello world' to see what it's all about). Got it to churn out a link to a URL anyway (the URL didn't work but that was my fault as I haven't finished the script yet). Once I've modded it a little I'll post back what I've got.
Does anyone have a copy of the mysteriously missing code here???
Thanks,
Jane
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||