Greetings all...

I've been working on graphs for printer monitoring, and had run into the 
bug/feature where you cannot have a single snmp OID as both a Gauge and a 
Counter (in this case, the OID to get Total Pages Printed).

After a little searching on the RRDTool website, I found the work-around: the 
PREV command will allow me to make a derivative of the Gauge to get (more or 
less) the Counter.

For just one device, it works great.  Make a new graph, add the Gauge data 
source.  In the details of this Graph Point, set the line type to "Not Drawn".  
Now it's not in the graph but available for RPN calculations.  Now, under the 
Custom Graph Definition, I put

CDEF:prev1=PREV(TotalPages-raw)
CDEF:delta=TotalPages-raw,prev1,-
LINE:delta#00cc00:${here/name | here/id} Pages
GPRINT:delta:LAST:cur\:%5.2lf%s
GPRINT:delta:AVERAGE:avg\:%5.2lf%s
GPRINT:delta:MAX:max\:%5.2lf%s\j

...and click on Save.  "prev1" and "delta" show up as Available RRD Variables, 
and I get a green line showing roughly how many pages were printed in the last 
5 minutes. (The RRDTool site included the timestamps in the calculation to get 
a per-second result, if you prefer.)

OK: now for the hard part.  When I plug that into the Custom Graph Definition 
for a MultiGraph report, and ask for a bunch of devices to collected into one 
graph, I get no output - presumably because Zenoss does not want to graph 5 
devices with the exact same green line.  I know there's a "colors" array out 
there.  I've tried things along the lines of substituting 
"${colors[collection/index]}" for "#00cc00"  but have not hit upon the magic 
words yet.  

Thus the question of the day... How should one specify the line color for an 
RPN'd Graph Point in a MultiGraph report?

Thanks to any who actually read this far...

--Jay




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16358#16358

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to