jmp242 wrote:
> Well, when I copied it in, it didn't like it and no graph box at all.
> The current graphs, while a little inexact, are close enough to figure
> out so far.
I've gotten a lot closer. I tested the following from the command line (with
bogus data) and it generates a nice looking bar graph with integer values.
Most of this is taken straight from the RRDTool tutorial.
Code:
rrdtool create printer.rrd \
--start 920804400 \
--step 300 \
DS:pages:COUNTER:600:0:U \
RRA:LAST:0.5:1:600 \
RRA:MAX:0.5:1:600 \
RRA:AVERAGE:0.5:288:600
rrdtool update printer.rrd 920804700:12000 920805000:12005 920805300:12005
rrdtool update printer.rrd 920805600:12006 920805900:12006 920806200:12010
rrdtool update printer.rrd 920806500:12010 920806800:12010 920807100:12011
rrdtool update printer.rrd 920807400:12012 920807700:12013 920808000:12015
rrdtool update printer.rrd 920808300:12018 920808600:12022 920808900:12022
rrdtool fetch printer.rrd LAST --start 920804400 --end 920808900
rrdtool graph pages.png \
--start 920804400 --end 920808900 \
--vertical-label "pages/5 min" \
DEF:mypages=printer.rrd:pages:LAST \
"CDEF:myrate=mypages,300,*" \
VDEF:maxrate=myrate,MAXIMUM \
AREA:myrate#00FF00:"Pages printed" \
COMMENT:"Max\:" \
GPRINT:maxrate:%3
Getting this into Zenoss has proven another story. :(
Here's where I am so far: In your template (I copied the default /Device
template to /Devices/Printer/Laser/Xerox) create a new data source named
pagesPrinted
Type
SNMP and OID of 1.3.6.1.2.1.43.10.2.1.4.1.1
Add a Data Point named
pagesPrinted as follows: Type
COUNTER
RRD Min
0
RRD Max
-1
Create Cmd
RRA:LAST:0.5:1:600
RRA:MAX:0.5:1:600
RRA:AVERAGE:0.5:288:600 Add a new Graph Definition named
Paged Printed as follows: Units
Pages/5 minutes
Min Y
0
MaX Y
-1
Has Summary
True Add a Graph Point Data Point
pagesPrinted_pagesPrinted
Click on the newly created Graph Point
pagesPrinted
Change the settings as follows:
Consolidation
LAST
RPN
300,*
Line Type
Area
Color
00FF00
Format
%3.0lf
Legend
Pages Printed
The real key here is the RPN value. Assuming a poll of 300 seconds this will
correctly scale the data from pages/second to pages/poll. Also, if you wanted
to eliminate or modify the cur: avg: max: on the graph set the "Has Summary" to
False and add your own under the Custom Graph Definitions tab. I noticed that
Zenoss is using a somewhat outdated method of GPRINT, but it still apparently
works.
My main problem now is that the .rrd is not updating. I can manually run
zenperfsnmp and it does update, but the daemons don't seem to be doing it!
Also, I have yet to find a high volume printer on our network to poll anyway.
When I was done my Graph Commands tab looked like this:
Code:
-F
-E
--height=100
--width=500
--lower-limit=0
--rigid
--vertical-label=Pages/5 minutes
DEF:pagesPrinted-raw=rrdPath/pagesPrinted_pagesPrinted.rrd:ds0:LAST
CDEF:pagesPrinted-rpn=pagesPrinted-raw,300,*
CDEF:pagesPrinted=pagesPrinted-rpn
AREA:pagesPrinted-rpn#00FF00ff:Pages Printed
GPRINT:pagesPrinted-rpn:LAST:cur\:%3.0lf
GPRINT:pagesPrinted-rpn:AVERAGE:avg\:%3.0lf
GPRINT:pagesPrinted-rpn:MAX:max\:%3.0lf\j
I also wish I could get rid of the "-E", but I have no idea how to do that.
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=20003#20003
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users