Created
March 26, 2014 04:28
-
-
Save yesdevnull/9776941 to your computer and use it in GitHub Desktop.
OS X Caching Server 2 RRDtool Graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rrdtool graph - --slope-mode -P --imgformat PNG --height 180 --title "<big><b>Caching Server 2 - Usage & Package Count</b></big>" --vertical-label "<b>Cache Size</b>" --right-axis-label "<b># Of Packages</b>" DEF:cacheUsed=rrd_source:ds_source_1:AVERAGE DEF:cacheLimit=rrd_source:ds_source_3:AVERAGE DEF:numberOfPkgs=rrd_source:ds_source_6:AVERAGE DEF:macAppsUsage=rrd_source:ds_source_7:AVERAGE DEF:iosAppsUsage=rrd_source:ds_source_8:AVERAGE DEF:ibooksUsage=rrd_source:ds_source_9:AVERAGE DEF:otherUsage=rrd_source:ds_source_12:AVERAGE CDEF:otherUsedPerc=otherUsage,cacheUsed,/,100,* CDEF:ibooksUsagePerc=ibooksUsage,cacheUsed,/,100,* CDEF:iosAppsUsagePerc=iosAppsUsage,cacheUsed,/,100,* CDEF:macAppsUsagePerc=macAppsUsage,cacheUsed,/,100,* CDEF:otherUsedTotalPerc=otherUsage,cacheLimit,/,100,* CDEF:ibooksUsageTotalPerc=ibooksUsage,cacheLimit,/,100,* CDEF:iosAppsUsageTotalPerc=iosAppsUsage,cacheLimit,/,100,* CDEF:macAppsUsageTotalPerc=macAppsUsage,cacheLimit,/,100,* CDEF:cacheLimitGB=cacheLimit,1000000000,/ CDEF:cacheUsedGB=cacheUsed,1000000000,/ CDEF:cacheUsedPerc=cacheUsed,cacheLimit,/,100,* CDEF:macAppsUsageGB=macAppsUsage,1000000000,/ CDEF:iosAppsUsageGB=iosAppsUsage,1000000000,/ CDEF:ibooksUsageGB=ibooksUsage,1000000000,/ CDEF:otherUsageGB=otherUsage,1000000000,/ CDEF:otherLine=otherUsage,otherUsage,UNKN,IF CDEF:ibooksLine=ibooksUsage,otherUsage,ibooksUsage,+,UNKN,IF CDEF:iosLine=iosAppsUsage,otherUsage,ibooksUsage,iosAppsUsage,+,+,UNKN,IF CDEF:macLine=macAppsUsage,iosAppsUsage,ibooksUsage,otherUsage,macAppsUsage,+,+,+,UNKN,IF CDEF:numberOfPkgsLine=numberOfPkgs,150000000,* COMMENT:"<b>Type</b>\t\t\t<b>Used</b>\t\t<b>Cache Usage</b>\t\t<b>Cache Limit</b>\n" AREA:otherUsage#89D263:"<b>Other</b>\t\t" GPRINT:otherUsageGB:LAST:"<i>%.2lf</i> GB\t\t" GPRINT:otherUsedPerc:LAST:"%.0lf%%\t\t" GPRINT:otherUsedTotalPerc:LAST:"%.0lf%%\n" AREA:ibooksUsage#F58F62:"<b>iBooks</b>\t":STACK GPRINT:ibooksUsageGB:LAST:"<i>%.2lf</i> GB\t\t" GPRINT:ibooksUsagePerc:LAST:"%.0lf%%\t\t" GPRINT:ibooksUsageTotalPerc:LAST:"%.0lf%%\n" AREA:iosAppsUsage#A25FA5:"<b>iOS Apps</b>\t":STACK GPRINT:iosAppsUsageGB:LAST:"<i>%.2lf</i> GB\t\t" GPRINT:iosAppsUsagePerc:LAST:"%.0lf%%\t\t" GPRINT:iosAppsUsageTotalPerc:LAST:"%.0lf%%\n" AREA:macAppsUsage#63B2FF:"<b>Mac Apps</b>\t":STACK GPRINT:macAppsUsageGB:LAST:"<i>%.2lf</i> GB\t\t" GPRINT:macAppsUsagePerc:LAST:"%.lf%%\t" GPRINT:macAppsUsageTotalPerc:LAST:"%.0lf%%\n" LINE1:otherLine#609345 LINE1:ibooksLine#843D86 LINE1:iosLine#714374 LINE1:macLine#457DB3 COMMENT:"<b>Total</b>\t\t" GPRINT:cacheUsedGB:LAST:"<i>%.2lf</i> GB /\g" GPRINT:cacheLimitGB:LAST:" <i>%.2lf</i> GB" GPRINT:cacheUsedPerc:LAST:"\t\t<b>%.0lf%%</b>\n" LINE1:numberOfPkgsLine#FFF00F:"<b>Packages</b>\t":dashes=3 GPRINT:numberOfPkgs:LAST:"<i>%.0lf</i>\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment