I took a look at the custom graph definition for "Ping Counts" and figured out 
how to divide the total by 60.

Blake Drager wrote:
> 
> Some caveats:
> ...
>       the ping count "totals" aren't accurate, they need to be divided by 60 
> (the time step) but I haven't figured out how
> 
> 


You just need to modify the custom graph definition to look like the following:

Code:
CDEF:pingloss=Pings_Sent-raw,Pings_Received-raw,-
CDEF:pingtotal-fix=Pings_Sent-raw,60,/
CDEF:rcvtotal-fix=Pings_Received-raw,60,/
LINE1:pingloss#ff000099:Pings Lost   
GPRINT:pingloss:LAST:cur\: %2.2lf
GPRINT:pingloss:AVERAGE:avg\: %2.2lf
GPRINT:pingloss:MAX:max\: %2.2lf\j
VDEF:pingtotal=pingtotal-fix,TOTAL
GPRINT:pingtotal:Total Sent      \:%10.0lf%s\j
VDEF:rcvtotal=rcvtotal-fix,TOTAL
GPRINT:rcvtotal:Total Received  \:%10.0lf%s




The trick is to make two new CDEFs first that will divide the data by 60 and 
then to have the VDEFs, pingtotal and rcvtotal, use those new CDEFs to perform 
the TOTAL.




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

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

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



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

Reply via email to