You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(34) |
Feb
(22) |
Mar
(2) |
Apr
(4) |
May
|
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(2) |
Oct
(4) |
Nov
(2) |
Dec
(22) |
2009 |
Jan
(20) |
Feb
(7) |
Mar
(5) |
Apr
(7) |
May
(10) |
Jun
|
Jul
(2) |
Aug
|
Sep
(21) |
Oct
(6) |
Nov
(10) |
Dec
(6) |
2010 |
Jan
(1) |
Feb
(4) |
Mar
(14) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
(3) |
2011 |
Jan
(35) |
Feb
(1) |
Mar
(12) |
Apr
(9) |
May
(2) |
Jun
|
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2013 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <buc...@us...> - 2011-01-23 13:38:06
|
Revision: 203 http://devmon.svn.sourceforge.net/devmon/?rev=203&view=rev Author: buchanmilne Date: 2011-01-23 13:37:59 +0000 (Sun, 23 Jan 2011) Log Message: ----------- Improve consistency of cisco templates: -Remove all 'ifName : alarm : Gi.+' in exceptions -Use if_stat/thresholds that every other cisco template has for cisco-3640 Modified Paths: -------------- trunk/templates/cisco-2811/if_dsc/exceptions trunk/templates/cisco-2811/if_err/exceptions trunk/templates/cisco-2811/if_load/exceptions trunk/templates/cisco-3640/if_col/exceptions trunk/templates/cisco-3640/if_dsc/exceptions trunk/templates/cisco-3640/if_err/exceptions trunk/templates/cisco-3640/if_load/exceptions trunk/templates/cisco-3640/if_stat/exceptions trunk/templates/cisco-3640/if_stat/thresholds trunk/templates/cisco-3800/if_dsc/exceptions trunk/templates/cisco-3800/if_err/exceptions trunk/templates/cisco-3800/if_stat/exceptions trunk/templates/cisco-4500/if_col/exceptions trunk/templates/cisco-4500/if_dsc/exceptions trunk/templates/cisco-4500/if_err/exceptions trunk/templates/cisco-4500/if_load/exceptions trunk/templates/cisco-4500/if_stat/exceptions trunk/templates/cisco-5500/if_dsc/exceptions trunk/templates/cisco-5500/if_err/exceptions trunk/templates/cisco-5500/if_load/exceptions trunk/templates/cisco-5500/if_stat/exceptions trunk/templates/cisco-6506/if_dsc/exceptions trunk/templates/cisco-6506/if_err/exceptions trunk/templates/cisco-6506/if_load/exceptions trunk/templates/cisco-6506/if_stat/exceptions trunk/templates/cisco-msfc2/if_col/exceptions trunk/templates/cisco-msfc2/if_dsc/exceptions trunk/templates/cisco-msfc2/if_err/exceptions trunk/templates/cisco-msfc2/if_load/exceptions trunk/templates/cisco-msfc2/if_stat/exceptions Modified: trunk/templates/cisco-2811/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-2811/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-2811/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-2811/if_err/exceptions =================================================================== --- trunk/templates/cisco-2811/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-2811/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-2811/if_load/exceptions =================================================================== --- trunk/templates/cisco-2811/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-2811/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_col/exceptions =================================================================== --- trunk/templates/cisco-3640/if_col/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_col/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-3640/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_err/exceptions =================================================================== --- trunk/templates/cisco-3640/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_load/exceptions =================================================================== --- trunk/templates/cisco-3640/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_stat/exceptions =================================================================== --- trunk/templates/cisco-3640/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3640/if_stat/thresholds =================================================================== --- trunk/templates/cisco-3640/if_stat/thresholds 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3640/if_stat/thresholds 2011-01-23 13:37:59 UTC (rev 203) @@ -1,6 +1,6 @@ ifAdminStatTxt : green : admin down : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} ifAdminStatTxt : yellow : testing : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} -ifAdminStatTxt : yellow : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} ifOperStatTxt : green : up : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} -ifOperStatTxt : yellow : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} Modified: trunk/templates/cisco-3800/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-3800/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3800/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3800/if_err/exceptions =================================================================== --- trunk/templates/cisco-3800/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3800/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-3800/if_stat/exceptions =================================================================== --- trunk/templates/cisco-3800/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-3800/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-4500/if_col/exceptions =================================================================== --- trunk/templates/cisco-4500/if_col/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-4500/if_col/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-4500/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-4500/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-4500/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-4500/if_err/exceptions =================================================================== --- trunk/templates/cisco-4500/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-4500/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-4500/if_load/exceptions =================================================================== --- trunk/templates/cisco-4500/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-4500/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-4500/if_stat/exceptions =================================================================== --- trunk/templates/cisco-4500/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-4500/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-5500/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-5500/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-5500/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-5500/if_err/exceptions =================================================================== --- trunk/templates/cisco-5500/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-5500/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-5500/if_load/exceptions =================================================================== --- trunk/templates/cisco-5500/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-5500/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-5500/if_stat/exceptions =================================================================== --- trunk/templates/cisco-5500/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-5500/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-6506/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-6506/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-6506/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -#ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+|Lo.+|EO.+ Modified: trunk/templates/cisco-6506/if_err/exceptions =================================================================== --- trunk/templates/cisco-6506/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-6506/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -#ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+|Lo.+|EO.+ Modified: trunk/templates/cisco-6506/if_load/exceptions =================================================================== --- trunk/templates/cisco-6506/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-6506/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -#ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+|Lo.+|EO.+ Modified: trunk/templates/cisco-6506/if_stat/exceptions =================================================================== --- trunk/templates/cisco-6506/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-6506/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -#ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+|Lo.+|EO.+ Modified: trunk/templates/cisco-msfc2/if_col/exceptions =================================================================== --- trunk/templates/cisco-msfc2/if_col/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-msfc2/if_col/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-msfc2/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-msfc2/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-msfc2/if_dsc/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-msfc2/if_err/exceptions =================================================================== --- trunk/templates/cisco-msfc2/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-msfc2/if_err/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-msfc2/if_load/exceptions =================================================================== --- trunk/templates/cisco-msfc2/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-msfc2/if_load/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ Modified: trunk/templates/cisco-msfc2/if_stat/exceptions =================================================================== --- trunk/templates/cisco-msfc2/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) +++ trunk/templates/cisco-msfc2/if_stat/exceptions 2011-01-23 13:37:59 UTC (rev 203) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+|VLAN.+ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:49:40
|
Revision: 202 http://devmon.svn.sourceforge.net/devmon/?rev=202&view=rev Author: buchanmilne Date: 2011-01-22 22:49:33 +0000 (Sat, 22 Jan 2011) Log Message: ----------- New Cisco 3800 and 4948 templates, with cdp test Added Paths: ----------- trunk/templates/cisco-3800/ trunk/templates/cisco-3800/README trunk/templates/cisco-3800/cdp/ trunk/templates/cisco-3800/cdp/exceptions trunk/templates/cisco-3800/cdp/message trunk/templates/cisco-3800/cdp/oids trunk/templates/cisco-3800/cdp/thresholds trunk/templates/cisco-3800/cdp/transforms trunk/templates/cisco-3800/cpu/ trunk/templates/cisco-3800/cpu/exceptions trunk/templates/cisco-3800/cpu/message trunk/templates/cisco-3800/cpu/oids trunk/templates/cisco-3800/cpu/thresholds trunk/templates/cisco-3800/cpu/transforms trunk/templates/cisco-3800/fans/ trunk/templates/cisco-3800/fans/exceptions trunk/templates/cisco-3800/fans/message trunk/templates/cisco-3800/fans/oids trunk/templates/cisco-3800/fans/thresholds trunk/templates/cisco-3800/fans/transforms trunk/templates/cisco-3800/if_dsc/ trunk/templates/cisco-3800/if_dsc/exceptions trunk/templates/cisco-3800/if_dsc/message trunk/templates/cisco-3800/if_dsc/oids trunk/templates/cisco-3800/if_dsc/thresholds trunk/templates/cisco-3800/if_dsc/transforms trunk/templates/cisco-3800/if_err/ trunk/templates/cisco-3800/if_err/exceptions trunk/templates/cisco-3800/if_err/message trunk/templates/cisco-3800/if_err/oids trunk/templates/cisco-3800/if_err/thresholds trunk/templates/cisco-3800/if_err/transforms trunk/templates/cisco-3800/if_load/ trunk/templates/cisco-3800/if_load/exceptions trunk/templates/cisco-3800/if_load/message trunk/templates/cisco-3800/if_load/oids trunk/templates/cisco-3800/if_load/thresholds trunk/templates/cisco-3800/if_load/transforms trunk/templates/cisco-3800/if_stat/ trunk/templates/cisco-3800/if_stat/exceptions trunk/templates/cisco-3800/if_stat/message trunk/templates/cisco-3800/if_stat/oids trunk/templates/cisco-3800/if_stat/thresholds trunk/templates/cisco-3800/if_stat/transforms trunk/templates/cisco-3800/specs trunk/templates/cisco-3800/vpn/ trunk/templates/cisco-3800/vpn/exceptions trunk/templates/cisco-3800/vpn/message trunk/templates/cisco-3800/vpn/oids trunk/templates/cisco-3800/vpn/thresholds trunk/templates/cisco-3800/vpn/transforms trunk/templates/cisco-4948/ trunk/templates/cisco-4948/README trunk/templates/cisco-4948/cdp/ trunk/templates/cisco-4948/cdp/exceptions trunk/templates/cisco-4948/cdp/message trunk/templates/cisco-4948/cdp/oids trunk/templates/cisco-4948/cdp/thresholds trunk/templates/cisco-4948/cdp/transforms trunk/templates/cisco-4948/cpu/ trunk/templates/cisco-4948/cpu/exceptions trunk/templates/cisco-4948/cpu/message trunk/templates/cisco-4948/cpu/oids trunk/templates/cisco-4948/cpu/thresholds trunk/templates/cisco-4948/cpu/transforms trunk/templates/cisco-4948/if_col/ trunk/templates/cisco-4948/if_col/exceptions trunk/templates/cisco-4948/if_col/message trunk/templates/cisco-4948/if_col/oids trunk/templates/cisco-4948/if_col/thresholds trunk/templates/cisco-4948/if_col/transforms trunk/templates/cisco-4948/if_dsc/ trunk/templates/cisco-4948/if_dsc/exceptions trunk/templates/cisco-4948/if_dsc/message trunk/templates/cisco-4948/if_dsc/oids trunk/templates/cisco-4948/if_dsc/thresholds trunk/templates/cisco-4948/if_dsc/transforms trunk/templates/cisco-4948/if_err/ trunk/templates/cisco-4948/if_err/exceptions trunk/templates/cisco-4948/if_err/message trunk/templates/cisco-4948/if_err/oids trunk/templates/cisco-4948/if_err/thresholds trunk/templates/cisco-4948/if_err/transforms trunk/templates/cisco-4948/if_ipv4/ trunk/templates/cisco-4948/if_ipv4/exceptions trunk/templates/cisco-4948/if_ipv4/message trunk/templates/cisco-4948/if_ipv4/message.orig trunk/templates/cisco-4948/if_ipv4/oids trunk/templates/cisco-4948/if_ipv4/thresholds trunk/templates/cisco-4948/if_ipv4/transforms trunk/templates/cisco-4948/if_load/ trunk/templates/cisco-4948/if_load/exceptions trunk/templates/cisco-4948/if_load/message trunk/templates/cisco-4948/if_load/oids trunk/templates/cisco-4948/if_load/thresholds trunk/templates/cisco-4948/if_load/transforms trunk/templates/cisco-4948/if_stat/ trunk/templates/cisco-4948/if_stat/exceptions trunk/templates/cisco-4948/if_stat/message trunk/templates/cisco-4948/if_stat/oids trunk/templates/cisco-4948/if_stat/thresholds trunk/templates/cisco-4948/if_stat/transforms trunk/templates/cisco-4948/memory/ trunk/templates/cisco-4948/memory/exceptions trunk/templates/cisco-4948/memory/message trunk/templates/cisco-4948/memory/oids trunk/templates/cisco-4948/memory/thresholds trunk/templates/cisco-4948/memory/transforms trunk/templates/cisco-4948/specs trunk/templates/cisco-4948/temp/ trunk/templates/cisco-4948/temp/exceptions trunk/templates/cisco-4948/temp/message trunk/templates/cisco-4948/temp/oids trunk/templates/cisco-4948/temp/thresholds trunk/templates/cisco-4948/temp/transforms Added: trunk/templates/cisco-3800/README =================================================================== --- trunk/templates/cisco-3800/README (rev 0) +++ trunk/templates/cisco-3800/README 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +This template was created by Eric Schwimmer. + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/cisco-3800/cdp/exceptions =================================================================== Added: trunk/templates/cisco-3800/cdp/message =================================================================== --- trunk/templates/cisco-3800/cdp/message (rev 0) +++ trunk/templates/cisco-3800/cdp/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Local Port|Remote Device|Remote Device Port|Platform|VTP Domain|Native VLAN|Duplex +{cdpCacheDeviceLocalPort}|{cdpCacheDeviceId}|{cdpCacheDevicePort}|{cdpCachePlatform}|{cdpCacheVTPMgmtDomain}|{cdpCacheNativeVLAN}|{cdpCacheDuplex} Added: trunk/templates/cisco-3800/cdp/oids =================================================================== --- trunk/templates/cisco-3800/cdp/oids (rev 0) +++ trunk/templates/cisco-3800/cdp/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,26 @@ +#cdpCacheIfIndex : .1.3.6.1.4.1.9.9.23.1.2.1.1.1 : branch +#cdpCacheDeviceIndex : .1.3.6.1.4.1.9.9.23.1.2.1.1.2 : branch +cdpCacheAddressType : .1.3.6.1.4.1.9.9.23.1.2.1.1.3 : branch +cdpCacheAddress : .1.3.6.1.4.1.9.9.23.1.2.1.1.4 : branch +cdpCacheVersion : .1.3.6.1.4.1.9.9.23.1.2.1.1.5 : branch +cdpCacheDeviceId : .1.3.6.1.4.1.9.9.23.1.2.1.1.6 : branch +cdpCacheDevicePort : .1.3.6.1.4.1.9.9.23.1.2.1.1.7 : branch +cdpCachePlatform : .1.3.6.1.4.1.9.9.23.1.2.1.1.8 : branch +#cdpCacheCapabilities : .1.3.6.1.4.1.9.9.23.1.2.1.1.9 : branch +cdpCacheVTPMgmtDomain : .1.3.6.1.4.1.9.9.23.1.2.1.1.10 : branch +cdpCacheNativeVLAN : .1.3.6.1.4.1.9.9.23.1.2.1.1.11 : branch +cdpCacheDuplex : .1.3.6.1.4.1.9.9.23.1.2.1.1.12 : branch +#cdpCacheApplianceID : .1.3.6.1.4.1.9.9.23.1.2.1.1.13 : branch +#cdpCacheVlanID : .1.3.6.1.4.1.9.9.23.1.2.1.1.14 : branch +#cdpCachePowerConsumption : .1.3.6.1.4.1.9.9.23.1.2.1.1.15 : branch +#cdpCacheMTU : .1.3.6.1.4.1.9.9.23.1.2.1.1.16 : branch +#cdpCacheSysName : .1.3.6.1.4.1.9.9.23.1.2.1.1.17 : branch +#cdpCacheSysObjectID : .1.3.6.1.4.1.9.9.23.1.2.1.1.18 : branch +#cdpCachePrimaryMgmtAddrType : .1.3.6.1.4.1.9.9.23.1.2.1.1.19 : branch +#cdpCachePrimaryMgmtAddr : .1.3.6.1.4.1.9.9.23.1.2.1.1.20 : branch +#cdpCacheSecondaryMgmtAddrType : .1.3.6.1.4.1.9.9.23.1.2.1.1.21 : branch +#cdpCacheSecondaryMgmtAddr : .1.3.6.1.4.1.9.9.23.1.2.1.1.22 : branch +#cdpCachePhysLocation : .1.3.6.1.4.1.9.9.23.1.2.1.1.23 : branch +#cdpCacheLastChange : .1.3.6.1.4.1.9.9.23.1.2.1.1.24 : branch + +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch Added: trunk/templates/cisco-3800/cdp/thresholds =================================================================== Added: trunk/templates/cisco-3800/cdp/transforms =================================================================== --- trunk/templates/cisco-3800/cdp/transforms (rev 0) +++ trunk/templates/cisco-3800/cdp/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,13 @@ +cdpCacheDeviceLocalPortIndexTwoDig : INDEX : {cdpCacheDevicePort} +cdpCacheDeviceLocalPortIndex : REGSUB : {cdpCacheDeviceLocalPortIndexTwoDig} /\d+\.(\d+)$/$1/ +cdpCacheDeviceLocalPort : CHAIN : {cdpCacheDeviceLocalPortIndex} {ifName} + +cdpCacheAddressp1H : SUBSTR :{cdpCacheAddress} 0 2 +cdpCacheAddressp2H : SUBSTR :{cdpCacheAddress} 2 2 +cdpCacheAddressp3H : SUBSTR :{cdpCacheAddress} 4 2 +cdpCacheAddressp4H : SUBSTR :{cdpCacheAddress} 6 2 + +cdpCacheAddressp1 : CONVERT : {cdpCacheAddressp1H} hex +cdpCacheAddressp2 : CONVERT : {cdpCacheAddressp2H} hex +cdpCacheAddressp3 : CONVERT : {cdpCacheAddressp3H} hex +cdpCacheAddressp4 : CONVERT : {cdpCacheAddressp4H} hex Added: trunk/templates/cisco-3800/cpu/exceptions =================================================================== Added: trunk/templates/cisco-3800/cpu/message =================================================================== --- trunk/templates/cisco-3800/cpu/message (rev 0) +++ trunk/templates/cisco-3800/cpu/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ + +{sysUpTimeSecs.color}: Up for {UpTimeTxt} + +System description: +{sysDescr} Added: trunk/templates/cisco-3800/cpu/oids =================================================================== --- trunk/templates/cisco-3800/cpu/oids (rev 0) +++ trunk/templates/cisco-3800/cpu/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf Added: trunk/templates/cisco-3800/cpu/thresholds =================================================================== --- trunk/templates/cisco-3800/cpu/thresholds (rev 0) +++ trunk/templates/cisco-3800/cpu/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/cisco-3800/cpu/transforms =================================================================== --- trunk/templates/cisco-3800/cpu/transforms (rev 0) +++ trunk/templates/cisco-3800/cpu/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/cisco-3800/fans/exceptions =================================================================== Added: trunk/templates/cisco-3800/fans/message =================================================================== --- trunk/templates/cisco-3800/fans/message (rev 0) +++ trunk/templates/cisco-3800/fans/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Fan location|Fan state +{FanDescr}|{FanStatus.color}{FanStatus} Added: trunk/templates/cisco-3800/fans/oids =================================================================== --- trunk/templates/cisco-3800/fans/oids (rev 0) +++ trunk/templates/cisco-3800/fans/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +FanDescr : .1.3.6.1.4.1.9.9.13.1.4.1.2 : branch +FanState : .1.3.6.1.4.1.9.9.13.1.4.1.3 : branch Added: trunk/templates/cisco-3800/fans/thresholds =================================================================== --- trunk/templates/cisco-3800/fans/thresholds (rev 0) +++ trunk/templates/cisco-3800/fans/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +FanStatus : red : critical|not functioning +FanStatus : yellow : warning|shutdown|not present +FanStatus : green : normal Added: trunk/templates/cisco-3800/fans/transforms =================================================================== --- trunk/templates/cisco-3800/fans/transforms (rev 0) +++ trunk/templates/cisco-3800/fans/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1 @@ +FanStatus : SWITCH : {FanState} 1=normal,2=warning,3=critical,4=shutdown,5=not present,6=not functioning Added: trunk/templates/cisco-3800/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-3800/if_dsc/exceptions (rev 0) +++ trunk/templates/cisco-3800/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : Gi.+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3800/if_dsc/message =================================================================== --- trunk/templates/cisco-3800/if_dsc/message (rev 0) +++ trunk/templates/cisco-3800/if_dsc/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,8 @@ +<b>Discards:</b> +TABLE: +Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out +{ifName}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct}%{ifOutDscPct.errors} + +Note: +Error rates are per second. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3800/if_dsc/oids =================================================================== --- trunk/templates/cisco-3800/if_dsc/oids (rev 0) +++ trunk/templates/cisco-3800/if_dsc/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +ifName : .1.3.6.1.2.1.2.2.1.2 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutDiscards : .1.3.6.1.2.1.2.2.1.19 : branch Added: trunk/templates/cisco-3800/if_dsc/thresholds =================================================================== --- trunk/templates/cisco-3800/if_dsc/thresholds (rev 0) +++ trunk/templates/cisco-3800/if_dsc/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInDscPct : yellow : 5 : {ifName} - High input discard rate. ({ifInDscPct}%) +ifInDscPct : red : 10 : {ifName} - Very high input discard rate. ({ifInDscPct}%) +ifOutDscPct : yellow : 5 : {ifName} - High output discard rate ({ifOutDscPct}%) +ifOutDscPct : red : 10 : {ifName} - Very high output discard rate ({ifOutDscPct}%) Added: trunk/templates/cisco-3800/if_dsc/transforms =================================================================== --- trunk/templates/cisco-3800/if_dsc/transforms (rev 0) +++ trunk/templates/cisco-3800/if_dsc/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,12 @@ +# 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 +# Do delta transform on all error counters +ifInDps : DELTA : {ifInDiscards} +ifOutDps : DELTA : {ifOutDiscards} +# Perform error to traffic percentage calculations +ifInDscPct : MATH : ({ifInDps} / {ifInBps}) x 100 +ifOutDscPct : MATH : ({ifOutDps} / {ifOutBps}) x 100 Added: trunk/templates/cisco-3800/if_err/exceptions =================================================================== --- trunk/templates/cisco-3800/if_err/exceptions (rev 0) +++ trunk/templates/cisco-3800/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : Gi.+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3800/if_err/message =================================================================== --- trunk/templates/cisco-3800/if_err/message (rev 0) +++ trunk/templates/cisco-3800/if_err/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,11 @@ +<b>Errors:</b> +Input errors: yellow={ifInErrPct.thresh:yellow}%, red={ifInErrPct.thresh:red}% +Output errors: yellow={ifOutErrPct.thresh:yellow}%, red={ifOutErrPct.thresh:red}% + +TABLE: +Ifc name|Errors in|Error rate in|Error load in|Errors out|Error rate out|Error load out +{ifName}|{ifInErrors}|{ifInEps}|{ifInErrPct.color}{ifInErrPct}%{ifInErrPct.errors}|{ifOutErrors}|{ifOutEps}|{ifOutErrPct.color}{ifOutErrPct}%{ifOutErrPct.errors} + +Note: +Error rates are per second, averaged over a 60 second interval. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-3800/if_err/oids =================================================================== --- trunk/templates/cisco-3800/if_err/oids (rev 0) +++ trunk/templates/cisco-3800/if_err/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +ifName : .1.3.6.1.2.1.2.2.1.2.1 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutErrors : .1.3.6.1.2.1.2.2.1.20 : branch Added: trunk/templates/cisco-3800/if_err/thresholds =================================================================== --- trunk/templates/cisco-3800/if_err/thresholds (rev 0) +++ trunk/templates/cisco-3800/if_err/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInErrPct : yellow : 5 : {ifName} - High input error rate ({ifInErrPct}%) +ifInErrPct : red : 10 : {ifName} - Very high input error rate ({ifInErrPct}%) +ifOutErrPct : yellow : 5 : {ifName} - High output error rate ({ifOutErrPct}%) +ifOutErrPct : red : 10 : {ifName} - Very high output error rate ({ifOutErrPct}%) Added: trunk/templates/cisco-3800/if_err/transforms =================================================================== --- trunk/templates/cisco-3800/if_err/transforms (rev 0) +++ trunk/templates/cisco-3800/if_err/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,13 @@ +# 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 +# Do delta transform on all error counters +ifInEps : DELTA : {ifInErrors} +ifOutEps : DELTA : {ifOutErrors} +# Perform error to traffic percentage calculations +ifInErrPct : MATH : ({ifInEps} / {ifInBps}) x 100 +ifOutErrPct : MATH : ({ifOutEps} / {ifOutBps}) x 100 + Added: trunk/templates/cisco-3800/if_load/exceptions =================================================================== --- trunk/templates/cisco-3800/if_load/exceptions (rev 0) +++ trunk/templates/cisco-3800/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1 @@ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3800/if_load/message =================================================================== --- trunk/templates/cisco-3800/if_load/message (rev 0) +++ trunk/templates/cisco-3800/if_load/message 2011-01-22 22:49:33 UTC (rev 202) @@ -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/cisco-3800/if_load/oids =================================================================== --- trunk/templates/cisco-3800/if_load/oids (rev 0) +++ trunk/templates/cisco-3800/if_load/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ifName : .1.3.6.1.2.1.2.2.1.10 : 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/cisco-3800/if_load/thresholds =================================================================== --- trunk/templates/cisco-3800/if_load/thresholds (rev 0) +++ trunk/templates/cisco-3800/if_load/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -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/cisco-3800/if_load/transforms =================================================================== --- trunk/templates/cisco-3800/if_load/transforms (rev 0) +++ trunk/templates/cisco-3800/if_load/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,14 @@ +# 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 Added: trunk/templates/cisco-3800/if_stat/exceptions =================================================================== --- trunk/templates/cisco-3800/if_stat/exceptions (rev 0) +++ trunk/templates/cisco-3800/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : Gi.+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-3800/if_stat/message =================================================================== --- trunk/templates/cisco-3800/if_stat/message (rev 0) +++ trunk/templates/cisco-3800/if_stat/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Ifc name|Ifc speed|Ifc status +{ifName}|{ifSpeed}|{ifStat.color}{ifStat}{ifStat.errors} Added: trunk/templates/cisco-3800/if_stat/oids =================================================================== --- trunk/templates/cisco-3800/if_stat/oids (rev 0) +++ trunk/templates/cisco-3800/if_stat/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ifName : .1.3.6.1.2.1.2.2.1.10 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch +ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Added: trunk/templates/cisco-3800/if_stat/thresholds =================================================================== --- trunk/templates/cisco-3800/if_stat/thresholds (rev 0) +++ trunk/templates/cisco-3800/if_stat/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +ifAdminStatTxt : green : admin down : Interface {ifName} is {ifAdminStatTxt} +ifAdminStatTxt : yellow : testing : Interface {ifName} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName} is {ifAdminStatTxt} +ifOperStatTxt : green : up : Interface {ifName} is {ifOperStatTxt} +ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName} is {ifOperStatTxt} Added: trunk/templates/cisco-3800/if_stat/transforms =================================================================== --- trunk/templates/cisco-3800/if_stat/transforms (rev 0) +++ trunk/templates/cisco-3800/if_stat/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ifAdminStatTxt : SWITCH : {ifAdminStatNum} 1=up,2=admin down,3=testing +ifOperStatTxt : SWITCH : {ifOperStatNum} 1=up,2=down,3=testing,4=unknown,5=dormant,6=not present,7=lower layer down +ifStat : BEST : {ifAdminStatTxt},{ifOperStatTxt} +ifSpeed : SPEED : {ifBps} Added: trunk/templates/cisco-3800/specs =================================================================== --- trunk/templates/cisco-3800/specs (rev 0) +++ trunk/templates/cisco-3800/specs 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +vendor : cisco +model : 3800 +snmpver : 2 +sysdesc : Cisco IOS Software.*3800 Software Added: trunk/templates/cisco-3800/vpn/exceptions =================================================================== Added: trunk/templates/cisco-3800/vpn/message =================================================================== --- trunk/templates/cisco-3800/vpn/message (rev 0) +++ trunk/templates/cisco-3800/vpn/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Description|Type|Peer|Number of Peers +{cipsStaticCryptomapDescr}|{cipsStaticCryptomapType}|{cipsStaticCryptomapPeer}|{cipsStaticCryptomapNumPeers} Added: trunk/templates/cisco-3800/vpn/oids =================================================================== --- trunk/templates/cisco-3800/vpn/oids (rev 0) +++ trunk/templates/cisco-3800/vpn/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +cipsStaticCryptomapType : 1.3.6.1.4.1.9.10.62.1.2.3.3.1.2 : branch +cipsStaticCryptomapDescr : 1.3.6.1.4.1.9.10.62.1.2.3.3.1.3 : branch +cipsStaticCryptomapPeerB : 1.3.6.1.4.1.9.10.62.1.2.3.3.1.4 : branch +cipsStaticCryptomapNumPeers : 1.3.6.1.4.1.9.10.62.1.2.3.3.1.5 : branch Added: trunk/templates/cisco-3800/vpn/thresholds =================================================================== Added: trunk/templates/cisco-3800/vpn/transforms =================================================================== --- trunk/templates/cisco-3800/vpn/transforms (rev 0) +++ trunk/templates/cisco-3800/vpn/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,16 @@ +cipsStaticCryptomapPeerp1B : SUBSTR :{cipsStaticCryptomapPeerB} 0 1 +cipsStaticCryptomapPeerp2B : SUBSTR :{cipsStaticCryptomapPeerB} 1 1 +cipsStaticCryptomapPeerp3B : SUBSTR :{cipsStaticCryptomapPeerB} 2 1 +cipsStaticCryptomapPeerp4B : SUBSTR :{cipsStaticCryptomapPeerB} 3 1 + +cipsStaticCryptomapPeerp1H : UNPACK : {cipsStaticCryptomapPeerp1B} H2 +cipsStaticCryptomapPeerp2H : UNPACK : {cipsStaticCryptomapPeerp2B} H2 +cipsStaticCryptomapPeerp3H : UNPACK : {cipsStaticCryptomapPeerp3B} H2 +cipsStaticCryptomapPeerp4H : UNPACK : {cipsStaticCryptomapPeerp4B} H2 + +cipsStaticCryptomapPeerp1 : CONVERT : {cipsStaticCryptomapPeerp1H} hex +cipsStaticCryptomapPeerp2 : CONVERT : {cipsStaticCryptomapPeerp2H} hex +cipsStaticCryptomapPeerp3 : CONVERT : {cipsStaticCryptomapPeerp3H} hex +cipsStaticCryptomapPeerp4 : CONVERT : {cipsStaticCryptomapPeerp4H} hex + +cipsStaticCryptomapPeer : REGSUB : {cipsStaticCryptomapPeerB} /.*/{cipsStaticCryptomapPeerp1}.{cipsStaticCryptomapPeerp2}.{cipsStaticCryptomapPeerp3}.{cipsStaticCryptomapPeerp4}/ Added: trunk/templates/cisco-4948/README =================================================================== --- trunk/templates/cisco-4948/README (rev 0) +++ trunk/templates/cisco-4948/README 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +This template was created by Buchan Milne + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/cisco-4948/cdp/exceptions =================================================================== Added: trunk/templates/cisco-4948/cdp/message =================================================================== --- trunk/templates/cisco-4948/cdp/message (rev 0) +++ trunk/templates/cisco-4948/cdp/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Local Port|Remote Device|Remote Device Port|Platform|VTP Domain|Native VLAN|Duplex +{cdpCacheDeviceLocalPort}|{cdpCacheDeviceId}|{cdpCacheDevicePort}|{cdpCachePlatform}|{cdpCacheVTPMgmtDomain}|{cdpCacheNativeVLAN}|{cdpCacheDuplex} Added: trunk/templates/cisco-4948/cdp/oids =================================================================== --- trunk/templates/cisco-4948/cdp/oids (rev 0) +++ trunk/templates/cisco-4948/cdp/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,26 @@ +#cdpCacheIfIndex : .1.3.6.1.4.1.9.9.23.1.2.1.1.1 : branch +#cdpCacheDeviceIndex : .1.3.6.1.4.1.9.9.23.1.2.1.1.2 : branch +cdpCacheAddressType : .1.3.6.1.4.1.9.9.23.1.2.1.1.3 : branch +cdpCacheAddress : .1.3.6.1.4.1.9.9.23.1.2.1.1.4 : branch +cdpCacheVersion : .1.3.6.1.4.1.9.9.23.1.2.1.1.5 : branch +cdpCacheDeviceId : .1.3.6.1.4.1.9.9.23.1.2.1.1.6 : branch +cdpCacheDevicePort : .1.3.6.1.4.1.9.9.23.1.2.1.1.7 : branch +cdpCachePlatform : .1.3.6.1.4.1.9.9.23.1.2.1.1.8 : branch +#cdpCacheCapabilities : .1.3.6.1.4.1.9.9.23.1.2.1.1.9 : branch +cdpCacheVTPMgmtDomain : .1.3.6.1.4.1.9.9.23.1.2.1.1.10 : branch +cdpCacheNativeVLAN : .1.3.6.1.4.1.9.9.23.1.2.1.1.11 : branch +cdpCacheDuplex : .1.3.6.1.4.1.9.9.23.1.2.1.1.12 : branch +#cdpCacheApplianceID : .1.3.6.1.4.1.9.9.23.1.2.1.1.13 : branch +#cdpCacheVlanID : .1.3.6.1.4.1.9.9.23.1.2.1.1.14 : branch +#cdpCachePowerConsumption : .1.3.6.1.4.1.9.9.23.1.2.1.1.15 : branch +#cdpCacheMTU : .1.3.6.1.4.1.9.9.23.1.2.1.1.16 : branch +#cdpCacheSysName : .1.3.6.1.4.1.9.9.23.1.2.1.1.17 : branch +#cdpCacheSysObjectID : .1.3.6.1.4.1.9.9.23.1.2.1.1.18 : branch +#cdpCachePrimaryMgmtAddrType : .1.3.6.1.4.1.9.9.23.1.2.1.1.19 : branch +#cdpCachePrimaryMgmtAddr : .1.3.6.1.4.1.9.9.23.1.2.1.1.20 : branch +#cdpCacheSecondaryMgmtAddrType : .1.3.6.1.4.1.9.9.23.1.2.1.1.21 : branch +#cdpCacheSecondaryMgmtAddr : .1.3.6.1.4.1.9.9.23.1.2.1.1.22 : branch +#cdpCachePhysLocation : .1.3.6.1.4.1.9.9.23.1.2.1.1.23 : branch +#cdpCacheLastChange : .1.3.6.1.4.1.9.9.23.1.2.1.1.24 : branch + +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch Added: trunk/templates/cisco-4948/cdp/thresholds =================================================================== Added: trunk/templates/cisco-4948/cdp/transforms =================================================================== --- trunk/templates/cisco-4948/cdp/transforms (rev 0) +++ trunk/templates/cisco-4948/cdp/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,13 @@ +cdpCacheDeviceLocalPortIndexTwoDig : INDEX : {cdpCacheDevicePort} +cdpCacheDeviceLocalPortIndex : REGSUB : {cdpCacheDeviceLocalPortIndexTwoDig} /\d+\.(\d+)$/$1/ +cdpCacheDeviceLocalPort : CHAIN : {cdpCacheDeviceLocalPortIndex} {ifName} + +cdpCacheAddressp1H : SUBSTR :{cdpCacheAddress} 0 2 +cdpCacheAddressp2H : SUBSTR :{cdpCacheAddress} 2 2 +cdpCacheAddressp3H : SUBSTR :{cdpCacheAddress} 4 2 +cdpCacheAddressp4H : SUBSTR :{cdpCacheAddress} 6 2 + +cdpCacheAddressp1 : CONVERT : {cdpCacheAddressp1H} hex +cdpCacheAddressp2 : CONVERT : {cdpCacheAddressp2H} hex +cdpCacheAddressp3 : CONVERT : {cdpCacheAddressp3H} hex +cdpCacheAddressp4 : CONVERT : {cdpCacheAddressp4H} hex Added: trunk/templates/cisco-4948/cpu/exceptions =================================================================== Added: trunk/templates/cisco-4948/cpu/message =================================================================== --- trunk/templates/cisco-4948/cpu/message (rev 0) +++ trunk/templates/cisco-4948/cpu/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,12 @@ +Name: {sysName} +Contact: {sysContact} +Location: {sysLocation} +{sysUpTimeSecs.color}: Up for {UpTimeTxt} +{sysUpTimeSecs.color}: Last reboot due to {sysReloadReason} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% + +System description: +{sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Added: trunk/templates/cisco-4948/cpu/oids =================================================================== --- trunk/templates/cisco-4948/cpu/oids (rev 0) +++ trunk/templates/cisco-4948/cpu/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,8 @@ + +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysContact : .1.3.6.1.2.1.1.4.0 : leaf +sysName : .1.3.6.1.2.1.1.5.0 : leaf +sysLocation : .1.3.6.1.2.1.1.6.0 : leaf +sysReloadReason : .1.3.6.1.4.1.9.2.1.2.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +CPUTotal5Min : .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 : leaf Added: trunk/templates/cisco-4948/cpu/thresholds =================================================================== --- trunk/templates/cisco-4948/cpu/thresholds (rev 0) +++ trunk/templates/cisco-4948/cpu/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,8 @@ + +CPUTotal5Min : red : >70 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >30 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/cisco-4948/cpu/transforms =================================================================== --- trunk/templates/cisco-4948/cpu/transforms (rev 0) +++ trunk/templates/cisco-4948/cpu/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/cisco-4948/if_col/exceptions =================================================================== --- trunk/templates/cisco-4948/if_col/exceptions (rev 0) +++ trunk/templates/cisco-4948/if_col/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VLAN.+ Added: trunk/templates/cisco-4948/if_col/message =================================================================== --- trunk/templates/cisco-4948/if_col/message (rev 0) +++ trunk/templates/cisco-4948/if_col/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,9 @@ +<b>Collisions:</b> +Collision load: yellow={ifOutColPct.thresh:yellow}%, red={ifOutColPct.thresh:red}% +TABLE: +Ifc name|Collisions|Collisions rate|Collisions load +{ifName}{ifAliasBox}|{ifOutCollisions}|{ifOutCps}|{ifOutColPct.color}{ifOutColPct}%{ifOutColPct.errors} + +Note: +Error rates are per second. +Load percentages are based on an error/packet ratio. Added: trunk/templates/cisco-4948/if_col/oids =================================================================== --- trunk/templates/cisco-4948/if_col/oids (rev 0) +++ trunk/templates/cisco-4948/if_col/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifOutCollisions : .1.3.6.1.4.1.9.2.2.1.1.25 : branch +ifOutPktsSec : .1.3.6.1.4.1.9.2.2.1.1.9 : branch Added: trunk/templates/cisco-4948/if_col/thresholds =================================================================== --- trunk/templates/cisco-4948/if_col/thresholds (rev 0) +++ trunk/templates/cisco-4948/if_col/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifOutColPct : yellow : 40 : {ifName}{ifAliasBox} - High output collision rate ({ifOutColPct}%) +ifOutColPct : red : 70 : {ifName}{ifAliasBox} - Very high output collision rate ({ifOutColPct}%) Added: trunk/templates/cisco-4948/if_col/transforms =================================================================== --- trunk/templates/cisco-4948/if_col/transforms (rev 0) +++ trunk/templates/cisco-4948/if_col/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,12 @@ +# Convert our total ifc octets(bytes) into bits +ifOutCps : DELTA : {ifOutCollisions} + +# Create our REAL packets per second +ifOutPps : MATH : {ifOutCps} + {ifOutPktsSec} + +# Determine percentage of packets that are collisions +ifOutColPct : MATH : ({ifOutCps} / {ifOutPps}) x 100 + +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-4948/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-4948/if_dsc/exceptions (rev 0) +++ trunk/templates/cisco-4948/if_dsc/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VLAN.+ Added: trunk/templates/cisco-4948/if_dsc/message =================================================================== --- trunk/templates/cisco-4948/if_dsc/message (rev 0) +++ trunk/templates/cisco-4948/if_dsc/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,8 @@ +<b>Discards:</b> +TABLE: +Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out +{ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct}%{ifOutDscPct.errors} + +Note: +Error rates are per second. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-4948/if_dsc/oids =================================================================== --- trunk/templates/cisco-4948/if_dsc/oids (rev 0) +++ trunk/templates/cisco-4948/if_dsc/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutDiscards : .1.3.6.1.2.1.2.2.1.19 : branch Added: trunk/templates/cisco-4948/if_dsc/thresholds =================================================================== --- trunk/templates/cisco-4948/if_dsc/thresholds (rev 0) +++ trunk/templates/cisco-4948/if_dsc/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInDscPct : yellow : 5 : {ifName}{ifAliasBox} - High input discard rate. ({ifInDscPct}%) +ifInDscPct : red : 10 : {ifName}{ifAliasBox} - Very high input discard rate. ({ifInDscPct}%) +ifOutDscPct : yellow : 5 : {ifName}{ifAliasBox} - High output discard rate ({ifOutDscPct}%) +ifOutDscPct : red : 10 : {ifName}{ifAliasBox} - Very high output discard rate ({ifOutDscPct}%) Added: trunk/templates/cisco-4948/if_dsc/transforms =================================================================== --- trunk/templates/cisco-4948/if_dsc/transforms (rev 0) +++ trunk/templates/cisco-4948/if_dsc/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,14 @@ +# 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 +# Do delta transform on all error counters +ifInDps : DELTA : {ifInDiscards} +ifOutDps : DELTA : {ifOutDiscards} +# Perform error to traffic percentage calculations +ifInDscPct : MATH : ({ifInDps} / {ifInBps}) x 100 +ifOutDscPct : MATH : ({ifOutDps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-4948/if_err/exceptions =================================================================== --- trunk/templates/cisco-4948/if_err/exceptions (rev 0) +++ trunk/templates/cisco-4948/if_err/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VLAN.+ Added: trunk/templates/cisco-4948/if_err/message =================================================================== --- trunk/templates/cisco-4948/if_err/message (rev 0) +++ trunk/templates/cisco-4948/if_err/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,11 @@ +<b>Errors:</b> +Input errors: yellow={ifInErrPct.thresh:yellow}%, red={ifInErrPct.thresh:red}% +Output errors: yellow={ifOutErrPct.thresh:yellow}%, red={ifOutErrPct.thresh:red}% + +TABLE: +Ifc name|Errors in|Error rate in|Error load in|Errors out|Error rate out|Error load out +{ifName}{ifAliasBox}|{ifInErrors}|{ifInEps}|{ifInErrPct.color}{ifInErrPct}%{ifInErrPct.errors}|{ifOutErrors}|{ifOutEps}|{ifOutErrPct.color}{ifOutErrPct}%{ifOutErrPct.errors} + +Note: +Error rates are per second, averaged over a 60 second interval. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-4948/if_err/oids =================================================================== --- trunk/templates/cisco-4948/if_err/oids (rev 0) +++ trunk/templates/cisco-4948/if_err/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutErrors : .1.3.6.1.2.1.2.2.1.20 : branch Added: trunk/templates/cisco-4948/if_err/thresholds =================================================================== --- trunk/templates/cisco-4948/if_err/thresholds (rev 0) +++ trunk/templates/cisco-4948/if_err/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,7 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message + +ifInErrPct : yellow : 5 : {ifName}{ifAliasBox} - High input error rate ({ifInErrPct}%) +ifInErrPct : red : 10 : {ifName}{ifAliasBox} - Very high input error rate ({ifInErrPct}%) +ifOutErrPct : yellow : 5 : {ifName}{ifAliasBox} - High output error rate ({ifOutErrPct}%) +ifOutErrPct : red : 10 : {ifName}{ifAliasBox} - Very high output error rate ({ifOutErrPct}%) Added: trunk/templates/cisco-4948/if_err/transforms =================================================================== --- trunk/templates/cisco-4948/if_err/transforms (rev 0) +++ trunk/templates/cisco-4948/if_err/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,15 @@ +# 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 +# Do delta transform on all error counters +ifInEps : DELTA : {ifInErrors} +ifOutEps : DELTA : {ifOutErrors} +# Perform error to traffic percentage calculations +ifInErrPct : MATH : ({ifInEps} / {ifInBps}) x 100 +ifOutErrPct : MATH : ({ifOutEps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-4948/if_ipv4/exceptions =================================================================== Added: trunk/templates/cisco-4948/if_ipv4/message =================================================================== --- trunk/templates/cisco-4948/if_ipv4/message (rev 0) +++ trunk/templates/cisco-4948/if_ipv4/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ + +TABLE:noalarmsmsg +Index|Interface Desc|IP|Netmask|Broadcast +{ipAdEntIfIndex}||{ipAdEntAddr}|{ipAdEntNetMask}|{ipAdEntBcastAddr} Added: trunk/templates/cisco-4948/if_ipv4/message.orig =================================================================== --- trunk/templates/cisco-4948/if_ipv4/message.orig (rev 0) +++ trunk/templates/cisco-4948/if_ipv4/message.orig 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ + +TABLE: +Ifc name|IP|Netmask|Broadcast +{ifName}{ifAliasBox}|{ipAdEntAddr}|{ipAdEntNetMask}|{ipAdEntBcastAddr} Added: trunk/templates/cisco-4948/if_ipv4/oids =================================================================== --- trunk/templates/cisco-4948/if_ipv4/oids (rev 0) +++ trunk/templates/cisco-4948/if_ipv4/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,7 @@ +ipAdEntAddr : 1.3.6.1.2.1.4.20.1.1 : branch +ipAdEntIfIndex : 1.3.6.1.2.1.4.20.1.2 : branch +ipAdEntNetMask : 1.3.6.1.2.1.4.20.1.3 : branch +ipAdEntBcastAddr : 1.3.6.1.2.1.4.20.1.4 : branch +ifName : 1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : 1.3.6.1.2.1.31.1.1.1.18 : branch + Added: trunk/templates/cisco-4948/if_ipv4/thresholds =================================================================== Added: trunk/templates/cisco-4948/if_ipv4/transforms =================================================================== --- trunk/templates/cisco-4948/if_ipv4/transforms (rev 0) +++ trunk/templates/cisco-4948/if_ipv4/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +ipAdEntIfName : CHAIN : {ipAdEntIfIndex} {ifName} +ipAdEntIfAlias : CHAIN : {ipAdEntIfIndex} {ifAlias} +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-4948/if_load/exceptions =================================================================== --- trunk/templates/cisco-4948/if_load/exceptions (rev 0) +++ trunk/templates/cisco-4948/if_load/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VLAN.+ Added: trunk/templates/cisco-4948/if_load/message =================================================================== --- trunk/templates/cisco-4948/if_load/message (rev 0) +++ trunk/templates/cisco-4948/if_load/message 2011-01-22 22:49:33 UTC (rev 202) @@ -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}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} Added: trunk/templates/cisco-4948/if_load/oids =================================================================== --- trunk/templates/cisco-4948/if_load/oids (rev 0) +++ trunk/templates/cisco-4948/if_load/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : 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/cisco-4948/if_load/thresholds =================================================================== --- trunk/templates/cisco-4948/if_load/thresholds (rev 0) +++ trunk/templates/cisco-4948/if_load/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ifInLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifInLoad : red : 95 : {ifName}{ifAliasBox} load is very high +ifOutLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifOutLoad : red : 95 : {ifName}{ifAliasBox} load is very high Added: trunk/templates/cisco-4948/if_load/transforms =================================================================== --- trunk/templates/cisco-4948/if_load/transforms (rev 0) +++ trunk/templates/cisco-4948/if_load/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -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/cisco-4948/if_stat/exceptions =================================================================== --- trunk/templates/cisco-4948/if_stat/exceptions (rev 0) +++ trunk/templates/cisco-4948/if_stat/exceptions 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+|VLAN.+ Added: trunk/templates/cisco-4948/if_stat/message =================================================================== --- trunk/templates/cisco-4948/if_stat/message (rev 0) +++ trunk/templates/cisco-4948/if_stat/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +TABLE: +Ifc name|Ifc speed|Ifc status +{ifName}{ifAliasBox}|{ifSpeed}|{ifStat.color}{ifStat}{ifStat.errors} Added: trunk/templates/cisco-4948/if_stat/oids =================================================================== --- trunk/templates/cisco-4948/if_stat/oids (rev 0) +++ trunk/templates/cisco-4948/if_stat/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch +ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Added: trunk/templates/cisco-4948/if_stat/thresholds =================================================================== --- trunk/templates/cisco-4948/if_stat/thresholds (rev 0) +++ trunk/templates/cisco-4948/if_stat/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +ifAdminStatTxt : green : admin down : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : yellow : testing : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifOperStatTxt : green : up : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} Added: trunk/templates/cisco-4948/if_stat/transforms =================================================================== --- trunk/templates/cisco-4948/if_stat/transforms (rev 0) +++ trunk/templates/cisco-4948/if_stat/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ +ifAdminStatTxt : SWITCH : {ifAdminStatNum} 1=up,2=admin down,3=testing +ifOperStatTxt : SWITCH : {ifOperStatNum} 1=up,2=down,3=testing,4=unknown,5=dormant,6=not present,7=lower layer down +ifStat : BEST : {ifAdminStatTxt},{ifOperStatTxt} +ifSpeed : SPEED : {ifBps} +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-4948/memory/exceptions =================================================================== Added: trunk/templates/cisco-4948/memory/message =================================================================== --- trunk/templates/cisco-4948/memory/message (rev 0) +++ trunk/templates/cisco-4948/memory/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,7 @@ +Free memory: {mem_free} bytes ({mem_free_per}%) +Used memory: {mem_used} bytes ({mem_used_per}%) +------------- ---------------- +Total memory: {mem_total} bytes (100%) + +<!-- DEVMON to RRD Physical {mem_used_per}% +--> Added: trunk/templates/cisco-4948/memory/oids =================================================================== --- trunk/templates/cisco-4948/memory/oids (rev 0) +++ trunk/templates/cisco-4948/memory/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +mem_used : .1.3.6.1.4.1.9.9.48.1.1.1.5.1 : leaf +mem_free : .1.3.6.1.4.1.9.9.48.1.1.1.6.1 : leaf + Added: trunk/templates/cisco-4948/memory/thresholds =================================================================== --- trunk/templates/cisco-4948/memory/thresholds (rev 0) +++ trunk/templates/cisco-4948/memory/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,2 @@ +mem_used_per : yellow : 75 : Memory load is high +mem_used_per : red : 95 : Memory load is very high Added: trunk/templates/cisco-4948/memory/transforms =================================================================== --- trunk/templates/cisco-4948/memory/transforms (rev 0) +++ trunk/templates/cisco-4948/memory/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,3 @@ +mem_total : MATH : {mem_used} + {mem_free} +mem_used_per : MATH : ({mem_used} x 100) / {mem_total} : 0 +mem_free_per : MATH : ({mem_free} x 100) / {mem_total} : 0 Added: trunk/templates/cisco-4948/specs =================================================================== --- trunk/templates/cisco-4948/specs (rev 0) +++ trunk/templates/cisco-4948/specs 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,6 @@ +vendor : cisco +model : 4948 +snmpver : 2 +sysdesc : Catalyst 4000 +#SNMPv2-MIB::sysObjectID.0 = OID: CISCO-PRODUCTS-MIB::catalyst4948 +#.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.9.1.626 Added: trunk/templates/cisco-4948/temp/exceptions =================================================================== Added: trunk/templates/cisco-4948/temp/message =================================================================== --- trunk/templates/cisco-4948/temp/message (rev 0) +++ trunk/templates/cisco-4948/temp/message 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,5 @@ + +Thermal sensors: +TABLE: noalarmsmsg,rrd(DS:ds0:ciscoEnvMonTemperatureStatusValue:GAUGE; DS:ds1:ciscoEnvMonTemperatureThreshold:GAUGE) +ID|Sensor Location|Temp|Threshold|Condition +{ciscoEnvMonTemperatureId}|{ciscoEnvMonTemperatureStatusDescr}|{ciscoEnvMonTemperatureStatusValue}|{ciscoEnvMonTemperatureThreshold}|{ciscoEnvMonTemperatureState.color}{ciscoEnvMonTemperatureStateTxt} Added: trunk/templates/cisco-4948/temp/oids =================================================================== --- trunk/templates/cisco-4948/temp/oids (rev 0) +++ trunk/templates/cisco-4948/temp/oids 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ciscoEnvMonTemperatureStatusDescr: 1.3.6.1.4.1.9.9.13.1.3.1.2 : branch +ciscoEnvMonTemperatureStatusValue: 1.3.6.1.4.1.9.9.13.1.3.1.3 : branch +ciscoEnvMonTemperatureThreshold : 1.3.6.1.4.1.9.9.13.1.3.1.4 : branch +ciscoEnvMonTemperatureState: 1.3.6.1.4.1.9.9.13.1.3.1.6 : branch Added: trunk/templates/cisco-4948/temp/thresholds =================================================================== --- trunk/templates/cisco-4948/temp/thresholds (rev 0) +++ trunk/templates/cisco-4948/temp/thresholds 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ciscoEnvMonTemperatureStateTxt : green : normal +ciscoEnvMonTemperatureStateTxt : yellow : warning|shutdown|notFunctioning +ciscoEnvMonTemperatureStateTxt : red : critical +ciscoEnvMonTemperatureStateTxt : clear : nonPresent Added: trunk/templates/cisco-4948/temp/transforms =================================================================== --- trunk/templates/cisco-4948/temp/transforms (rev 0) +++ trunk/templates/cisco-4948/temp/transforms 2011-01-22 22:49:33 UTC (rev 202) @@ -0,0 +1,4 @@ +ciscoEnvMonTemperatureStateTxt : SWITCH : {ciscoEnvMonTemperatureState} 1=normal,2=warning,3=critical,4=shutdown,5=nonPresent,6=notFunctioning +#ciscoEnvMonTemperatureId : REGSUB : {ciscoEnvMonTemperatureStatusDescr} /(\S+) (\S+) (\S+) (\(.*\))? temp.*/$1$2$3/ +#ciscoEnvMonTemperatureId : REGSUB : {ciscoEnvMonTemperatureStatusDescr} /(\S+) (\S+) (\S+)(( (\S+))?)( \(.*\))? temp.*/$1$2$3$6/ +ciscoEnvMonTemperatureId : REGSUB : {ciscoEnvMonTemperatureStatusDescr} /(\S+) (\S+) (\S+)( \((.*)\))?(( (\S+))?)( \(.*\))? temp.*/$1$2$3$8/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:41:04
|
Revision: 201 http://devmon.svn.sourceforge.net/devmon/?rev=201&view=rev Author: buchanmilne Date: 2011-01-22 22:40:57 +0000 (Sat, 22 Jan 2011) Log Message: ----------- Commit some files missed in previous commits renamed messages file to message in netscreen-5gt Added Paths: ----------- trunk/templates/cisco-1600/cpu/exceptions trunk/templates/cisco-2811/if_col/ trunk/templates/cisco-2811/if_col/exceptions trunk/templates/cisco-2811/if_col/message trunk/templates/cisco-2811/if_col/oids trunk/templates/cisco-2811/if_col/thresholds trunk/templates/cisco-2811/if_col/transforms trunk/templates/cisco-2811/memory/ trunk/templates/cisco-2811/memory/exceptions trunk/templates/cisco-2811/memory/message trunk/templates/cisco-2811/memory/oids trunk/templates/cisco-2811/memory/thresholds trunk/templates/cisco-2811/memory/transforms trunk/templates/cisco-2811/serial/ trunk/templates/cisco-2811/serial/exceptions trunk/templates/cisco-2811/serial/message trunk/templates/cisco-2811/serial/oids trunk/templates/cisco-2811/serial/thresholds trunk/templates/cisco-2811/serial/transforms trunk/templates/cisco-2811/temp/ trunk/templates/cisco-2811/temp/exceptions trunk/templates/cisco-2811/temp/message trunk/templates/cisco-2811/temp/oids trunk/templates/cisco-2811/temp/thresholds trunk/templates/cisco-2811/temp/transforms trunk/templates/netscreen-5gt/memory/message trunk/templates/vmware-esx4/cpu/exceptions trunk/templates/vmware-esx4/guests/transforms trunk/templates/vmware-esx4/memory/exceptions Removed Paths: ------------- trunk/templates/netscreen-5gt/memory/messages Added: trunk/templates/cisco-1600/cpu/exceptions =================================================================== Added: trunk/templates/cisco-2811/if_col/exceptions =================================================================== --- trunk/templates/cisco-2811/if_col/exceptions (rev 0) +++ trunk/templates/cisco-2811/if_col/exceptions 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-2811/if_col/message =================================================================== --- trunk/templates/cisco-2811/if_col/message (rev 0) +++ trunk/templates/cisco-2811/if_col/message 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,9 @@ +<b>Collisions:</b> +Collision load: yellow={ifOutColPct.thresh:yellow}%, red={ifOutColPct.thresh:red}% +TABLE: +Ifc name|Collisions|Collisions rate|Collisions load +{ifName}{ifAliasBox}|{ifOutCollisions}|{ifOutCps}|{ifOutColPct.color}{ifOutColPct}%{ifOutColPct.errors} + +Note: +Error rates are per second. +Load percentages are based on an error/packet ratio. Added: trunk/templates/cisco-2811/if_col/oids =================================================================== --- trunk/templates/cisco-2811/if_col/oids (rev 0) +++ trunk/templates/cisco-2811/if_col/oids 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifOutCollisions : .1.3.6.1.4.1.9.2.2.1.1.25 : branch +ifOutPktsSec : .1.3.6.1.4.1.9.2.2.1.1.9 : branch Added: trunk/templates/cisco-2811/if_col/thresholds =================================================================== --- trunk/templates/cisco-2811/if_col/thresholds (rev 0) +++ trunk/templates/cisco-2811/if_col/thresholds 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,4 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifOutColPct : yellow : 40 : {ifName}{ifAliasBox} - High output collision rate ({ifOutColPct}%) +ifOutColPct : red : 70 : {ifName}{ifAliasBox} - Very high output collision rate ({ifOutColPct}%) Added: trunk/templates/cisco-2811/if_col/transforms =================================================================== --- trunk/templates/cisco-2811/if_col/transforms (rev 0) +++ trunk/templates/cisco-2811/if_col/transforms 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,12 @@ +# Convert our total ifc octets(bytes) into bits +ifOutCps : DELTA : {ifOutCollisions} + +# Create our REAL packets per second +ifOutPps : MATH : {ifOutCps} + {ifOutPktsSec} + +# Determine percentage of packets that are collisions +ifOutColPct : MATH : ({ifOutCps} / {ifOutPps}) x 100 + +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-2811/memory/exceptions =================================================================== Added: trunk/templates/cisco-2811/memory/message =================================================================== --- trunk/templates/cisco-2811/memory/message (rev 0) +++ trunk/templates/cisco-2811/memory/message 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,7 @@ +Free memory: {mem_free} bytes ({mem_free_per}%) +Used memory: {mem_used} bytes ({mem_used_per}%) +------------- ---------------- +Total memory: {mem_total} bytes (100%) + +<!-- DEVMON to RRD Physical {mem_used_per}% +--> Added: trunk/templates/cisco-2811/memory/oids =================================================================== --- trunk/templates/cisco-2811/memory/oids (rev 0) +++ trunk/templates/cisco-2811/memory/oids 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,3 @@ +mem_used : .1.3.6.1.4.1.9.9.48.1.1.1.5.1 : leaf +mem_free : .1.3.6.1.4.1.9.9.48.1.1.1.6.1 : leaf + Added: trunk/templates/cisco-2811/memory/thresholds =================================================================== --- trunk/templates/cisco-2811/memory/thresholds (rev 0) +++ trunk/templates/cisco-2811/memory/thresholds 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,2 @@ +mem_used_per : yellow : 75 : Memory load is high +mem_used_per : red : 95 : Memory load is very high Added: trunk/templates/cisco-2811/memory/transforms =================================================================== --- trunk/templates/cisco-2811/memory/transforms (rev 0) +++ trunk/templates/cisco-2811/memory/transforms 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,3 @@ +mem_total : MATH : {mem_used} + {mem_free} +mem_used_per : MATH : ({mem_used} x 100) / {mem_total} : 0 +mem_free_per : MATH : ({mem_free} x 100) / {mem_total} : 0 Added: trunk/templates/cisco-2811/serial/exceptions =================================================================== --- trunk/templates/cisco-2811/serial/exceptions (rev 0) +++ trunk/templates/cisco-2811/serial/exceptions 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,2 @@ +entPhysicalDescr : ignore : Nu.+|Vl.+|Gi.+|.*AIM.*|.*DaughterCard.*|.*Gt96k.* +entPhysicalDescr : alarm : Nothingtoworryabout Added: trunk/templates/cisco-2811/serial/message =================================================================== --- trunk/templates/cisco-2811/serial/message (rev 0) +++ trunk/templates/cisco-2811/serial/message 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,3 @@ +TABLE: +Physical Descr | Hardware Rev | Firmware Rev | Software Rev | System serial number | Model Name +{entPhysicalDescr} | {entPhysicalHardwareRev} | {entPhysicalFirmwareRev} | {entPhysicalSoftwareRev} | {entPhysicalSerialNum} | {entPhysicalModelName} Added: trunk/templates/cisco-2811/serial/oids =================================================================== --- trunk/templates/cisco-2811/serial/oids (rev 0) +++ trunk/templates/cisco-2811/serial/oids 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,6 @@ +entPhysicalDescr : .1.3.6.1.2.1.47.1.1.1.1.2 : branch +entPhysicalHardwareRev : .1.3.6.1.2.1.47.1.1.1.1.8 : branch +entPhysicalFirmwareRev : .1.3.6.1.2.1.47.1.1.1.1.9 : branch +entPhysicalSoftwareRev : .1.3.6.1.2.1.47.1.1.1.1.10 : branch +entPhysicalSerialNum : .1.3.6.1.2.1.47.1.1.1.1.11 : branch +entPhysicalModelName : .1.3.6.1.2.1.47.1.1.1.1.13 : branch Added: trunk/templates/cisco-2811/serial/thresholds =================================================================== Added: trunk/templates/cisco-2811/serial/transforms =================================================================== Added: trunk/templates/cisco-2811/temp/exceptions =================================================================== Added: trunk/templates/cisco-2811/temp/message =================================================================== --- trunk/templates/cisco-2811/temp/message (rev 0) +++ trunk/templates/cisco-2811/temp/message 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,5 @@ + +Thermal sensors: +TABLE: noalarmsmsg,rrd(DS:ds0:ciscoEnvMonTemperatureStatusValue:GAUGE; DS:ds1:ciscoEnvMonTemperatureThreshold:GAUGE) +ID|Sensor Location|Temp|Threshold|Condition +{ciscoEnvMonTemperatureId}|{ciscoEnvMonTemperatureStatusDescr}|{ciscoEnvMonTemperatureStatusValue}|{ciscoEnvMonTemperatureThreshold}|{ciscoEnvMonTemperatureState.color}{ciscoEnvMonTemperatureStateTxt} Added: trunk/templates/cisco-2811/temp/oids =================================================================== --- trunk/templates/cisco-2811/temp/oids (rev 0) +++ trunk/templates/cisco-2811/temp/oids 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,4 @@ +ciscoEnvMonTemperatureStatusDescr: 1.3.6.1.4.1.9.9.13.1.3.1.2 : branch +ciscoEnvMonTemperatureStatusValue: 1.3.6.1.4.1.9.9.13.1.3.1.3 : branch +ciscoEnvMonTemperatureThreshold : 1.3.6.1.4.1.9.9.13.1.3.1.4 : branch +ciscoEnvMonTemperatureState: 1.3.6.1.4.1.9.9.13.1.3.1.6 : branch Added: trunk/templates/cisco-2811/temp/thresholds =================================================================== --- trunk/templates/cisco-2811/temp/thresholds (rev 0) +++ trunk/templates/cisco-2811/temp/thresholds 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,4 @@ +ciscoEnvMonTemperatureStateTxt : green : normal +ciscoEnvMonTemperatureStateTxt : yellow : warning|shutdown|notFunctioning +ciscoEnvMonTemperatureStateTxt : red : critical +ciscoEnvMonTemperatureStateTxt : clear : nonPresent Added: trunk/templates/cisco-2811/temp/transforms =================================================================== --- trunk/templates/cisco-2811/temp/transforms (rev 0) +++ trunk/templates/cisco-2811/temp/transforms 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,2 @@ +ciscoEnvMonTemperatureStateTxt : SWITCH : {ciscoEnvMonTemperatureState} 1=normal,2=warning,3=critical,4=shutdown,5=nonPresent,6=notFunctioning +ciscoEnvMonTemperatureId : REGSUB : {ciscoEnvMonTemperatureStatusDescr} /(\S+) (\S+) (\S+)( \((.*)\))?(( (\S+))?)( \(.*\))? temp.*/$1$2$3$8/ Copied: trunk/templates/netscreen-5gt/memory/message (from rev 193, trunk/templates/netscreen-5gt/memory/messages) =================================================================== --- trunk/templates/netscreen-5gt/memory/message (rev 0) +++ trunk/templates/netscreen-5gt/memory/message 2011-01-22 22:40:57 UTC (rev 201) @@ -0,0 +1,9 @@ +{mem_used_per.errors} +Free memory: {mem_free} bytes ({mem_free_per}%) +Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} +------------- ---------------- +Total memory: {mem_total} bytes (100%) + +Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% +<!-- DEVMON to RRD Physical {mem_used_per}% +--> Deleted: trunk/templates/netscreen-5gt/memory/messages =================================================================== --- trunk/templates/netscreen-5gt/memory/messages 2011-01-22 22:29:21 UTC (rev 200) +++ trunk/templates/netscreen-5gt/memory/messages 2011-01-22 22:40:57 UTC (rev 201) @@ -1,9 +0,0 @@ -{mem_used_per.errors} -Free memory: {mem_free} bytes ({mem_free_per}%) -Used memory: {mem_used} bytes ({mem_used_per}%) {mem_used_per.color} -------------- ---------------- -Total memory: {mem_total} bytes (100%) - -Alarm threshold: yellow={mem_used_per.thresh:yellow}%, red={mem_used_per.thresh:red}% -<!-- DEVMON to RRD Physical {mem_used_per}% ---> Added: trunk/templates/vmware-esx4/cpu/exceptions =================================================================== Added: trunk/templates/vmware-esx4/guests/transforms =================================================================== Added: trunk/templates/vmware-esx4/memory/exceptions =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:29:27
|
Revision: 200 http://devmon.svn.sourceforge.net/devmon/?rev=200&view=rev Author: buchanmilne Date: 2011-01-22 22:29:21 +0000 (Sat, 22 Jan 2011) Log Message: ----------- Add files missing in contributed mikrotik template Added Paths: ----------- trunk/templates/mikrotik-rb400/cpu/exceptions trunk/templates/mikrotik-rb400/memory/exceptions Added: trunk/templates/mikrotik-rb400/cpu/exceptions =================================================================== Added: trunk/templates/mikrotik-rb400/memory/exceptions =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2011-01-22 22:21:49
|
Bugs item #2924007, was opened at 2009-12-31 05:28 Message generated for change (Settings changed) made by buchanmilne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2924007&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Templates Group: None Status: Open >Resolution: Remind Priority: 5 Private: No Submitted By: Richard Finegold (goldfndr) Assigned to: Nobody/Anonymous (nobody) Summary: Template exceptions sorted misleadingly Initial Comment: According to the TEMPLATES documentation, the "exceptions" are applied in a specific order: ignore, only, alarm, noalarm. But many of the templates list alarm before ignore, which implies a different specific order or random processing. If one has read the documentation ("So if you have a primary alias that matches both an 'ignore' and an 'alarm' exception, no alarm will be generated (in fact, the row wont even be displayed in the repeater table)."), it can be somewhat jarring. The templates' exceptions files should be revised to be in the documented order, as reminder/reinforcement for the documentation. Some of the cisco serial exceptions (e.g. 2801, 2900, 2950, 2970, 6506) seem to be in the correct order, but they're arguably more like Easter Eggs than correct. Additionally, the USING and using.html documents should be revised to conform to the documented order instead of only/ignore/alarm on/no alarm. Additionally, perhaps the paragraph that follows the exception types in USING and using.html should be appended with a Alternatively, if the TEMPLATES documentation is wrong, the documentation should be corrected. I can create patches if that would help. ---------------------------------------------------------------------- Comment By: Buchan Milne (buchanmilne) Date: 2011-01-22 23:57 Message: I probably won't look at fixing this myself for 0.3.1, which I would like to release soon, but if you supply a patch I can take a look. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2924007&group_id=160720 |
From: <buc...@us...> - 2011-01-22 22:21:29
|
Revision: 199 http://devmon.svn.sourceforge.net/devmon/?rev=199&view=rev Author: buchanmilne Date: 2011-01-22 22:21:23 +0000 (Sat, 22 Jan 2011) Log Message: ----------- VMWare ESX4 template (from #3098352) Added Paths: ----------- trunk/templates/vmware-esx4/ trunk/templates/vmware-esx4/cpu/ trunk/templates/vmware-esx4/cpu/message trunk/templates/vmware-esx4/cpu/oids trunk/templates/vmware-esx4/cpu/thresholds trunk/templates/vmware-esx4/cpu/transforms trunk/templates/vmware-esx4/disk/ trunk/templates/vmware-esx4/disk/exceptions trunk/templates/vmware-esx4/disk/message trunk/templates/vmware-esx4/disk/oids trunk/templates/vmware-esx4/disk/thresholds trunk/templates/vmware-esx4/disk/transforms trunk/templates/vmware-esx4/guests/ trunk/templates/vmware-esx4/guests/exceptions trunk/templates/vmware-esx4/guests/message trunk/templates/vmware-esx4/guests/oids trunk/templates/vmware-esx4/guests/thresholds trunk/templates/vmware-esx4/memory/ trunk/templates/vmware-esx4/memory/message trunk/templates/vmware-esx4/memory/oids trunk/templates/vmware-esx4/memory/thresholds trunk/templates/vmware-esx4/memory/transforms trunk/templates/vmware-esx4/specs Added: trunk/templates/vmware-esx4/cpu/message =================================================================== --- trunk/templates/vmware-esx4/cpu/message (rev 0) +++ trunk/templates/vmware-esx4/cpu/message 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,21 @@ +Host: {sysDescr} + +{sysUpTimeSecs.color} Uptime: {UpTimeTxt} + +Load Averages: + +1 minute : {laLoad1} +5 minute : {laLoad5} {laLoad5.color} +10 minute : {laLoad10} {laLoad10.color} + + +CPU utilization: + +User : {CpuUser} +Nice : {CpuNice} +System : {CpuSystem} +CpuIdle : {CpuIdle} + + +<!-- DEVMON to RRD <br>CPU 5 min average: {hrProcessorLoad} +--> Added: trunk/templates/vmware-esx4/cpu/oids =================================================================== --- trunk/templates/vmware-esx4/cpu/oids (rev 0) +++ trunk/templates/vmware-esx4/cpu/oids 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,10 @@ +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +hrProcessorLoad : .1.3.6.1.2.1.25.3.3.1.2.768 : leaf +laLoad1 : .1.3.6.1.4.1.2021.10.1.3.1 : leaf +laLoad5 : .1.3.6.1.4.1.2021.10.1.3.2 : leaf +laLoad10 : .1.3.6.1.4.1.2021.10.1.3.3 : leaf +ssCpuRawUser : .1.3.6.1.4.1.2021.11.50.0 : leaf +ssCpuRawNice : .1.3.6.1.4.1.2021.11.51.0 : leaf +ssCpuRawSystem : .1.3.6.1.4.1.2021.11.52.0 : leaf +ssCpuRawIdle : .1.3.6.1.4.1.2021.11.53.0 : leaf Added: trunk/templates/vmware-esx4/cpu/thresholds =================================================================== --- trunk/templates/vmware-esx4/cpu/thresholds (rev 0) +++ trunk/templates/vmware-esx4/cpu/thresholds 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,11 @@ +laLoad5 : red : >10 : CPU utilization is very high +laLoad5 : yellow : >=5 : CPU utilization is high +laLoad5 : green : : CPU utilization is nominal + +laLoad10 : red : >10 : CPU utilization is very high +laLoad10 : yellow : >=5 : CPU utilization is high +laLoad10 : green : : CPU utilization is nominal + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/vmware-esx4/cpu/transforms =================================================================== --- trunk/templates/vmware-esx4/cpu/transforms (rev 0) +++ trunk/templates/vmware-esx4/cpu/transforms 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,7 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} + +CpuUser : DELTA : {ssCpuRawUser} +CpuNice : DELTA : {ssCpuRawNice} +CpuSystem : DELTA : {ssCpuRawSystem} +CpuIdle : DELTA : {ssCpuRawIdle} Added: trunk/templates/vmware-esx4/disk/exceptions =================================================================== --- trunk/templates/vmware-esx4/disk/exceptions (rev 0) +++ trunk/templates/vmware-esx4/disk/exceptions 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,2 @@ +DiskName : alarm : .* +DiskName : ignore : Real.Memory.*|Swap Space Added: trunk/templates/vmware-esx4/disk/message =================================================================== --- trunk/templates/vmware-esx4/disk/message (rev 0) +++ trunk/templates/vmware-esx4/disk/message 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,3 @@ +TABLE:plain,noalarmsmsg +Filesystem 1024-blocks Used Available Capacity Mounted on +{DiskName} {DiskSize} {DiskSizeUsed} {DiskAvail} {DiskPerUse}% {DiskName} {DiskPerUse.color} Added: trunk/templates/vmware-esx4/disk/oids =================================================================== --- trunk/templates/vmware-esx4/disk/oids (rev 0) +++ trunk/templates/vmware-esx4/disk/oids 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,4 @@ +DiskName : .1.3.6.1.2.1.25.2.3.1.3 : branch +DiskBlocks : .1.3.6.1.2.1.25.2.3.1.5 : branch +DiskBlocksUsed : .1.3.6.1.2.1.25.2.3.1.6 : branch +DiskBlockSize : .1.3.6.1.2.1.25.2.3.1.4 : branch Added: trunk/templates/vmware-esx4/disk/thresholds =================================================================== --- trunk/templates/vmware-esx4/disk/thresholds (rev 0) +++ trunk/templates/vmware-esx4/disk/thresholds 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,2 @@ +DiskPerUse : yellow : 90 : Disk utilization is high +DiskPerUse : red : 95 : Disk utilization is critical Added: trunk/templates/vmware-esx4/disk/transforms =================================================================== --- trunk/templates/vmware-esx4/disk/transforms (rev 0) +++ trunk/templates/vmware-esx4/disk/transforms 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,4 @@ +DiskSize : MATH : {DiskBlocks} x {DiskBlockSize} / 1024 : 0 +DiskSizeUsed : MATH : {DiskBlocksUsed} x {DiskBlockSize} / 1024 : 0 +DiskAvail : MATH : {DiskSize} - {DiskSizeUsed} : 0 +DiskPerUse : MATH : ({DiskSizeUsed} x 100) / {DiskSize} : 0 Added: trunk/templates/vmware-esx4/guests/exceptions =================================================================== --- trunk/templates/vmware-esx4/guests/exceptions (rev 0) +++ trunk/templates/vmware-esx4/guests/exceptions 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1 @@ +vmwVmState : alarm : HereLiesBogusTextArrrr Added: trunk/templates/vmware-esx4/guests/message =================================================================== --- trunk/templates/vmware-esx4/guests/message (rev 0) +++ trunk/templates/vmware-esx4/guests/message 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,5 @@ +Guests : + +TABLE: +ID | Name | RAM Provisioned | Guest Tools | VM State +{vmwVmVMID} | {vmwVmDisplayName} | {vmwVmMemSize} | {vmwVmGuestState} | {vmwVmState.color}{vmwVmState} Added: trunk/templates/vmware-esx4/guests/oids =================================================================== --- trunk/templates/vmware-esx4/guests/oids (rev 0) +++ trunk/templates/vmware-esx4/guests/oids 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,5 @@ +vmwVmDisplayName : .1.3.6.1.4.1.6876.2.1.1.2 : branch +vmwVmMemSize : .1.3.6.1.4.1.6876.2.1.1.5 : branch +vmwVmState : .1.3.6.1.4.1.6876.2.1.1.6 : branch +vmwVmVMID : .1.3.6.1.4.1.6876.2.1.1.7 : branch +vmwVmGuestState : .1.3.6.1.4.1.6876.2.1.1.8 : branch Added: trunk/templates/vmware-esx4/guests/thresholds =================================================================== --- trunk/templates/vmware-esx4/guests/thresholds (rev 0) +++ trunk/templates/vmware-esx4/guests/thresholds 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,2 @@ +vmwVmState : green : On : VM {vmwVmDisplayName} is {vmwVmState} + Added: trunk/templates/vmware-esx4/memory/message =================================================================== --- trunk/templates/vmware-esx4/memory/message (rev 0) +++ trunk/templates/vmware-esx4/memory/message 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,4 @@ +Memory Used Total Percentage +Physical {MemSizeUsed}kB {MemSize}kB {MemPerUse}% {MemPerUse.color} +Swap {SwapSizeUsed}kB {SwapSize}kB {SwapPerUse}% {SwapPerUse.color} + Added: trunk/templates/vmware-esx4/memory/oids =================================================================== --- trunk/templates/vmware-esx4/memory/oids (rev 0) +++ trunk/templates/vmware-esx4/memory/oids 2011-01-22 22:21:23 UTC (rev 199) @@ -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/vmware-esx4/memory/thresholds =================================================================== --- trunk/templates/vmware-esx4/memory/thresholds (rev 0) +++ trunk/templates/vmware-esx4/memory/thresholds 2011-01-22 22:21:23 UTC (rev 199) @@ -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/vmware-esx4/memory/transforms =================================================================== --- trunk/templates/vmware-esx4/memory/transforms (rev 0) +++ trunk/templates/vmware-esx4/memory/transforms 2011-01-22 22:21:23 UTC (rev 199) @@ -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 + + Added: trunk/templates/vmware-esx4/specs =================================================================== --- trunk/templates/vmware-esx4/specs (rev 0) +++ trunk/templates/vmware-esx4/specs 2011-01-22 22:21:23 UTC (rev 199) @@ -0,0 +1,4 @@ +vendor : vmware +model : esx4 +snmpver : 2 +sysdesc : VmwareESX4 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:17:15
|
Revision: 198 http://devmon.svn.sourceforge.net/devmon/?rev=198&view=rev Author: buchanmilne Date: 2011-01-22 22:17:07 +0000 (Sat, 22 Jan 2011) Log Message: ----------- Add cisco-1600 template (from #3098352) Added Paths: ----------- trunk/templates/cisco-1600/ trunk/templates/cisco-1600/README trunk/templates/cisco-1600/cpu/ trunk/templates/cisco-1600/cpu/message trunk/templates/cisco-1600/cpu/oids trunk/templates/cisco-1600/cpu/thresholds trunk/templates/cisco-1600/cpu/transforms trunk/templates/cisco-1600/if_col/ trunk/templates/cisco-1600/if_col/exceptions trunk/templates/cisco-1600/if_col/message trunk/templates/cisco-1600/if_col/oids trunk/templates/cisco-1600/if_col/thresholds trunk/templates/cisco-1600/if_col/transforms trunk/templates/cisco-1600/if_dsc/ trunk/templates/cisco-1600/if_dsc/exceptions trunk/templates/cisco-1600/if_dsc/message trunk/templates/cisco-1600/if_dsc/oids trunk/templates/cisco-1600/if_dsc/thresholds trunk/templates/cisco-1600/if_dsc/transforms trunk/templates/cisco-1600/if_err/ trunk/templates/cisco-1600/if_err/exceptions trunk/templates/cisco-1600/if_err/message trunk/templates/cisco-1600/if_err/oids trunk/templates/cisco-1600/if_err/thresholds trunk/templates/cisco-1600/if_err/transforms trunk/templates/cisco-1600/if_load/ trunk/templates/cisco-1600/if_load/exceptions trunk/templates/cisco-1600/if_load/message trunk/templates/cisco-1600/if_load/oids trunk/templates/cisco-1600/if_load/thresholds trunk/templates/cisco-1600/if_load/transforms trunk/templates/cisco-1600/if_stat/ trunk/templates/cisco-1600/if_stat/exceptions trunk/templates/cisco-1600/if_stat/message trunk/templates/cisco-1600/if_stat/oids trunk/templates/cisco-1600/if_stat/thresholds trunk/templates/cisco-1600/if_stat/transforms trunk/templates/cisco-1600/specs Added: trunk/templates/cisco-1600/README =================================================================== --- trunk/templates/cisco-1600/README (rev 0) +++ trunk/templates/cisco-1600/README 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,6 @@ +This template was created by Eric Schwimmer. + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/cisco-1600/cpu/message =================================================================== --- trunk/templates/cisco-1600/cpu/message (rev 0) +++ trunk/templates/cisco-1600/cpu/message 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,10 @@ + +{sysUpTimeSecs.color}: Up for {UpTimeTxt} +{sysUpTimeSecs.color}: Last reboot due to {sysReloadReason} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% + +System description: +{sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Added: trunk/templates/cisco-1600/cpu/oids =================================================================== --- trunk/templates/cisco-1600/cpu/oids (rev 0) +++ trunk/templates/cisco-1600/cpu/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,7 @@ + +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysReloadReason : .1.3.6.1.4.1.9.2.1.2.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +#CPUTotal5Min : .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 : leaf +CPUTotal5Min : .1.3.6.1.4.1.9.2.1.58.0 : leaf + Added: trunk/templates/cisco-1600/cpu/thresholds =================================================================== --- trunk/templates/cisco-1600/cpu/thresholds (rev 0) +++ trunk/templates/cisco-1600/cpu/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,8 @@ + +CPUTotal5Min : red : >60 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >40 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/cisco-1600/cpu/transforms =================================================================== --- trunk/templates/cisco-1600/cpu/transforms (rev 0) +++ trunk/templates/cisco-1600/cpu/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/cisco-1600/if_col/exceptions =================================================================== --- trunk/templates/cisco-1600/if_col/exceptions (rev 0) +++ trunk/templates/cisco-1600/if_col/exceptions 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-1600/if_col/message =================================================================== --- trunk/templates/cisco-1600/if_col/message (rev 0) +++ trunk/templates/cisco-1600/if_col/message 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,9 @@ +<b>Collisions:</b> +Collision load: yellow={ifOutColPct.thresh:yellow}%, red={ifOutColPct.thresh:red}% +TABLE: +Ifc name|Collisions|Collisions rate|Collisions load +{ifName}{ifAliasBox}|{ifOutCollisions}|{ifOutCps}|{ifOutColPct.color}{ifOutColPct}%{ifOutColPct.errors} + +Note: +Error rates are per second. +Load percentages are based on an error/packet ratio. Added: trunk/templates/cisco-1600/if_col/oids =================================================================== --- trunk/templates/cisco-1600/if_col/oids (rev 0) +++ trunk/templates/cisco-1600/if_col/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifOutCollisions : .1.3.6.1.4.1.9.2.2.1.1.25 : branch +ifOutPktsSec : .1.3.6.1.4.1.9.2.2.1.1.9 : branch Added: trunk/templates/cisco-1600/if_col/thresholds =================================================================== --- trunk/templates/cisco-1600/if_col/thresholds (rev 0) +++ trunk/templates/cisco-1600/if_col/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,4 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifOutColPct : yellow : 40 : {ifName}{ifAliasBox} - High output collision rate ({ifOutColPct}%) +ifOutColPct : red : 70 : {ifName}{ifAliasBox} - Very high output collision rate ({ifOutColPct}%) Added: trunk/templates/cisco-1600/if_col/transforms =================================================================== --- trunk/templates/cisco-1600/if_col/transforms (rev 0) +++ trunk/templates/cisco-1600/if_col/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,12 @@ +# Convert our total ifc octets(bytes) into bits +ifOutCps : DELTA : {ifOutCollisions} + +# Create our REAL packets per second +ifOutPps : MATH : {ifOutCps} + {ifOutPktsSec} + +# Determine percentage of packets that are collisions +ifOutColPct : MATH : ({ifOutCps} / {ifOutPps}) x 100 + +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-1600/if_dsc/exceptions =================================================================== --- trunk/templates/cisco-1600/if_dsc/exceptions (rev 0) +++ trunk/templates/cisco-1600/if_dsc/exceptions 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-1600/if_dsc/message =================================================================== --- trunk/templates/cisco-1600/if_dsc/message (rev 0) +++ trunk/templates/cisco-1600/if_dsc/message 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,8 @@ +<b>Discards:</b> +TABLE: +Ifc name|Discards in|Discard rate in|Discard load in|Discards out|Discard rate out|Discard load out +{ifName}{ifAliasBox}|{ifInDiscards}|{ifInDps}|{ifInDscPct.color}{ifInDscPct}%{ifInDscPct.errors}|{ifOutDiscards}|{ifOutDps}|{ifOutDscPct.color}{ifOutDscPct}%{ifOutDscPct.errors} + +Note: +Error rates are per second. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-1600/if_dsc/oids =================================================================== --- trunk/templates/cisco-1600/if_dsc/oids (rev 0) +++ trunk/templates/cisco-1600/if_dsc/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutDiscards : .1.3.6.1.2.1.2.2.1.19 : branch Added: trunk/templates/cisco-1600/if_dsc/thresholds =================================================================== --- trunk/templates/cisco-1600/if_dsc/thresholds (rev 0) +++ trunk/templates/cisco-1600/if_dsc/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,6 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message +ifInDscPct : yellow : 5 : {ifName}{ifAliasBox} - High input discard rate. ({ifInDscPct}%) +ifInDscPct : red : 10 : {ifName}{ifAliasBox} - Very high input discard rate. ({ifInDscPct}%) +ifOutDscPct : yellow : 5 : {ifName}{ifAliasBox} - High output discard rate ({ifOutDscPct}%) +ifOutDscPct : red : 10 : {ifName}{ifAliasBox} - Very high output discard rate ({ifOutDscPct}%) Added: trunk/templates/cisco-1600/if_dsc/transforms =================================================================== --- trunk/templates/cisco-1600/if_dsc/transforms (rev 0) +++ trunk/templates/cisco-1600/if_dsc/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,14 @@ +# 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 +# Do delta transform on all error counters +ifInDps : DELTA : {ifInDiscards} +ifOutDps : DELTA : {ifOutDiscards} +# Perform error to traffic percentage calculations +ifInDscPct : MATH : ({ifInDps} / {ifInBps}) x 100 +ifOutDscPct : MATH : ({ifOutDps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-1600/if_err/exceptions =================================================================== --- trunk/templates/cisco-1600/if_err/exceptions (rev 0) +++ trunk/templates/cisco-1600/if_err/exceptions 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-1600/if_err/message =================================================================== --- trunk/templates/cisco-1600/if_err/message (rev 0) +++ trunk/templates/cisco-1600/if_err/message 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,11 @@ +<b>Errors:</b> +Input errors: yellow={ifInErrPct.thresh:yellow}%, red={ifInErrPct.thresh:red}% +Output errors: yellow={ifOutErrPct.thresh:yellow}%, red={ifOutErrPct.thresh:red}% + +TABLE: +Ifc name|Errors in|Error rate in|Error load in|Errors out|Error rate out|Error load out +{ifName}{ifAliasBox}|{ifInErrors}|{ifInEps}|{ifInErrPct.color}{ifInErrPct}%{ifInErrPct.errors}|{ifOutErrors}|{ifOutEps}|{ifOutErrPct.color}{ifOutErrPct}%{ifOutErrPct.errors} + +Note: +Error rates are per second, averaged over a 60 second interval. +Load percentages are based on error/bit ratio. Added: trunk/templates/cisco-1600/if_err/oids =================================================================== --- trunk/templates/cisco-1600/if_err/oids (rev 0) +++ trunk/templates/cisco-1600/if_err/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,7 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch +ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch +ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch +ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch +ifOutErrors : .1.3.6.1.2.1.2.2.1.20 : branch Added: trunk/templates/cisco-1600/if_err/thresholds =================================================================== --- trunk/templates/cisco-1600/if_err/thresholds (rev 0) +++ trunk/templates/cisco-1600/if_err/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,7 @@ +# Create thresholds for all the error rate counters +# oid name : color : limit : Error message + +ifInErrPct : yellow : 5 : {ifName}{ifAliasBox} - High input error rate ({ifInErrPct}%) +ifInErrPct : red : 10 : {ifName}{ifAliasBox} - Very high input error rate ({ifInErrPct}%) +ifOutErrPct : yellow : 5 : {ifName}{ifAliasBox} - High output error rate ({ifOutErrPct}%) +ifOutErrPct : red : 10 : {ifName}{ifAliasBox} - Very high output error rate ({ifOutErrPct}%) Added: trunk/templates/cisco-1600/if_err/transforms =================================================================== --- trunk/templates/cisco-1600/if_err/transforms (rev 0) +++ trunk/templates/cisco-1600/if_err/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,15 @@ +# 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 +# Do delta transform on all error counters +ifInEps : DELTA : {ifInErrors} +ifOutEps : DELTA : {ifOutErrors} +# Perform error to traffic percentage calculations +ifInErrPct : MATH : ({ifInEps} / {ifInBps}) x 100 +ifOutErrPct : MATH : ({ifOutEps} / {ifOutBps}) x 100 +# Create an alias in a bracketed box, or nothing if alias is blank +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ + Added: trunk/templates/cisco-1600/if_load/exceptions =================================================================== --- trunk/templates/cisco-1600/if_load/exceptions (rev 0) +++ trunk/templates/cisco-1600/if_load/exceptions 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-1600/if_load/message =================================================================== --- trunk/templates/cisco-1600/if_load/message (rev 0) +++ trunk/templates/cisco-1600/if_load/message 2011-01-22 22:17:07 UTC (rev 198) @@ -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}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors} Added: trunk/templates/cisco-1600/if_load/oids =================================================================== --- trunk/templates/cisco-1600/if_load/oids (rev 0) +++ trunk/templates/cisco-1600/if_load/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : 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/cisco-1600/if_load/thresholds =================================================================== --- trunk/templates/cisco-1600/if_load/thresholds (rev 0) +++ trunk/templates/cisco-1600/if_load/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,4 @@ +ifInLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifInLoad : red : 95 : {ifName}{ifAliasBox} load is very high +ifOutLoad : yellow : 75 : {ifName}{ifAliasBox} load is high +ifOutLoad : red : 95 : {ifName}{ifAliasBox} load is very high Added: trunk/templates/cisco-1600/if_load/transforms =================================================================== --- trunk/templates/cisco-1600/if_load/transforms (rev 0) +++ trunk/templates/cisco-1600/if_load/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -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/cisco-1600/if_stat/exceptions =================================================================== --- trunk/templates/cisco-1600/if_stat/exceptions (rev 0) +++ trunk/templates/cisco-1600/if_stat/exceptions 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,2 @@ +ifName : alarm : .+ +ifName : ignore : Nu.+|Vl.+ Added: trunk/templates/cisco-1600/if_stat/message =================================================================== --- trunk/templates/cisco-1600/if_stat/message (rev 0) +++ trunk/templates/cisco-1600/if_stat/message 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,3 @@ +TABLE: +Ifc name|Ifc speed|Ifc status +{ifName}{ifAliasBox}|{ifSpeed}|{ifStat.color}{ifStat}{ifStat.errors} Added: trunk/templates/cisco-1600/if_stat/oids =================================================================== --- trunk/templates/cisco-1600/if_stat/oids (rev 0) +++ trunk/templates/cisco-1600/if_stat/oids 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,5 @@ +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch +ifBps : .1.3.6.1.2.1.2.2.1.5 : branch +ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch +ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Added: trunk/templates/cisco-1600/if_stat/thresholds =================================================================== --- trunk/templates/cisco-1600/if_stat/thresholds (rev 0) +++ trunk/templates/cisco-1600/if_stat/thresholds 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,6 @@ +ifAdminStatTxt : green : admin down : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : yellow : testing : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifAdminStatTxt : red : up : Interface {ifName}{ifAliasBox} is {ifAdminStatTxt} +ifOperStatTxt : green : up : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : yellow : dormant|testing|yellow|not present|layer down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} +ifOperStatTxt : red : down : Interface {ifName}{ifAliasBox} is {ifOperStatTxt} Added: trunk/templates/cisco-1600/if_stat/transforms =================================================================== --- trunk/templates/cisco-1600/if_stat/transforms (rev 0) +++ trunk/templates/cisco-1600/if_stat/transforms 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,5 @@ +ifAdminStatTxt : SWITCH : {ifAdminStatNum} 1=up,2=admin down,3=testing +ifOperStatTxt : SWITCH : {ifOperStatNum} 1=up,2=down,3=testing,4=unknown,5=dormant,6=not present,7=lower layer down +ifStat : BEST : {ifAdminStatTxt},{ifOperStatTxt} +ifSpeed : SPEED : {ifBps} +ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/ Added: trunk/templates/cisco-1600/specs =================================================================== --- trunk/templates/cisco-1600/specs (rev 0) +++ trunk/templates/cisco-1600/specs 2011-01-22 22:17:07 UTC (rev 198) @@ -0,0 +1,4 @@ +vendor : cisco +model : 1600 +snmpver : 2 +sysdesc : C1600 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:14:16
|
Revision: 197 http://devmon.svn.sourceforge.net/devmon/?rev=197&view=rev Author: buchanmilne Date: 2011-01-22 22:14:10 +0000 (Sat, 22 Jan 2011) Log Message: ----------- Fixes to cisco-2811 template (from #3098352) Modified Paths: -------------- trunk/templates/cisco-2811/cpu/message trunk/templates/cisco-2811/cpu/oids trunk/templates/cisco-2811/cpu/thresholds trunk/templates/cisco-2811/if_dsc/oids trunk/templates/cisco-2811/if_err/oids trunk/templates/cisco-2811/if_load/oids trunk/templates/cisco-2811/if_stat/exceptions trunk/templates/cisco-2811/if_stat/oids trunk/templates/cisco-2811/specs Modified: trunk/templates/cisco-2811/cpu/message =================================================================== --- trunk/templates/cisco-2811/cpu/message 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/cpu/message 2011-01-22 22:14:10 UTC (rev 197) @@ -1,5 +1,10 @@ {sysUpTimeSecs.color}: Up for {UpTimeTxt} +{sysUpTimeSecs.color}: Last reboot due to {sysReloadReason} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% System description: {sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Modified: trunk/templates/cisco-2811/cpu/oids =================================================================== --- trunk/templates/cisco-2811/cpu/oids 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/cpu/oids 2011-01-22 22:14:10 UTC (rev 197) @@ -1,2 +1,5 @@ + sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysReloadReason : .1.3.6.1.4.1.9.2.1.2.0 : leaf sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +CPUTotal5Min : .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1 : leaf Modified: trunk/templates/cisco-2811/cpu/thresholds =================================================================== --- trunk/templates/cisco-2811/cpu/thresholds 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/cpu/thresholds 2011-01-22 22:14:10 UTC (rev 197) @@ -1,3 +1,8 @@ + +CPUTotal5Min : red : >60 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >40 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Modified: trunk/templates/cisco-2811/if_dsc/oids =================================================================== --- trunk/templates/cisco-2811/if_dsc/oids 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/if_dsc/oids 2011-01-22 22:14:10 UTC (rev 197) @@ -1,4 +1,5 @@ -ifName : .1.3.6.1.2.1.2.2.1.2 : branch +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch ifInDiscards : .1.3.6.1.2.1.2.2.1.13 : branch Modified: trunk/templates/cisco-2811/if_err/oids =================================================================== --- trunk/templates/cisco-2811/if_err/oids 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/if_err/oids 2011-01-22 22:14:10 UTC (rev 197) @@ -1,4 +1,5 @@ -ifName : .1.3.6.1.2.1.2.2.1.2.1 : branch +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch ifInErrors : .1.3.6.1.2.1.2.2.1.14 : branch Modified: trunk/templates/cisco-2811/if_load/oids =================================================================== --- trunk/templates/cisco-2811/if_load/oids 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/if_load/oids 2011-01-22 22:14:10 UTC (rev 197) @@ -1,4 +1,5 @@ -ifName : .1.3.6.1.2.1.2.2.1.10 : branch +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : 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 Modified: trunk/templates/cisco-2811/if_stat/exceptions =================================================================== --- trunk/templates/cisco-2811/if_stat/exceptions 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/if_stat/exceptions 2011-01-22 22:14:10 UTC (rev 197) @@ -1,2 +1,2 @@ -ifName : alarm : Gi.+ +ifName : alarm : .+ ifName : ignore : Nu.+|Vl.+ Modified: trunk/templates/cisco-2811/if_stat/oids =================================================================== --- trunk/templates/cisco-2811/if_stat/oids 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/if_stat/oids 2011-01-22 22:14:10 UTC (rev 197) @@ -1,4 +1,5 @@ -ifName : .1.3.6.1.2.1.2.2.1.10 : branch +ifName : .1.3.6.1.2.1.31.1.1.1.1 : branch +ifAlias : .1.3.6.1.2.1.31.1.1.1.18 : branch ifBps : .1.3.6.1.2.1.2.2.1.5 : branch ifAdminStatNum : .1.3.6.1.2.1.2.2.1.7 : branch ifOperStatNum : .1.3.6.1.2.1.2.2.1.8 : branch Modified: trunk/templates/cisco-2811/specs =================================================================== --- trunk/templates/cisco-2811/specs 2011-01-22 22:07:16 UTC (rev 196) +++ trunk/templates/cisco-2811/specs 2011-01-22 22:14:10 UTC (rev 197) @@ -1,4 +1,4 @@ vendor : cisco model : 2811 snmpver : 2 -sysdesc : C2800NM-ADVIPSERVICESK9-M +sysdesc : C2811 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-22 22:07:22
|
Revision: 196 http://devmon.svn.sourceforge.net/devmon/?rev=196&view=rev Author: buchanmilne Date: 2011-01-22 22:07:16 +0000 (Sat, 22 Jan 2011) Log Message: ----------- New template for Mikrotik Routerboard 400 series (from #3098352) Added Paths: ----------- trunk/templates/mikrotik-rb400/ trunk/templates/mikrotik-rb400/README trunk/templates/mikrotik-rb400/cpu/ trunk/templates/mikrotik-rb400/cpu/message trunk/templates/mikrotik-rb400/cpu/oids trunk/templates/mikrotik-rb400/cpu/thresholds trunk/templates/mikrotik-rb400/cpu/transforms trunk/templates/mikrotik-rb400/memory/ trunk/templates/mikrotik-rb400/memory/message trunk/templates/mikrotik-rb400/memory/oids trunk/templates/mikrotik-rb400/memory/thresholds trunk/templates/mikrotik-rb400/memory/transforms trunk/templates/mikrotik-rb400/specs Added: trunk/templates/mikrotik-rb400/README =================================================================== --- trunk/templates/mikrotik-rb400/README (rev 0) +++ trunk/templates/mikrotik-rb400/README 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,6 @@ +This template was created by Eric Schwimmer, copied by Chris Wopat + +NOTE: This does not imply any support responsibilities, liabiltiy in +case of this template or devmon causing phsyical, monetary or emotional +damanges, or any other such obligations. It is merely to provide +credit to the original author of the template. Added: trunk/templates/mikrotik-rb400/cpu/message =================================================================== --- trunk/templates/mikrotik-rb400/cpu/message (rev 0) +++ trunk/templates/mikrotik-rb400/cpu/message 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,9 @@ + +{sysUpTimeSecs.color}: Up for {UpTimeTxt} +{CPUTotal5Min.color}: CPU usage: {CPUTotal5Min}% + +System description: +{sysDescr} +<!-- +<br>CPU 5 min average: {CPUTotal5Min} +--> Added: trunk/templates/mikrotik-rb400/cpu/oids =================================================================== --- trunk/templates/mikrotik-rb400/cpu/oids (rev 0) +++ trunk/templates/mikrotik-rb400/cpu/oids 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,4 @@ +sysDescr : .1.3.6.1.2.1.1.1.0 : leaf +sysUpTime : .1.3.6.1.2.1.1.3.0 : leaf +CPUTotal5Min : .1.3.6.1.2.1.25.3.3.1.2.1 : leaf + Added: trunk/templates/mikrotik-rb400/cpu/thresholds =================================================================== --- trunk/templates/mikrotik-rb400/cpu/thresholds (rev 0) +++ trunk/templates/mikrotik-rb400/cpu/thresholds 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,8 @@ + +CPUTotal5Min : red : >60 : CPU utilization is very high: {CPUTotal5Min}% +CPUTotal5Min : yellow : >40 : CPU utilization is high: {CPUTotal5Min}% +CPUTotal5Min : green : : CPU utilization is nominal: {CPUTotal5Min}% + +sysUpTimeSecs : red : <600 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : yellow : <5000 : Device rebooted recently. System uptime: {UpTimeTxt} +sysUpTimeSecs : green : : System uptime: {UpTimeTxt} Added: trunk/templates/mikrotik-rb400/cpu/transforms =================================================================== --- trunk/templates/mikrotik-rb400/cpu/transforms (rev 0) +++ trunk/templates/mikrotik-rb400/cpu/transforms 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,2 @@ +sysUpTimeSecs : MATH : {sysUpTime} / 100 +UpTimeTxt : ELAPSED : {sysUpTimeSecs} Added: trunk/templates/mikrotik-rb400/memory/message =================================================================== --- trunk/templates/mikrotik-rb400/memory/message (rev 0) +++ trunk/templates/mikrotik-rb400/memory/message 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,3 @@ +Memory Used Total Percentage +Physical {MemSizeUsed}kB {MemSize}kB {MemPerUse}% {MemPerUse.color} + Added: trunk/templates/mikrotik-rb400/memory/oids =================================================================== --- trunk/templates/mikrotik-rb400/memory/oids (rev 0) +++ trunk/templates/mikrotik-rb400/memory/oids 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,3 @@ +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 Added: trunk/templates/mikrotik-rb400/memory/thresholds =================================================================== --- trunk/templates/mikrotik-rb400/memory/thresholds (rev 0) +++ trunk/templates/mikrotik-rb400/memory/thresholds 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,2 @@ +MemPerUse : red : >99 : Memory utilization is critical +MemPerUse : yellow : >95 : Memory utilization is high Added: trunk/templates/mikrotik-rb400/memory/transforms =================================================================== --- trunk/templates/mikrotik-rb400/memory/transforms (rev 0) +++ trunk/templates/mikrotik-rb400/memory/transforms 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,4 @@ +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 Added: trunk/templates/mikrotik-rb400/specs =================================================================== --- trunk/templates/mikrotik-rb400/specs (rev 0) +++ trunk/templates/mikrotik-rb400/specs 2011-01-22 22:07:16 UTC (rev 196) @@ -0,0 +1,4 @@ +vendor : mikrotik +model : rb400 +snmpver : 2 +sysdesc : RouterBoard 400 Series This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2011-01-22 21:57:02
|
Bugs item #2924007, was opened at 2009-12-31 05:28 Message generated for change (Comment added) made by buchanmilne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2924007&group_id=160720 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Templates Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Richard Finegold (goldfndr) Assigned to: Nobody/Anonymous (nobody) Summary: Template exceptions sorted misleadingly Initial Comment: According to the TEMPLATES documentation, the "exceptions" are applied in a specific order: ignore, only, alarm, noalarm. But many of the templates list alarm before ignore, which implies a different specific order or random processing. If one has read the documentation ("So if you have a primary alias that matches both an 'ignore' and an 'alarm' exception, no alarm will be generated (in fact, the row wont even be displayed in the repeater table)."), it can be somewhat jarring. The templates' exceptions files should be revised to be in the documented order, as reminder/reinforcement for the documentation. Some of the cisco serial exceptions (e.g. 2801, 2900, 2950, 2970, 6506) seem to be in the correct order, but they're arguably more like Easter Eggs than correct. Additionally, the USING and using.html documents should be revised to conform to the documented order instead of only/ignore/alarm on/no alarm. Additionally, perhaps the paragraph that follows the exception types in USING and using.html should be appended with a Alternatively, if the TEMPLATES documentation is wrong, the documentation should be corrected. I can create patches if that would help. ---------------------------------------------------------------------- >Comment By: Buchan Milne (buchanmilne) Date: 2011-01-22 23:57 Message: I probably won't look at fixing this myself for 0.3.1, which I would like to release soon, but if you supply a patch I can take a look. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=816977&aid=2924007&group_id=160720 |
From: <buc...@us...> - 2011-01-22 21:24:52
|
Revision: 195 http://devmon.svn.sourceforge.net/devmon/?rev=195&view=rev Author: buchanmilne Date: 2011-01-22 21:24:45 +0000 (Sat, 22 Jan 2011) Log Message: ----------- Only respect ' x ' as multiplication, not 'x', otherwise oids with x in the name get mangled Modified Paths: -------------- trunk/docs/TEMPLATES trunk/modules/dm_tests.pm trunk/templates/netapp-misc/volume/transforms Modified: trunk/docs/TEMPLATES =================================================================== --- trunk/docs/TEMPLATES 2011-01-21 14:58:23 UTC (rev 194) +++ trunk/docs/TEMPLATES 2011-01-22 21:24:45 UTC (rev 195) @@ -440,12 +440,20 @@ ' . ' (string concatenation - note white space each side) '(' and ')' (Expression nesting) - This transform is not whitespace sensitive, so both: + This transform is not whitespace sensitive, except in the case of x, so both: {sysUpTime} / 100 and {sysUpTime}/100 ...would be accepted, and are functionally equivalent. + + However: + {ifInOps} x 8 + will work, while: + {ifInOps}x8 + will not. This is to avoid problems with oid names containing the character + 'x'. + The mathematical expressions you can perform can be quite complex, such as: ((({sysUpTime}/100) ^ 2 ) x 15) + 10 Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-21 14:58:23 UTC (rev 194) +++ trunk/modules/dm_tests.pm 2011-01-22 21:24:45 UTC (rev 195) @@ -458,7 +458,7 @@ my $print_mask = '%.' . $precision . 'f'; # Convert our math symbols to their perl equivalents - $expr =~ s/x/\*/g; # Multiplication + $expr =~ s/ x / \* /g; # Multiplication $expr =~ s/\^/**/g; # Exponentiation # Extract all our our parent oids from the expression, first Modified: trunk/templates/netapp-misc/volume/transforms =================================================================== --- trunk/templates/netapp-misc/volume/transforms 2011-01-21 14:58:23 UTC (rev 194) +++ trunk/templates/netapp-misc/volume/transforms 2011-01-22 21:24:45 UTC (rev 195) @@ -1,3 +1,3 @@ -dfPercent : MATH : {dfKBytesUsed}/{dfKBytesTotal}x100 +dfPercent : MATH : {dfKBytesUsed}/{dfKBytesTotal} x 100 dfGBytesTotal : MATH : {dfKBytesTotal} / 1048576 dfGBytesUsed : MATH : {dfKBytesUsed} / 1048576 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-21 14:58:30
|
Revision: 194 http://devmon.svn.sourceforge.net/devmon/?rev=194&view=rev Author: buchanmilne Date: 2011-01-21 14:58:23 +0000 (Fri, 21 Jan 2011) Log Message: ----------- Some documentation improvements from Richard Finegold #2592621 Modified Paths: -------------- trunk/docs/TEMPLATES Modified: trunk/docs/TEMPLATES =================================================================== --- trunk/docs/TEMPLATES 2011-01-21 14:38:42 UTC (rev 193) +++ trunk/docs/TEMPLATES 2011-01-21 14:58:23 UTC (rev 194) @@ -51,15 +51,15 @@ nodes) are extraneous and should be removed. This way, when you sync your templates on disk to your database, there's no confusion as to which set of templates on disk match the ones - that a multinode devmon installation is using (which are the + that a multinode Devmon installation is using (which are the ones in the database). For all our examples below, we will assume that we are working in the template directory "/usr/local/devmon/templates". This will - probably vary in your installation, depending on where you have + probably differ in your installation, depending on where you have installed Devmon. - The first tier of sub-directories in the templates dir are + The first tier of subdirectories in the templates dir are vendor-model specific. So, each subdirectory represents a particular model from a particular vendor (so, a Cisco 2950 would have one directory, while a Cisco 3750 would have another). Any @@ -67,7 +67,7 @@ are examined. The actual name of these directories is irrelevant, as the actual vendor and model names are specified in the 'specs' file (described below). However, it doesn't hurt to make the - subdirectories somewhat descriptive, I usually use a + subdirectories somewhat descriptive; I usually use a "vendor-model" style. @@ -97,7 +97,7 @@ structure. The 'vendor' and 'model' variables are specific to this - particular device type, that is, there should not be another specs + particular device type -- there should not be another specs file elsewhere in the templates tree that has the same values for both variables. If there is, Devmon will complain about trying to redefine a template and reject the second template. @@ -149,6 +149,7 @@ is treated as a comment by Devmon, and ignored. Now we'll go over each of these files in detail... + ---------------------------------- -- The 'oids' file @@ -176,8 +177,8 @@ Its important that you use the numeric version of an oid for the second value in this file. Devmon will not map the string version of an OID to its numeric version before it does a query, - which means that your SNMP query is will fail if you use - an alphanumeric oid instead of a numeric one (i.e. 'sysDescr' + which means that your SNMP query will fail if you use an + alphanumeric oid instead of a numeric one (i.e. 'sysDescr' is alphanumeric, '.1.3.6.1.2.1.1.1.0' is numeric). I chose to do this because it is a pain to keep all the various MIBs installed on all of the nodes in a multi-node cluster, and it @@ -186,17 +187,18 @@ separate alias from 'sysDescr'. Also important to note is that OIDs are shared between tests - on the same template. So if you specify OID aliases with i + on the same template. So if you specify OID aliases with identical names (they are case sensitive, remember) in multiple tests in a template, there is only going to be a single value stored in memory, which both OID aliases point to. The upshot - of this is, that if you use the same OID alias in multiple - tests (and this is recommended, as it will make your template - run faster), then they *MUST* have the numeric OID value. If + of this is, if you use the same OID alias in multiple tests + (and this is recommended, as it will make your template run + faster), then they *MUST* have the numeric OID value. If they dont, you are going to get inconsistent results, as - the value stored in memory might arbirtrarily be from one SNMP + the value stored in memory might arbitrarily be from one SNMP variable or another. + ---------------------------------- -- The 'transforms' file ---------------------------------- @@ -257,12 +259,12 @@ the transform input, the resulting transformed alias will be a repeater. - With regards to duplicated OID aliases across multiple tests + With regard to duplicated OID aliases across multiple tests in a single template, transformed OID aliases have the same rules as non-transformed aliases: if you use the same transformed OID alias in multiple tests (which is recommended - as this cuts down on the time devmon spends running test logic) - then their transform rules *must be identical*, as must + as this cuts down on the time Devmon spends running test logic) + then their transform rules *must be identical*, as must all OID aliases that your transformed alias depends on. So, for example, if you have this defined in your if_load test on your cisco-2950 template: @@ -276,7 +278,7 @@ you are going to be in trouble, because the 'time' OID alias might not even exist in the if_load test. So try to keep your duplicated OID aliases as simple as possible, so you dont have - you tests stepping on each others toes (although if you do have + your tests stepping on each others toes (although if you do have two transformed OIDs doing the same transform on the same data, you should by all means duplicate them, as this will make your tests run much faster). @@ -292,6 +294,7 @@ the 'best' and red being the 'worst') in the transformed data alias. The oids can either be comma or space delimited. + 'CHAIN' transform: Occasionally a device will store a numeric SNMP oid (AKA the @@ -312,7 +315,7 @@ .1.1.3.2342 = 'System fans are non-operational' Chances are that you won't know what leaf values will be returned - for .1.1.3, but you know that .1.1.2 returns consistant values. + for .1.1.3, but you know that .1.1.2 returns consistent values. You can use the CHAIN transform to 'chain' these two oids together to make the data more accessible. The format for the CHAIN transform is: @@ -326,7 +329,7 @@ 'CONVERT' transform: - Convert a string in either hexidecimal or octal to its + Convert a string in either hexadecimal or octal to its decimal equivalent. Takes two arguments, a target OID alias and a conversion type, which must be either 'hex' or 'oct'. @@ -349,7 +352,7 @@ The limit is used as the maximum value of the data alias, and comes in to play when the value from supplied data alias from - last polling cycle is more than the value from your current + the last polling cycle is more than the value from your current polling cycle. This typically occurs when you have counter-wrap issues in @@ -357,7 +360,7 @@ heavy traffic can wrap its ifOctet counters in less than two minutes). - If you don't specify a limit and Devmon detects a counter + If you don't specify a limit and Devmon detects a counter- wrap, it will use either the 32bit or 64bit upper limit, accordingly. @@ -373,7 +376,7 @@ Keep in mind that the DELTA transform takes at least two poll cycles to return meaningful data, so in the mean time you will get a 'wait' result stored in the target OID alias - (as well as an aliases that are transformed based off the + (as well as in aliases that are transformed based off the target alias). @@ -397,6 +400,7 @@ 'INDEX' transform: + This transform allows you to access the index part of a numerical OID in a repeater OID. @@ -419,6 +423,7 @@ do on the index value should be possible with existing transforms. + 'MATH' transform: The MATH transform performs a mathematical expression defined @@ -481,7 +486,7 @@ templates included with Devmon, to include the ifAlias information for an interface, but only if it has a value defined. A very powerful, but easily misused transform. - Should be interest in using it but not know much about + If you are interested in using it but don't know much about substitution, you might want to google 'regular expression substitution' and try reading up on it. @@ -519,10 +524,10 @@ 'SWITCH' transform: The switch transform transposes one data value for another. - This is most commonly used to transform numeric values + This is most commonly used to transform a numeric value returned by an snmp query into its textual equivalent. The - first argument in the transform input should be the oid to be - transformed. Following this should be a list of comma- + first argument in the transform input should be the oid to be + transformed. Following this should be a list of comma- delimited pairs of values, with each pair of values being separated by an equals sign. For example: @@ -533,7 +538,7 @@ the value of upsBattRepNum was 1, it would store a 'Battery OK' value in the 'upsBattRep' data alias. - You can use simple mathmatical tests on the values of the + You can use simple mathematical tests on the values of the source OID alias, as well as assigning values for different OIDs to the target alias. For instance: @@ -543,7 +548,6 @@ floating point numerical value [i.e. 1, 5.33, 0.001, etc], and 's' is a alphanumeric string): - n : Source alias is equal to this amount >n : Source alias is greater than this amount >=n : Source alias is greater than or equal to this amount @@ -553,7 +557,6 @@ 's' : Source alias matches this string exactly (case sensitive) "s" : Source alias matches this regular expression (non-anchored) - Note that switch statements are applied in a left to right order; so if you have a value that matches the target value on multiple switch statements, the leftmost statement will be the one applied. @@ -562,7 +565,6 @@ to the target OID alias, depending on the value of the source OID alias, like this: - dhcpStatus : SWITCH : {dhcpPoolSize} 0 = No DHCP, >0 = {dhcpAvail} This would assign the value 'No DHCP' to the 'dhcpStatus' alias @@ -574,6 +576,7 @@ by the 'dhcpStatus' variable; if you want to inherit threshold information, use the TSWITCH transform instead. + 'TSWITCH' transform: The TSWITCH transform is functionally equivalent to the SWITCH @@ -639,13 +642,14 @@ the 'worst' and green being the 'best') in the transformed data alias. The oids can either be comma or space delimited. + ---------------------------------- -- The 'thresholds' file ---------------------------------- The thresholds file defines the limits against which the various data aliases that you have created in your 'oids' - and 'transforms' files are measured against. And example + and 'transforms' files are measured against. An example thresholds file is as follows: -<start file>----------------------------- @@ -668,11 +672,11 @@ by colons. The first field in an entry is the data alias that the threshold is to be applied against. The second field is the color that will be assigned to the data alias should it match this - threshold. The third field are the threshold values, which are + threshold. The third field has the threshold values, which are the values that the data alias in the first field will be compared - against. You can have multiple values, delimited by commas, in - the third field. The fourth field is the threshold message, which - will be assigned to the data alias in the first field if it + against. You can have multiple values, delimited by vertical bars, + in the third field. The fourth field is the threshold message, + which will be assigned to the data alias in the first field if it matches this threshold. The threshold message can contain other data aliases. If the data @@ -685,7 +689,7 @@ match a red or yellow threshold. If you want to have a message associated with a green threshold, you can specify it with a green color and a threshold value of '_AUTOMATCH_' (with the - single quotes). This will cause devmon to automatically match the + single quotes). This will cause Devmon to automatically match the threshold when it gets to it, and will assign the green message to the data alias. @@ -708,13 +712,13 @@ If no math operator is defined in the threshold, Devmon assumes that it is a 'greater than' type threshold. That is, if the value obtained via SNMP is greater than this threshold value, the - the threshold is considered to be met and devmon will deal with + the threshold is considered to be met and Devmon will deal with it accordingly. If a threshold value contains even one non-numeric character (other than the math operators illustrated above), it is considered a non-numeric threshold. Non-numeric thresholds are - treated as regular expressions, and devmon tries to match + treated as regular expressions, and Devmon tries to match them against the value of the data contained in the oid that the threshold is applied against. @@ -756,7 +760,7 @@ types of exceptions types that you can use, they are: ignore: - The 'ignore' exception type causes Devmon not display + The 'ignore' exception type causes Devmon to not display rows in a repeater table which have a primary oid that matches the exception regexp. @@ -778,7 +782,7 @@ The exceptions are applied in the order above, and one primary alias can match multiple exceptions. So if you have a primary alias that matches both an 'ignore' and an 'alarm' exception, - no alarm will be generated (in fact, the row wont even be + no alarm will be generated (in fact, the row won't even be displayed in the repeater table). The example file listed above, from a cisco 2950 if_stat test, @@ -797,7 +801,7 @@ The messages file is what brings all the data collected from the other files in the template together in a single cohesive entry. - It is basically an web page (indeed, you can add html to it, if you + It is basically a web page (indeed, you can add html to it, if you like) with some special macros embedded in it. An example of a simple messages file is as follows: @@ -842,10 +846,10 @@ color: - This flag will print out the bb/hobbit color string + This flag will print out the bb/hobbit/xymon color string assigned to this data alias by the thresholds (this string looks like '&red' or '&green', etc). This color string - will be interpreted by hobbit as a colored icon, which + will be interpreted by xymon as a colored icon, which makes alarm conditions much easier to recognize. Like the 'errors' flag, it will also modify the global color. @@ -856,11 +860,11 @@ assigned to the alias from a non-green threshold match (the message is the value assigned in the fourth field of an entry in the thresholds file, remember?). If the value assigned - to an data alias is green, then this value that replaces this + to a data alias is green, then the value that replaces this flag will be blank. - Error messages will always be printed as the TOP of the message - file, regardless of where they are defined with in it. This + Error messages will always be printed at the TOP of the message + file, regardless of where they are defined within it. This is done to make sure that the user sees any errors that might have occurred, which they might miss if the messages file is too long. @@ -883,7 +887,7 @@ thresh: - The syntax for the threshold flag is {oid.thresh:<color>}. + The syntax for the thresh flag is {oid.thresh:<color>}. It displays the value in the threshold file (or custom threshold) that corresponds with the supplied color. So, {CPUTotal5Min.thresh:yellow} would display the template value @@ -910,7 +914,7 @@ Devmon basically just builds an HTML table out of the repeater data. It can have an optional header, which should be specified - on the line immediately after the 'TABLE:' tag. If not table + on the line immediately after the 'TABLE:' tag. If no table header is desired, the line after the table tag should be the row data identifier. @@ -960,18 +964,22 @@ pad=n Set the HTML table cellpadding size that Devmon will use - An example of the some TABLE options in use: + rrd + See the GRAPHING document in this directory for explanation + An example of some TABLE options in use: + TABLE: alarmsonbottom,border=0,pad=10 The STATUS: key allows you to extend the first line of the status - message that Devmon sends to BB/Hobbit. For example, if you need - to get data to a Hobbit rrd collector module that evaluates data + message that Devmon sends to BB/Hobbit/Xymon. For example, if you need + to get data to a Xymon rrd collector module that evaluates data in the first line of the message (such as the Hobbit la collector which expects "up: <time>, %d users, %d procs load=%d.%d" you can use this key as follows to get a load average graph: STATUS: up: load={laLoadFloat2} + ---------------------------------- -- Done! @@ -991,20 +999,20 @@ using a dummy bb-hosts file (even if your production Devmon cluster runs in multi-node mode, running the test Devmon in single node mode prevents you from having to create an - additional database for your devmon "test" installation). + additional database for your Devmon "test" installation). With the -vv and -p flags (i.e. devmon -vv -p), you will get verbose output from Devmon, and if you have a host in the bb-hosts file that matches the sysdesc in the specs file of the the model-vendor for the new template you created, you will also get textual output of your new template! - (the -p flag causes devmon to not run in the background and + (The -p flag causes Devmon to not run in the background and to print messages to STDOUT as opposed to sending them to the - display server, and the -vv flag causes Devmon to log verbosely). + display server, and the -vv flag causes Devmon to log verbosely.) Once you are satisfied that your template is working correctly, you can put it to work in your production installation. In a single-node installation, this is as simple as copying the - template directory to the appropriate sub-directory of your + template directory to the appropriate subdirectory of your templates/ dir. On the next poll cycle, Devmon will pick up the new template, and any new hosts discovered by your readbbhosts cron job will be added to the Devmon database @@ -1017,7 +1025,7 @@ and deleting all the template directories on the node machines). Once you have it in place, run devmon with the --synctemplates flag. This will read in the templates, update the database - as necessary, and then notify all the devmon nodes that they + as necessary, and then notify all the Devmon nodes that they need to reload their templates. A full template reload on all your machines can take up to twice the interval of your polling cycle, so be patient! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-21 14:38:48
|
Revision: 193 http://devmon.svn.sourceforge.net/devmon/?rev=193&view=rev Author: buchanmilne Date: 2011-01-21 14:38:42 +0000 (Fri, 21 Jan 2011) Log Message: ----------- Fix RRD definitions, where MIN graph legends showed 'avg' instead of 'min' #2592439 Modified Paths: -------------- trunk/extras/devmon-graph.cfg Modified: trunk/extras/devmon-graph.cfg =================================================================== --- trunk/extras/devmon-graph.cfg 2011-01-21 12:46:27 UTC (rev 192) +++ trunk/extras/devmon-graph.cfg 2011-01-21 14:38:42 UTC (rev 193) @@ -14,7 +14,7 @@ LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) - GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) + GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (min) GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n -l 0 @@ -34,7 +34,7 @@ LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %s (cur) GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %s (max) - GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (avg) + GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %s (min) GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n -l 0 @@ -52,7 +52,7 @@ #LINE1:out@RRDIDX@#@COLOR@:@RRDPARAM@ Threshold #GPRINT:out@RRDIDX@:LAST: %8.2lf %s (cur) #GPRINT:out@RRDIDX@:MAX: %8.2lf %s (max) - #GPRINT:out@RRDIDX@:MIN: %8.2lf %s (avg) + #GPRINT:out@RRDIDX@:MIN: %8.2lf %s (min) #GPRINT:out@RRDIDX@:AVERAGE: %8.2lf %s (avg)\n -l 0 @@ -83,7 +83,7 @@ LINE1:out@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:out@RRDIDX@:LAST: %8.2lf/s %s (cur) GPRINT:out@RRDIDX@:MAX: %8.2lf/s %s (max) - GPRINT:out@RRDIDX@:MIN: %8.2lf/s %s (avg) + GPRINT:out@RRDIDX@:MIN: %8.2lf/s %s (min) GPRINT:out@RRDIDX@:AVERAGE: %8.2lf/s %s (avg)\n -l 0 @@ -101,6 +101,6 @@ LINE1:outbytes@RRDIDX@#@COLOR@:@RRDPARAM@ Out GPRINT:outbytes@RRDIDX@:LAST: %8.2lf %sBps (cur) GPRINT:outbytes@RRDIDX@:MAX: %8.2lf %sBps (max) - GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %sBps (avg) + GPRINT:outbytes@RRDIDX@:MIN: %8.2lf %sBps (min) GPRINT:outbytes@RRDIDX@:AVERAGE: %8.2lf %sBps (avg)\n -l 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-21 12:46:33
|
Revision: 192 http://devmon.svn.sourceforge.net/devmon/?rev=192&view=rev Author: buchanmilne Date: 2011-01-21 12:46:27 +0000 (Fri, 21 Jan 2011) Log Message: ----------- Log logic processing for each test on each device with debugging and verbosity 2, to assist with tracking down 'Missing msg data'. However, a more efficient solution is required. Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-14 14:00:15 UTC (rev 191) +++ trunk/modules/dm_tests.pm 2011-01-21 12:46:27 UTC (rev 192) @@ -72,6 +72,7 @@ # Separate tests, perform individual test logic for my $test (split /,/, $tests) { + do_log("... for test $test on device $device ($vendor-$model)",2) if $g{debug}; # Make sure test template exists do_log("Could not find test template for '$test' on $device", 0) @@ -2281,7 +2282,7 @@ } if(!defined $val) { - do_log("Missing msg data for $dep_oid on leaf $leaf", 0); + do_log("Missing msg data for $dep_oid on leaf $leaf", 1); $val = 'Undefined'; } } @@ -2300,7 +2301,7 @@ $val = $oid_h->{'val'}; } if(!defined $val) { - do_log("Missing msg data for $dep_oid", 0); + do_log("Missing msg data for $dep_oid", 1); $val = 'Undefined'; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-14 14:00:21
|
Revision: 191 http://devmon.svn.sourceforge.net/devmon/?rev=191&view=rev Author: buchanmilne Date: 2011-01-14 14:00:15 +0000 (Fri, 14 Jan 2011) Log Message: ----------- Fix "No SNMP data" avoidance Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-14 13:32:06 UTC (rev 190) +++ trunk/modules/dm_tests.pm 2011-01-14 14:00:15 UTC (rev 191) @@ -179,7 +179,7 @@ if (!defined $num or !defined $snmp->{$num} or !defined $snmp->{$num}{'val'} ) { - do_log("No SNMP data found for $oid on $device", 0) if ($g{'color'}{$device} eq 'green'); + do_log("No SNMP data found for $oid on $device", 0) if ($g{'hobbit_color'}{$device} eq 'green'); next } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-14 13:32:13
|
Revision: 190 http://devmon.svn.sourceforge.net/devmon/?rev=190&view=rev Author: buchanmilne Date: 2011-01-14 13:32:06 +0000 (Fri, 14 Jan 2011) Log Message: ----------- Change Hobbit-related strings to be based on bbtype Allow 'xymon' as a value for bbtype, and make it the default Update some other occurances of the string "Hobbit" Modified Paths: -------------- trunk/README trunk/devmon.cfg trunk/modules/dm_config.pm trunk/modules/dm_snmp.pm trunk/modules/dm_tests.pm Modified: trunk/README =================================================================== --- trunk/README 2011-01-13 12:04:27 UTC (rev 189) +++ trunk/README 2011-01-14 13:32:06 UTC (rev 190) @@ -1,5 +1,5 @@ -Devmon, version 0.2 +Devmon, version 0.3.1-beta1 ===================================================================== This program is free software; you can redistribute it and/or modify @@ -62,11 +62,11 @@ is used to execute the Devmon code. In addition, you will need a machine (either the same machine - running Devmon, or a different one) runing either the Hobbit + running Devmon, or a different one) runing either the Hobbit/Xymon or BigBrother monitoring program, which displays the messages that Devmon generates. - Finally, you will need your to have your Hobbit or BigBrother + Finally, you will need your to have your Hobbit/Xymon or BigBrother program set up to monitor at least one host that Devmon has a template for. Only then will Devmon be able to poll a remote host and display the results. For more information on Modified: trunk/devmon.cfg =================================================================== --- trunk/devmon.cfg 2011-01-13 12:04:27 UTC (rev 189) +++ trunk/devmon.cfg 2011-01-14 13:32:06 UTC (rev 190) @@ -19,9 +19,9 @@ # used when running devmon with the --readbbhosts flag. In a multi-node # cluster, the only system that needs to have this set is the one that # the display server is running on; other systems can leave this at default. -# (case sensitive) [DEFAULT: /home/hobbit/server/etc/bb-hosts or +# (case sensitive) [DEFAULT: /home/xymon/server/etc/bb-hosts or # BBHOSTS environment variable set] -#BBHOSTS=/home/hobbit/server/etc/bb-hosts +#BBHOSTS=/home/xymon/server/etc/bb-hosts # BBTAG: This is the indentifier (aka tag) that you use in your bb-hosts # which allows Devmon to determine which of the options after a host @@ -89,11 +89,11 @@ ### # BBTYPE: Determines how devmon will format its output pages.Accetable values -# are 'bb' or 'hobbit', either each option setting the output format to that -# of its respective server type [DEFAULT: hobbit] -BBTYPE=hobbit +# are 'bb','hobbit' or 'xymon, either each option setting the output format to that +# of its respective server type [DEFAULT: xymon] +BBTYPE=xymon -# DISPSERV: Should contain the DNS name or IP address of th BB or hobbit +# DISPSERV: Should contain the DNS name or IP address of th BB or hobbit/xymon # display server. [DEFAULT: localhost or BBDISP environment variable if set] #DISPSERV=localhost Modified: trunk/modules/dm_config.pm =================================================================== --- trunk/modules/dm_config.pm 2011-01-13 12:04:27 UTC (rev 189) +++ trunk/modules/dm_config.pm 2011-01-14 13:32:06 UTC (rev 190) @@ -169,8 +169,8 @@ # Our global options %{$g{'globals'}} = ( - 'bbtype' => { 'default' => 'hobbit', - 'regex' => 'bb|hobbit', + 'bbtype' => { 'default' => 'xymon', + 'regex' => 'bb|hobbit|xymon', 'set' => 0, 'case' => 0 }, 'dispserv' => { 'default' => (defined $ENV{'BBDISP'} and $ENV{BBDISP} ne '') ? $ENV{'BBDISP'} : 'localhost', @@ -338,7 +338,7 @@ do_log("---Initilizing devmon...",0); do_log("Verbosity level: $g{'verbose'}",1); do_log("Logging to $g{'logfile'}",1); - do_log("Node $g{'my_nodenum'} reporting to $g{'dispserv'}",0); + do_log("Node $g{'my_nodenum'} reporting to $g{'bbtype'} at $g{'dispserv'}",0); do_log("Running under process id: $g{'mypid'}",0); # We are now initialized Modified: trunk/modules/dm_snmp.pm =================================================================== --- trunk/modules/dm_snmp.pm 2011-01-13 12:04:27 UTC (rev 189) +++ trunk/modules/dm_snmp.pm 2011-01-14 13:32:06 UTC (rev 190) @@ -65,8 +65,8 @@ # Query our hobbit server for device reachability status # we dont want to waste time querying devices that are down # Note: this doesn't work for the original BigBrother server - if($g{'bbtype'} eq 'hobbit') { - do_log("Getting device status from hobbit at " . $g{'dispserv'} . ":" . $g{'dispport'},1); + if($g{'bbtype'} eq 'hobbit' or $g{'bbtype'} eq 'xymon') { + do_log("Getting device status from $g{'bbtype'} at " . $g{'dispserv'} . ":" . $g{'dispport'},1); %{$g{'hobbit_color'}} = (); my $sock = IO::Socket::INET->new ( PeerAddr => $g{'dispserv'}, @@ -81,7 +81,7 @@ while(<$sock>) { my ($device,$color,$line1) = split /\|/; my ($l1col) = ($line1 =~ /^(\w+)/); - do_log("DEBUG SNMP: $device has hobbit status $color ($l1col)",2) if $g{debug}; + do_log("DEBUG SNMP: $device has $g{'bbtype'} status $color ($l1col)",2) if $g{debug}; $g{'hobbit_color'}{$device} = $color ne "blue" && $color || $l1col; } } @@ -97,7 +97,7 @@ # server thinks that it isnt reachable if(defined $g{'hobbit_color'}{$device} and $g{'hobbit_color'}{$device} ne 'green') { - do_log("$device has a non-green hobbit status, skipping SNMP.", 2); + do_log("$device has a non-green $g{'bbtype'} status, skipping SNMP.", 2); next QUERYHASH; } Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-13 12:04:27 UTC (rev 189) +++ trunk/modules/dm_tests.pm 2011-01-14 13:32:06 UTC (rev 190) @@ -1693,8 +1693,9 @@ # Do we have a hobbit color, and if so, is it green? elsif(defined $g{'hobbit_color'}{$device} and $g{'hobbit_color'}{$device} ne 'green') { + my $bbname = ucfirst $g{'bbtype'}; return "status $bb_host.$test clear $now" . - "\n\nHobbit reports this device is unreachable.\n" . + "\n\n$bbname reports this device is unreachable.\n" . "Suspending this test until reachability is restored\n\n" . "Devmon version $g{'version'} running on $g{'nodename'}\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-13 12:04:34
|
Revision: 189 http://devmon.svn.sourceforge.net/devmon/?rev=189&view=rev Author: buchanmilne Date: 2011-01-13 12:04:27 +0000 (Thu, 13 Jan 2011) Log Message: ----------- Dont log "No SNMP data found" messages for hosts which we did not poll due to being unreachable according to hobbit/xymon Modified Paths: -------------- trunk/modules/dm_tests.pm Modified: trunk/modules/dm_tests.pm =================================================================== --- trunk/modules/dm_tests.pm 2011-01-11 13:41:47 UTC (rev 188) +++ trunk/modules/dm_tests.pm 2011-01-13 12:04:27 UTC (rev 189) @@ -176,9 +176,12 @@ $oids->{$oid}{'transform'} = 0; $oids->{$oid}{'repeat'} = $repeat; - do_log("No SNMP data found for $oid on $device", 0) and next - if !defined $num or !defined $snmp->{$num} - or !defined $snmp->{$num}{'val'}; + if (!defined $num or !defined $snmp->{$num} + or !defined $snmp->{$num}{'val'} ) + { + do_log("No SNMP data found for $oid on $device", 0) if ($g{'color'}{$device} eq 'green'); + next + } # If this is a repeater, iterate through its leaves and assign values if($repeat) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2011-01-11 13:41:54
|
Revision: 188 http://devmon.svn.sourceforge.net/devmon/?rev=188&view=rev Author: buchanmilne Date: 2011-01-11 13:41:47 +0000 (Tue, 11 Jan 2011) Log Message: ----------- Open the log file before daemonize so stderr is still open to report if opening the log file fails, but re-open the log file in daemonize Modified Paths: -------------- trunk/modules/dm_config.pm Modified: trunk/modules/dm_config.pm =================================================================== --- trunk/modules/dm_config.pm 2010-11-30 11:35:45 UTC (rev 187) +++ trunk/modules/dm_config.pm 2011-01-11 13:41:47 UTC (rev 188) @@ -268,12 +268,12 @@ # Dont daemonize if we are printing messages $g{'daemonize'} = 0 if $g{'print_msg'}; + # Open the log file + open_log(); + # Daemonize if need be daemonize(); - # Open the log file - open_log(); - # Set our pid $g{'mypid'} = $$; @@ -1012,14 +1012,14 @@ return if $g{'logfile'} =~ /^\s*$/ or !$g{'daemonize'}; $g{'log'} = new IO::File $g{'logfile'}, 'a' - or log_fatal("Unable to open logfile! ($!)",0); + or log_fatal("ERROR: Unable to open logfile $g{'logfile'} ($!)",0); $g{'log'}->autoflush(1); } # Allow Rotation of log files sub reopen_log { my ($signal) = @_; - do_log("Received signal $signal, closing and re-opening log file",3); + do_log("Received signal $signal, closing and re-opening log file",3) if $signal; if (defined $g{'log'}) { undef $g{'log'}; &open_log; @@ -2062,6 +2062,9 @@ $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = \&quit; $SIG{HUP} = \&reopen_log; + # Re-open the log file to ensure file descriptors are right + reopen_log(); + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Nelis, W. <Wim...@nl...> - 2010-12-21 07:59:16
|
Hello, the syntax check of the WORST transform failed, while the syntax looks good: Phy2StatusE : WORST : {endptPhy2Speed},{endptPhy2Duplex} The patch below changes the syntax check to become identical to the syntax check of a BEST transform. Once applied the line above will not result in an error message any more. However, it is not clear to me what is wrong with the original RE to check the syntax. Index: modules/dm_templates.pm =================================================================== --- modules/dm_templates.pm (revision 10) +++ modules/dm_templates.pm (revision 11) @@ -653,7 +653,7 @@ }; $func_type eq 'worst' and do { - $temp =~ s/^\s*\{\s*\S+?\s*\}|\s*,\s*//g; + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; do_log("WORST transform uses only comma-delimited oids at " . "$trans_file, line $l_num", 0) and next LINE if $temp ne ''; Wim Nelis. ******************************************************************************************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ******************************************************************************************************* |
From: Nelis, W. <Wim...@nl...> - 2010-12-20 14:51:09
|
Hello, when Devmon evaluates the transforms in a template, it uses a recursive algorithm to resolve the dependencies between the OIDs. In the patch below, the evaluation is divided into two steps. First the order of the evaluation of the OIDs is determined using a topological sort. Then, the OIDS are evaluated, without recursion, in the order determined in the previous step. An added benefit of a topological sort is that it detects any circular dependency chains in a simple and robust manner. The patch on Devmon below is NOT complete: the implementation for a multinode environment is still missing, as I have no means to test it. Although it is possible to sort the OIDs just after reading them from the database, a better approach is probably to save the sorted list of OIDs in the database as well. The patch is published in the hope that someone is both interested and willing to extend and test it in a multinode environment. The patch uses the "/trunk" Devmon version 187 as the base. It is in use at our site for over half a year, without apperent problems. I had the impression that the runtime of Devmon was lowered with about 1 second, on a total average run-time of about 70 seconds, but after a few days the total average run-time was back to it's original value. Index: dm_templates.pm =================================================================== --- dm_templates.pm (revision 9) +++ dm_templates.pm (working copy) @@ -439,7 +439,6 @@ # Define our valid transforms functions my %trans = (); my $deps = {}; - my $path = []; # Define the file; make sure it exists and is readable @@ -684,13 +683,15 @@ and delete $trans{$oid} and next if !defined $tmpl->{'oids'}{$dep_oid} and !defined $trans{$dep_oid}; - $deps->{$oid}{$dep_oid} = {}; + $deps->{$dep_oid}{$oid} = {}; } } - # Find dependency loops (tricky!) - my $val = find_deps($deps, \%trans, $path); - return 0 if $val == 0; + # Sort the OIDs in a order in which they need to be calculated. At the same + # time any dependency loop is found and reported. + my $val = sort_oid( $deps ); + return 0 unless defined $val; + $tmpl->{'sort'} = $val; # Now add the translations to the global hash for my $oid (keys %trans) { @@ -704,59 +705,65 @@ } + # + # Function sort-oid sorts the OIDs used in the transformations in a order + # in which they are to be calculated: each OID is sorted after the OIDs it + # depends on. + # At the same time, it checks the dependencies for any circular chains. If no + # such chain is found, this function returns a reference to the sorted list of + # OIDs. If at least one circular chain is found, the returned value is undef. + # + # This function uses the topological sort method. + # + sub sort_oid($) { + my $deps= $_[0] ; + my @Sorted= () ; # Sorted list of OIDs + my %Cnt= () ; # Dependency counters + my ($oid,$mods) ; # Loop control variables + + # + # Build table %Cnt. It specifies for each OID the number of other OIDs which + # are needed to compute the OID. + # + foreach $oid ( keys %$deps ) { + $Cnt{$oid}= 0 unless defined $Cnt{$oid} ; + foreach ( keys %{$$deps{$oid}} ) { + $Cnt{$_}= 0 unless defined $Cnt{$_} ; + $Cnt{$_}++ ; + } # of foreach + } # of foreach + + # + # Sort the OIDs. If for a given OID no other OIDs are needed to compute its + # value, move that OID to the sorted list and decrease the counts of each OID + # which is computed using this OID. This process is repeated until no OIDs can + # be moved any more. Any remaining OIDs, mentioned in %Cnt, must be in a + # circular chain of dependencies. + # + $mods= 1 ; # End-of-loop indicator + while ( $mods > 0 ) { + $mods= 0 ; # Preset mod-count of this pass + foreach $oid ( keys %Cnt ) { + next unless $Cnt{$oid} == 0 ; + if ( defined $$deps{$oid} ) { + $Cnt{$_}-- foreach keys %{$$deps{$oid}} ; + $mods++ ; # A counter is changed + } # of if + push @Sorted, $oid ; # Move OID to sorted list + delete $Cnt{$oid} ; + } # of foreach + } # of while + + if ( keys %Cnt ) { + do_log( "The following OIDs are in one or more circular depency chains: " . + join(', ',sort keys %Cnt), 0 ) ; + return undef ; # Circular dependency chain found + } else { + return \@Sorted ; # No circular dependency chains found + } # of else + } # of sort_oid - # Build a dependency tree for translated oids and find any loops - # or missing oids that defined ones may be dependent on - sub find_deps { - my ($deps, $trans, $path) = @_; - # Our path variable keeps track of where in the tree we are - @$path = () if !defined $path; - - # pointer variable to act as a placeholder for our current spot in the tree - my $pointer = \%{$deps}; - for my $pt (@$path) {$pointer = \%{$pointer->{$pt}}} - - # Now iterate through the oids in our current spot in the tree - for my $oid (keys %$pointer) { - - # Update our path - push @$path, $oid; - - # Determine our root id, used later for troubleshooting - my $root_oid = $path->[0]; - - # See if this variable is preset in the translation hash - if(defined $trans->{$oid}) { - # If it is, see if it has other oids that it depends on - my $data = $trans->{$oid}{'data'}; - while($data =~ s/\{(.+?)\}//) { - - # It depends on other oids; iterate into them to make sure that - # they are defined and that we dont loop back and depend on a - # oid defined somewhere earlier in our path - my $dep_oid = $1; - my @temp = @$path; - while (my $path_oid = shift @temp) { - next if $path_oid ne $dep_oid; - do_log("$root_oid has a looped dependency: " . - join('->', @$path), 0); - return 0; - } - $pointer->{$oid}{$dep_oid} = {} - if !defined $pointer->{$oid}{$dep_oid}; - my $val = find_deps($deps, $trans, $path); - return 0 if $val == 0; - } - } - pop @$path; - } - - return 1; - } - - - # Subroutine to read in the thresholds file sub read_thresholds_file { my ($dir, $tmpl) = @_; Index: dm_tests.pm =================================================================== --- dm_tests.pm (revision 8) +++ dm_tests.pm (working copy) @@ -38,7 +38,6 @@ my %speeds = ( 1 => '[b/s]', 10**3 => '[kb/s]', 10**6 => '[Mb/s]', 10**9 => '[Gb/s]', 10**12 => '[Tb/s]', 10**15 => '[Pb/s]'); - # Main test subroutine; parse data and feed it to the individual # test-specific subs sub tests { @@ -95,19 +94,11 @@ $g{'hobbit_color'}{$device} eq 'green') { # First transform any data and do threshold evaluations - my @translist = keys %$oids; - my %skiplist = (); - for my $oid (@translist) { + for my $oid ( @{$$tmpl{'sort'}} ) { # Only transform if we dont already have values for this oid - next if !$oids->{$oid}{'transform'} or - defined $oids->{$oid}{'val'}; - # Only transform if we have dependent value, otherwise push onto end of queue (not a perfect solution, but better than before) - if(ref $oids->{$oid}{trans_data} eq "HASH" && ! defined $oids->{$oids->{$oid}{trans_data}{dep_oid}}{val}) { - do_log("Skipping oid $oid until ".$oids->{$oid}{trans_data}{dep_oid}." defined for $device") if $g{debug}; - push @translist,($oid) unless $skiplist{$oid}++; - } else { - transform($device, $oids, $oid, $thr); - } + next if !$oids->{$oid}{'transform'}; + next if defined $oids->{$oid}{'val'}; + transform($device, $oids, $oid, $thr); } } @@ -220,17 +211,11 @@ sub transform { my ($device, $oids, $oid, $thr) = @_; - return if defined $oids->{$oid}{'val'}; +# return if defined $oids->{$oid}{'val'}; # Shortcut to our snmp data my $trans_type = $oids->{$oid}{'trans_type'}; my $trans_data = $oids->{$oid}{'trans_data'}; - # Transform any oids that we depend on before we finish this one - for my $dep_oid ($trans_data =~ /\{(.+?)\}/g) { - transform($device, $oids, $dep_oid) - if $oids->{$dep_oid}{'transform'}; - } - # Make sure we inherit repeatability from previous types my $trans_sub = "trans_" . $trans_type; no strict 'refs'; Regards, Wim Nelis. ******************************************************************************************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ******************************************************************************************************* |
From: Nelis, W. <Wim...@nl...> - 2010-12-19 13:32:07
|
Hello, Below are a number of modifications to Devmon, which are in use here for almost a year. I think that some of them are usefull to other DEVMON users as well. A- In revision 118 the option is introduced to format the date/time shown in the header of each message like Xymon does. However, the date/time of the "dm" status message was forgotten. Index: dm_msg.pm =================================================================== --- dm_msg.pm (revision 3) +++ dm_msg.pm (revision 5) @@ -21,6 +21,7 @@ # Modules use strict; use Socket; + use POSIX qw/ strftime /; use dm_config; # Our global variable hash @@ -212,7 +213,8 @@ # Add the header my $host = $g{'nodename'}; $host =~ s/\./,/g; # Dont forget our FQDN stuff - $message = "status $host.dm $color ".(scalar localtime)."\n\n$message\n"; + my $now = $g{'bbdateformat'} ? strftime($g{'bbdateformat'},localtime) : scalar(localtime); + $message = "status $host.dm $color $now\n\n$message\n"; return $message; B- There is no trend-information about the run-time of devmon itself. The following patch does send the run-time as an NCV to Xymon. In Xymon additional changes are needed to capture and display these statistics. Index: dm_msg.pm =================================================================== --- dm_msg.pm (revision 5) +++ dm_msg.pm (revision 6) @@ -210,6 +210,15 @@ $message .= "&red $stalledforks forks of $g{'numforks'} are stalled\n"; } + # Replace each ":" and "=" by their equivalent HTML escape charater, in + # order not to confuse the Xymon NCV module. Write the polling time + # (in HTML comment) for storage in an RRD. + $message =~ s/:/:/g ; + $message =~ s/=/=/g ; + $message .= "<!--\n" . + "PollTime : $this_poll_time\n" . + "-->" ; + # Add the header my $host = $g{'nodename'}; $host =~ s/\./,/g; # Dont forget our FQDN stuff C- The speed of a Gigabit interface is shown as "1000 Mbps". I prefer it to be shown as "1.00 Gbps". Index: dm_tests.pm =================================================================== --- dm_tests.pm (revision 6) +++ dm_tests.pm (revision 7) @@ -1141,7 +1141,7 @@ # Get largest speed type my $speed = 1; # Start low: 1 bps - $speed *= 1000 while $bps > ($speed * 1000); + $speed *= 1000 while $bps >= ($speed * 1000); my $unit = $speeds{$speed}; # Measure to 2 decimal places @@ -1161,7 +1161,7 @@ # Get largest speed type my $speed = 1; # Start low: 1 bps - $speed *= 1000 while $bps > ($speed * 1000); + $speed *= 1000 while $bps >= ($speed * 1000); my $unit = $speeds{$speed}; # Measure to 2 decimal places D- In function read_tansforms_file the check on transform 'index' is moved. The transform checks are now in sorted order. Index: dm_templates.pm =================================================================== --- dm_templates.pm (revision 8) +++ dm_templates.pm (revision 9) @@ -534,6 +534,14 @@ last CASE; }; + $func_type eq 'index' and do { + $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; + do_log("INDEX transform uses only a single oid at " . + "$trans_file, line $l_num", 0) + and next LINE if $temp ne ''; + last CASE; + }; + $func_type eq 'math' and do { $temp =~ s/:\s*\d+\s*$//; $temp =~ s/\{\s*\S+?\s*\}|\s|\s\.\s|x|\+|\/|-|\^|%|\||&|\d+(\.\d*)?|\(|\)\s*//g; @@ -653,14 +661,6 @@ last CASE; }; - $func_type eq 'index' and do { - $temp =~ s/\s*\{\s*\S+?\s*\}|\s*,\s*//g; - do_log("INDEX transform uses only a single oid at " . - "$trans_file, line $l_num", 0) - and next LINE if $temp ne ''; - last CASE; - }; - do_log("Unknown function '$func_type' at $trans_file, line $l_num", 0); next LINE; } @@ -1066,7 +1066,7 @@ # Erase our messages DB db_do("delete from template_messages"); - # Create our template idnex + # Create our template index for my $vendor (sort keys %{$g{'templates'}}) { for my $model (sort keys %{$g{'templates'}{$vendor}}) { Regards, Wim Nelis. ******************************************************************************************************* The NLR disclaimer (http://www.nlr.nl/emaildisclaimer) is valid for NLR e-mail messages. ******************************************************************************************************* |
From: <buc...@us...> - 2010-11-30 12:04:52
|
Revision: 186 http://devmon.svn.sourceforge.net/devmon/?rev=186&view=rev Author: buchanmilne Date: 2010-11-30 11:22:54 +0000 (Tue, 30 Nov 2010) Log Message: ----------- Add support for DBTABLE tag in messages Modified Paths: -------------- branches/dbtable/modules/dm_tests.pm Modified: branches/dbtable/modules/dm_tests.pm =================================================================== --- branches/dbtable/modules/dm_tests.pm 2010-11-30 11:05:27 UTC (rev 185) +++ branches/dbtable/modules/dm_tests.pm 2010-11-30 11:22:54 UTC (rev 186) @@ -1703,6 +1703,9 @@ my $errors = ''; my $worst_color = 'green'; my $table = undef; + my $dbtable = undef; + my @dbkeys; + my @dbvals; my $extrastatus = ''; my (%t_opts,%rrd); @@ -1776,6 +1779,13 @@ next; } + # Check if we have a database table coming + if($line =~ /^DBTABLE:/o) { + do_log("DBTABLE requires MULTINODE=yes") if ($g{'multinode'} ne 'yes'); + $dbtable = '1'; + next; + } + # If we have seen a TABLE: placeholder, do table logic if(defined $table) { # First check and see if this is our table header @@ -1811,6 +1821,7 @@ do_log("No primary OID found for $test test for $device", 0); $msg .= "&yellow No primary OID found.\n"; $worst_color = 'yellow'; + $table = undef; next; } @@ -1822,6 +1833,7 @@ do_log("Missing repeater data for $pri for $test msg", 0); $msg .= "&clear Missing repeater data for primary OID $pri\n"; $worst_color = 'clear'; + $table = undef; next; } @@ -1830,6 +1842,7 @@ do_log("Primary OID $pri in $test table is a non-repeater", 0); $msg .= "&yellow primary OID $pri in table is a non-repeater\n"; $worst_color = 'yellow'; + $table = undef; next; } @@ -2058,6 +2071,204 @@ } # End table data processing + elsif (defined $dbtable) { + #Look for database table key definitions + if($line !~ /\{(.+?)}/) { + do_log("DBTABLE: parsing attribute definitions: $line"); + @dbkeys = split /\|/, $line or do_log("Could not parse database keys"); + do_log("DBTABLE: parsed attributes into @dbkeys"); + next; + } + + my $set_data = ''; + my $temp_data = ''; + #my $dir = $rrd{$name}{'dir'}; + #my $pri = ${dbkeys[0]}; + #my $do_max = $rrd{$name}{'do_max'}; + my $time; + + my $pri = $1 if $line =~ /\{(.+?)}/; + if(!defined $pri) { + do_log("No primary OID found for $test test for $device", 0); + $msg .= "&yellow No primary OID found.\n"; + $worst_color = 'yellow'; + $dbtable = undef; + next; + } + + # Remove any flags the primary oid might have on it... + $pri =~ s/\..*//; + + + # Make sure we have leaf data for our primary oid + if(!defined $oids->{$pri}{'val'}) { + do_log("Missing repeater data for $pri for $test msg", 0); + $dbtable = undef; + next; + } + + # Make sure our primary OID is a repeater + if(!$oids->{$pri}{'repeat'}) { + do_log("Primary OID $pri in $test table is a non-repeater", 0); + $dbtable = undef; + next; + } + + # If the primary oids leaves are non-numeric, then we cant sort it + # numerically, we'll have to resort to a cmp + my @table_leaves = (); + + if($oids->{$pri}{'repeat'} == 2) { + my @unsorted = keys %{$oids->{$pri}{'val'}}; + @table_leaves = leaf_sort(\@unsorted); + } + # Otherwise sort them numerically ascending + else { + @table_leaves = sort {$a <=> $b} keys %{$oids->{$pri}{'val'}}; + } + + # Now go through all oid vals, using the primary's leaves + T_LEAF: for my $leaf (@table_leaves) { + + my $row_data = $line; + + # Now go through all the oids in our table row and replace them + for my $root ($row_data =~ /\{(.+?)}/g) { + + # Chop off any flags and store them for later + my $oid = $root; + my $flag = $1 if $oid =~ s/\.(.+)$//; + my $oid_h = \%{$oids->{$oid}}; + + # Get our oid vars + my $val = $oid_h->{'repeat'} ? $oid_h->{'val'}{$leaf} : $oid_h->{'val'}; + my $color = $oid_h->{'repeat'} ? $oid_h->{'color'}{$leaf} : $oid_h->{'color'}; + $time = $oid_h->{'repeat'} ? $oid_h->{'time'}{$leaf} : $oid_h->{'time'}; + if (!defined $val) { + do_log("Undefined value for $oid in test $test on $device, ignoring row for $pri_val") if $g{'debug'}; + do_log("Dumped value ^^"); + next T_LEAF; + } + + # Check the exception types, if it is an 'ignore' + # dont include this leaf row if the data for this + # oid matches, if it is an 'only' type, ONLY include + # this leaf row if the data matches + my $ignore = $dev->{'except'}{$test}{$oid}{'ignore'} || + $dev->{'except'}{'all'}{$oid}{'ignore'} || + $tmpl->{'oids'}{$oid}{'except'}{'ignore'}; + my $only = $dev->{'except'}{$test}{$oid}{'only'} || + $dev->{'except'}{'all'}{$oid}{'only'} || + $tmpl->{'oids'}{$oid}{'except'}{'only'}; + next T_LEAF if defined $ignore and $val =~ /^($ignore)$/; + next T_LEAF if defined $only and $val !~ /^($only)$/; + + + # If we arent alarming on a value, its green by default + #$color = 'green' if !$alarm; + + # Keep track of our primary value + if($oid eq $pri) { + + # Add our primary key to our rrd set, if needed + #for my $name (keys %rrd) { + # $rrd{$name}{'pri'} = $oid if $rrd{$name}{'pri'} eq 'pri'; + + # if ($rrd{$name}{'all'} or $alarm) { + # # add to list, but check we're not pushing multiple times + # push @{$rrd{$name}{'leaves'}}, $leaf unless grep {$_ eq $leaf} @{$rrd{$name}{'leaves'}}; + # } + # } + + # If this is our primary oid, and we are have an alarm + # variable defined, add this to our alarm header if we are + # alarming on it; Wrap our header at 60 chars + # if(!defined $t_opts{'noalarmsmsg'} and $alarm) { + # $alarm_ints =~ s/(.{60,}),$/$1)\nAlarming on (/; + # $alarm_ints .= "$val,"; + # } + } + + # See if we have a valid flag, if so, replace the + # place holder with flag data, if not, just replace + # it with the oid value. Also modify the global color + # Display a bb/hobbit color string (i.e. "&red ") + if(defined $flag) { + if($flag eq 'color') { + + # Honor the 'alarm' exceptions + $row_data =~ s/\{$root}/&$color /; + + # If this test has a worse color, use it for the global color + $worst_color = $color if !defined $worst_color or + $colors{$worst_color} < $colors{$color}; + } + + # Display threshold messages if we get the msg flag + elsif ($flag eq 'msg') { + my $substr = $oid_h->{'msg'}{$leaf}; + $substr = 'Undefined' if !defined $substr; + $row_data =~ s/\{$root}/$substr/; + } + + # This flag only causes errors (with the color) to be displayed + # Will also modify global color type + elsif ($flag eq 'errors') { + $row_data =~ s/\{$root}//; + + next if $color eq 'green'; + + # Get oid msg and replace any inline oid dependencies + my $oid_msg = $oid_h->{'msg'}{$leaf}; + $oid_msg = 'Undefined' if !defined $oid_msg; + $oid_msg = parse_deps($oids, $oid_msg, $leaf); + + # If this test has a worse color, use it for the global color + $worst_color = $color if !defined $worst_color or + $colors{$worst_color} < $colors{$color}; + + # Now add it to our msg + #$errors .= "&$color $oid_msg\n"; + } + + # Display color threshold value + elsif ($flag =~ /^thresh\:(\w+)$/i) { + my $th_col = lc $1; + my $thresh = (defined $dev->{'thresh'}{$test}{$oid}{$th_col}) ? + $dev->{'thresh'}{$test}{$oid}{$th_col} : + $oids->{$oid}{'thresh'}{$th_col}{'val'}; + + $thresh = 'Undefined' if !defined $thresh; + $row_data =~ s/\{$root}/$thresh/; + } + + # Uknown flag + else { + do_log("Unknown flag ($flag) for $oid on $device\n"); + } + } + + # Otherwise just display the oid val + else { + my $substr = $oids->{$root}{'repeat'} ? $oids->{$root}{'val'}{$leaf} : $oids->{$root}{'val'}; + $substr = 'Undefined' if !defined $substr; + $row_data =~ s/\{$root}/$substr/; + } + + } + + @dbvals = split /\|/, $row_data; + for (my $i=1;$i<=$#dbkeys;$i++) { + do_log("DBTABLE: preparing row for $dbkeys[$i]"); + my $query = "insert into test_data (host,test,instance,attr,val,time) values ('$device','$test','$dbvals[0]','$dbkeys[$i]','$dbvals[$i]',$time) on duplicate key update val=values(val),time=values(time)"; + do_log("DBTABLE: Running query $query"); + db_do($query); + } + do_log("DBTABLE: Finished with line $line"); + } + do_log("DBTABLE: Finished with test $test"); + $dbtable = undef; + } # Not table data, so it should be a non-repeater type variable else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2010-11-30 12:04:47
|
Revision: 187 http://devmon.svn.sourceforge.net/devmon/?rev=187&view=rev Author: buchanmilne Date: 2010-11-30 11:35:45 +0000 (Tue, 30 Nov 2010) Log Message: ----------- Add some database reconnection logic Modified Paths: -------------- branches/dbtable/modules/dm_config.pm Modified: branches/dbtable/modules/dm_config.pm =================================================================== --- branches/dbtable/modules/dm_config.pm 2010-11-30 11:22:54 UTC (rev 186) +++ branches/dbtable/modules/dm_config.pm 2010-11-30 11:35:45 UTC (rev 187) @@ -1102,6 +1102,7 @@ } print "Verbose: ", $g{'verbose'}, "\n"; do_log("ERROR: Unable to connect to DB ($!)",0); + return 0; } @@ -1131,10 +1132,15 @@ sub db_get_array { my ($query) = @_; do_log("DEBUG DB: select $query") if $g{'debug'}; - my $results = $g{'dbh'}->selectall_arrayref("select $query") or - do_log("DB query '$query' failed; reconnecting",0) - and db_connect() - and return db_get_array($query); + my $results = $g{'dbh'}->selectall_arrayref("select $query"); + if (!$results) { + do_log("DB query '$query' failed; reconnecting",0); + if (db_connect()) { + return db_get_array($query); + } else { + do_log("ERROR Database reconnection failed",0); + } + } return @$results; } @@ -1149,10 +1155,15 @@ $cmd =~ s/\\/\\\\/g; do_log("DEBUG DB: $cmd") if $g{'debug'}; - my $result = $g{'dbh'}->do("$cmd") or - do_log("DB write '$cmd' failed; reconnecting",0) - and db_connect() - and return db_do($cmd); + my $result = $g{'dbh'}->do("$cmd"); + if (!$result) { + do_log("DB write '$cmd' failed; reconnecting",0); + if (db_connect()) { + return db_do($cmd); + } else { + do_log("ERROR Database reconnection failed",0); + } + } return $result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2010-11-30 11:05:33
|
Revision: 185 http://devmon.svn.sourceforge.net/devmon/?rev=185&view=rev Author: buchanmilne Date: 2010-11-30 11:05:27 +0000 (Tue, 30 Nov 2010) Log Message: ----------- New branch dbtable to commit the work for DBTABLE tag that has been lying in my checkout for a while Added Paths: ----------- branches/dbtable/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <buc...@us...> - 2010-11-30 10:58:54
|
Revision: 184 http://devmon.svn.sourceforge.net/devmon/?rev=184&view=rev Author: buchanmilne Date: 2010-11-30 10:58:48 +0000 (Tue, 30 Nov 2010) Log Message: ----------- Commit a copy of trunk r124, which is what 0.3.1-beta1 was released from Added Paths: ----------- tags/release_0_3_1_beta1/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |