From: <buc...@us...> - 2008-01-13 12:08:50
|
Revision: 32 http://devmon.svn.sourceforge.net/devmon/?rev=32&view=rev Author: buchanmilne Date: 2008-01-13 04:08:39 -0800 (Sun, 13 Jan 2008) Log Message: ----------- Add memory and if_load tests for linux-openwrt Added Paths: ----------- trunk/templates/linux-openwrt/if_load/ trunk/templates/linux-openwrt/if_load/exceptions trunk/templates/linux-openwrt/if_load/message trunk/templates/linux-openwrt/if_load/oids trunk/templates/linux-openwrt/if_load/thresholds trunk/templates/linux-openwrt/if_load/transforms trunk/templates/linux-openwrt/memory/ trunk/templates/linux-openwrt/memory/exceptions trunk/templates/linux-openwrt/memory/message trunk/templates/linux-openwrt/memory/oids trunk/templates/linux-openwrt/memory/thresholds trunk/templates/linux-openwrt/memory/transforms Added: trunk/templates/linux-openwrt/if_load/exceptions =================================================================== Added: trunk/templates/linux-openwrt/if_load/message =================================================================== --- trunk/templates/linux-openwrt/if_load/message (rev 0) +++ trunk/templates/linux-openwrt/if_load/message 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,7 @@ + +<b>Interface error rates:</b> +Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% +Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% +TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) +Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) +{ifName}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} Added: trunk/templates/linux-openwrt/if_load/oids =================================================================== --- trunk/templates/linux-openwrt/if_load/oids (rev 0) +++ trunk/templates/linux-openwrt/if_load/oids 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,4 @@ +ifName : .1.3.6.1.2.1.2.2.1.2 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch Added: trunk/templates/linux-openwrt/if_load/thresholds =================================================================== --- trunk/templates/linux-openwrt/if_load/thresholds (rev 0) +++ trunk/templates/linux-openwrt/if_load/thresholds 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,4 @@ +ifInLoad : yellow : 75 : {ifName} load is high +ifInLoad : red : 95 : {ifName} load is very high +ifOutLoad : yellow : 75 : {ifName} load is high +ifOutLoad : red : 95 : {ifName} load is very high Added: trunk/templates/linux-openwrt/if_load/transforms =================================================================== --- trunk/templates/linux-openwrt/if_load/transforms (rev 0) +++ trunk/templates/linux-openwrt/if_load/transforms 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,16 @@ +# Create a human-readable ifc speed +ifSpeed : SPEED : {ifBps} +# Get bit speed delta (so we dont have to provide custom delta limit) +ifInOps : DELTA : {ifInOctets} +ifOutOps : DELTA : {ifOutOctets} +# Convert our octets delta into bits per second +ifInBps : MATH : {ifInOps} x 8 +ifOutBps : MATH : {ifOutOps} x 8 +# Make some easily readable speed variables +ifInSpeed : SPEED : {ifInBps} +ifOutSpeed : SPEED : {ifOutBps} +# Now determine our percentage load, based on traffic and ifc speed +ifInLoad : MATH : ({ifInBps} / {ifBps}) x 100 +ifOutLoad : MATH : ({ifOutBps} / {ifBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +#ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/linux-openwrt/memory/exceptions =================================================================== Added: trunk/templates/linux-openwrt/memory/message =================================================================== --- trunk/templates/linux-openwrt/memory/message (rev 0) +++ trunk/templates/linux-openwrt/memory/message 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,4 @@ +Memory Used Total Percentage +Physical {MemSizeUsed}kB {MemSize}kB {MemPerUse}% +Swap {SwapSizeUsed}kB {SwapSize}kB {SwapPerUse}% + Added: trunk/templates/linux-openwrt/memory/oids =================================================================== --- trunk/templates/linux-openwrt/memory/oids (rev 0) +++ trunk/templates/linux-openwrt/memory/oids 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,6 @@ +MemBlocks : .1.3.6.1.2.1.25.2.3.1.5.2 : leaf +MemBlocksUsed : .1.3.6.1.2.1.25.2.3.1.6.2 : leaf +MemBlockSize : .1.3.6.1.2.1.25.2.3.1.4.2 : leaf +SwapBlocks : .1.3.6.1.2.1.25.2.3.1.5.3 : leaf +SwapBlocksUsed : .1.3.6.1.2.1.25.2.3.1.6.3 : leaf +SwapBlockSize : .1.3.6.1.2.1.25.2.3.1.4.3 : leaf Added: trunk/templates/linux-openwrt/memory/thresholds =================================================================== --- trunk/templates/linux-openwrt/memory/thresholds (rev 0) +++ trunk/templates/linux-openwrt/memory/thresholds 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,6 @@ +MemPerUse : red : >99 : Memory utilization is critical +MemPerUse : yellow : >95 : Memory utilization is high + +SwapPerUse : red : >80 : Swap utilization is critical +SwapPerUse : yellow : >50 : Swap utilization is high + Added: trunk/templates/linux-openwrt/memory/transforms =================================================================== --- trunk/templates/linux-openwrt/memory/transforms (rev 0) +++ trunk/templates/linux-openwrt/memory/transforms 2008-01-13 12:08:39 UTC (rev 32) @@ -0,0 +1,11 @@ +MemSize : MATH : {MemBlocks} x {MemBlockSize} / 1024 : 0 +MemSizeUsed : MATH : {MemBlocksUsed} x {MemBlockSize} / 1024 : 0 +MemAvail : MATH : {MemSize} - {MemSizeUsed} : 0 +MemPerUse : MATH : ({MemSizeUsed} x 100) / {MemSize} : 0 + +SwapSize : MATH : {SwapBlocks} x {SwapBlockSize} / 1024 : 0 +SwapSizeUsed : MATH : {SwapBlocksUsed} x {SwapBlockSize} / 1024 : 0 +SwapAvail : MATH : {SwapSize} - {SwapSizeUsed} : 0 +SwapPerUse : MATH : ({SwapSizeUsed} x 100) / {SwapSize} : 0 + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |