diff options
Diffstat (limited to 'torrus/xmlconfig/old')
-rw-r--r-- | torrus/xmlconfig/old/cisco-mac-accounting-example.xml | 84 | ||||
-rw-r--r-- | torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml | 109 | ||||
-rw-r--r-- | torrus/xmlconfig/old/cisco.ios.mac-accounting-0.1.8.xml | 113 | ||||
-rw-r--r-- | torrus/xmlconfig/old/rfc1213.xml | 224 | ||||
-rw-r--r-- | torrus/xmlconfig/old/rfc2670.docsis-if.old.0.1.5d-20040224.xml | 90 | ||||
-rw-r--r-- | torrus/xmlconfig/old/rfc2670.docsis-if.old.1.0.4.xml | 303 | ||||
-rw-r--r-- | torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.4.xml | 394 | ||||
-rw-r--r-- | torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.7.xml | 400 | ||||
-rw-r--r-- | torrus/xmlconfig/old/snmp-defs.old-0.1.2.xml | 285 |
9 files changed, 2002 insertions, 0 deletions
diff --git a/torrus/xmlconfig/old/cisco-mac-accounting-example.xml b/torrus/xmlconfig/old/cisco-mac-accounting-example.xml new file mode 100644 index 000000000..d62cc9948 --- /dev/null +++ b/torrus/xmlconfig/old/cisco-mac-accounting-example.xml @@ -0,0 +1,84 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: cisco-mac-accounting-example.xml,v 1.1 2010-12-27 00:04:28 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- + This file gives an example how to monitor the MAC accounting + on Cisco routers. It may be useful for per-BGP peer statistics + on an Ethernet media. + + This file relies on the definitions and templates from + "vendor/cisco.ios.mac-accounting.xml". + --> + +<configuration> +<datasources> + + + <subtree name="SNMP"> + + <param name="snmp-community" value="blahblah" /> + <param name="domain-name" value="xyz.net" /> + <param name="data-dir" value="/var/snmpcollector" /> + + <subtree name="MAC_Accounting"> + <param name="comment" value="MAC accounting test router" /> + <param name="collector-period" value="180" /> + <param name="collector-timeoffset" value="13" /> + + + <subtree name="test1"> + <param name="snmp-host" value="rtrZHT001" /> + <param name="interface-name" value="FastEthernet6/1" /> + <param name="interface-nick" value="Fe6_1" /> + <param name="mac" value="0.3.49.144.200.28" /> + <param name="mac-nick" value="testOne" /> + <param name="comment" value="MAC accounting Test: 0.3.49.144.200.28" /> + <apply-template name="cisco-mac-accounting" /> + </subtree> + + <subtree name="test2"> + <param name="snmp-host" value="rtrZHT001" /> + <param name="interface-name" value="FastEthernet6/1" /> + <param name="interface-nick" value="Fe6_1" /> + <param name="mac" value="0.2.74.137.72.112" /> + <param name="mac-nick" value="testTwo" /> + <param name="comment" value="MAC accounting Test: 0.2.74.137.72.112" /> + <apply-template name="cisco-mac-accounting" /> + </subtree> + + <subtree name="test3"> + <param name="snmp-host" value="rtrZHT001" /> + <param name="interface-name" value="FastEthernet6/6" /> + <param name="interface-nick" value="Fe6_1" /> + <param name="mac" value="0.9.182.41.169.3" /> + <param name="mac-nick" value="testThree" /> + <param name="comment" value="MAC accounting Test: 0.9.182.41.169.3" /> + <apply-template name="cisco-mac-accounting" /> + </subtree> + + </subtree> + + </subtree> +</datasources> + +</configuration> diff --git a/torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml b/torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml new file mode 100644 index 000000000..4b0c82491 --- /dev/null +++ b/torrus/xmlconfig/old/cisco.generic.old-0.1.4.xml @@ -0,0 +1,109 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: cisco.generic.old-0.1.4.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- Common Cisco definitions --> + +<configuration> + +<definitions> + + <!-- CISCO-PROCESS-MIB:cpmCPUTotalTable --> + <def name="cpmCPUTotal5minRev" value="1.3.6.1.4.1.9.9.109.1.1.1.1.8" /> + + <!-- CISCO-MEMORY-POOL-MIB:ciscoMemoryPoolTable --> + <def name="ciscoMemoryPoolUsed" value="1.3.6.1.4.1.9.9.48.1.1.1.5" /> + <def name="ciscoMemoryPoolFree" value="1.3.6.1.4.1.9.9.48.1.1.1.6" /> + + <!-- CISCO-ENVMON-MIB:ciscoEnvMonTemperatureStatusTable --> + <def name="ciscoEnvMonTemperatureStatusIndex" + value="1.3.6.1.4.1.9.9.13.1.3.1.1" /> + <def name="ciscoEnvMonTemperatureStatusDescr" + value="1.3.6.1.4.1.9.9.13.1.3.1.2" /> + <def name="ciscoEnvMonTemperatureStatusValue" + value="1.3.6.1.4.1.9.9.13.1.3.1.3" /> + <def name="ciscoEnvMonTemperatureStatusState" + value="1.3.6.1.4.1.9.9.13.1.3.1.6" /> + +</definitions> + +<datasources> + + <template name="cisco-mempool"> + <subtree name="Memory_Usage"> + <param name="rrd-create-dstype" value="GAUGE" /> + <param name="data-file" value="%system-id%_mempool.rrd" /> + <param name="comment" value="Memory usage statistics" /> + <param name="precedence" value="-100" /> + + <leaf name="Processor_Memory_Used"> + <param name="snmp-object" value="$ciscoMemoryPoolUsed.1"/> + <param name="rrd-ds" value="ciscoMemoryPoolUsed" /> + <param name="comment"> + Number of bytes from the Processor memory pool + that are currently in use + </param> + <param name="graph-legend" value="Memory used" /> + </leaf> + + <leaf name="Processor_Memory_Free"> + <param name="snmp-object" value="$ciscoMemoryPoolFree.1"/> + <param name="rrd-ds" value="ciscoMemoryPoolFree" /> + <param name="comment"> + Number of bytes from the Processor memory pool + that are currently free + </param> + <param name="graph-legend" value="Memory free" /> + </leaf> + </subtree> + </template> + + <template name="cisco-cpu"> + <leaf name="CPU_Total_5min"> + <param name="rrd-create-dstype" value="GAUGE" /> + <param name="data-file" value="%system-id%_cpu.rrd" /> + <param name="precedence" value="-200" /> + <param name="snmp-object" value="$cpmCPUTotal5minRev.1"/> + <param name="rrd-ds" value="cpmCPUTotal5minRev" /> + <param name="comment"> + The overall CPU busy percentage in the last 5 minute period + </param> + <param name="graph-legend" value="CPU usage" /> + </leaf> + </template> + + <!-- template to be applied inside the sensor leaf. + Two parameters must be defined: sensor-index and sensor-description --> + <template name="cisco-temperature-sensor"> + <param name="comment" value="%sensor-description%"/> + <param name="rrd-ds" value="sensor_%sensor-index%"/> + <param name="snmp-object" + value="$ciscoEnvMonTemperatureStatusValue.%sensor-index%"/> + <param name="graph-legend" value="%sensor-description%"/> + <param name="graph-lower-limit" value="10"/> + <param name="graph-upper-limit" value="80"/> + <param name="vertical-label" value="degrees Celsius"/> + </template> + +</datasources> + +</configuration> diff --git a/torrus/xmlconfig/old/cisco.ios.mac-accounting-0.1.8.xml b/torrus/xmlconfig/old/cisco.ios.mac-accounting-0.1.8.xml new file mode 100644 index 000000000..a58aa1a10 --- /dev/null +++ b/torrus/xmlconfig/old/cisco.ios.mac-accounting-0.1.8.xml @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: cisco.ios.mac-accounting-0.1.8.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- + This file defines the template for MAC accounting + on Cisco routers. It may be useful for per-BGP peer statistics + on an Ethernet media. + + See also "examples/cisco-mac-accounting.xml" for a working example. + --> + +<configuration> + +<definitions> + + <!-- CISCO-IP-STAT-MIB:cipMacTable --> + <def name="cipMacSwitchedBytes" value="1.3.6.1.4.1.9.9.84.1.2.1.1.4" /> + +</definitions> + + +<datasources> + + <!-- Template for MAC accounting --> + <template name="cisco-mac-accounting"> + + <param name="snmp-object"> + $cipMacSwitchedBytes.%ifindex-map%.%direction%.%mac% + </param> + + <param name="data-file"> + %system-id%_%interface-nick%_%mac-nick%.rrd" + </param> + + <param name="rrd-ds" value="%mac-nick%_%direction%" /> + + <param name="rrd-create-dstype" value="COUNTER" /> + + <leaf name="InOctets"> + <param name="comment" value="Input bytes per second" /> + <param name="direction" value="1" /> + <param name="hidden" value="yes" /> + <param name="graph-legend" value="Bytes in" /> + </leaf> + + <leaf name="OutOctets"> + <param name="comment" value="Output bytes per second" /> + <param name="direction" value="2" /> + <param name="hidden" value="yes" /> + <param name="graph-legend" value="Bytes out" /> + </leaf> + + <leaf name="InBps"> + <param name="comment" value="Input bits per second" /> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-cdef" /> + <param name="rpn-expr" value="{InOctets},8,*" /> + <param name="graph-legend" value="Bits in" /> + </leaf> + + <leaf name="OutBps"> + <param name="comment" value="Output bits per second" /> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-cdef" /> + <param name="rpn-expr" value="{OutOctets},8,*" /> + <param name="graph-legend" value="Bits out" /> + </leaf> + + <leaf name="InOut_bps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{InOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="AREA" /> + <param name="line-color-in" value="#00FF00" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{OutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="LINE2" /> + <param name="line-color-out" value="#0000FF" /> + <param name="line-order-out" value="2" /> + </leaf> + + </template> + +</datasources> + +</configuration> diff --git a/torrus/xmlconfig/old/rfc1213.xml b/torrus/xmlconfig/old/rfc1213.xml new file mode 100644 index 000000000..a04d8a03d --- /dev/null +++ b/torrus/xmlconfig/old/rfc1213.xml @@ -0,0 +1,224 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (C) 2003 Shawn Ferry + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + +Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org> + +Author: Shawn Ferry +Vendor: RFC1213-MIB + +$Id: rfc1213.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ +@(#) 10/18/03 rfc1213.xml 1.8 (10/18/03 19:24:09) sferry + +--> +<!-- +Generic definitions and templates for: + + The templates defined in this file should work with any + snmp implementation supporting: + + RFC1213-MIB + +(ssinyagin) Please note that RFC1213 is obsoleted or superceded by: +RFC3418 (SNMPv2-MIB) +RFC2863 (IF-MIB) +RFC2011 (IP-MIB) + +--> +<configuration> + <definitions> + <!-- RFC1213-MIB --> + <def name="rfc1213_sysUpTime" value="1.3.6.1.2.1.1.3.0"/> + <!-- RFC1213-MIB interfaces Table --> + <def name="rfc1213_ifDescr" value="1.3.6.1.2.1.2.2.1.2"/> + <def name="rfc1213_ifPhysAddress" value="1.3.6.1.2.1.2.2.1.6"/> + <def name="rfc1213_ifInOctets" value="1.3.6.1.2.1.2.2.1.10"/> + <def name="rfc1213_ifInUcastPkts" value="1.3.6.1.2.1.2.2.1.11"/> + <def name="rfc1213_ifInErrors" value="1.3.6.1.2.1.2.2.1.14"/> + <def name="rfc1213_ifOutOctets" value="1.3.6.1.2.1.2.2.1.16"/> + <def name="rfc1213_ifOutUcastPkts" value="1.3.6.1.2.1.2.2.1.17"/> + <def name="rfc1213_ifOutErrors" value="1.3.6.1.2.1.2.2.1.20"/> + <def name="rfc1213_IFIDX" value="M($rfc1213_ifDescr, %interface-name%)"/> + <!-- ICMP --> + <def name="rfc1213_icmpInMsgs" value="1.3.6.1.2.1.5.1.0"/> + <def name="rfc1213_icmpOutMsgs" value="1.3.6.1.2.1.5.14.0"/> + <!-- SNMP --> + <def name="rfc1213_snmpInPkts" value="1.3.6.1.2.1.11.1.0"/> + <def name="rfc1213_snmpOutPkts" value="1.3.6.1.2.1.11.2.0"/> + <def name="rfc1213_snmpOutTraps" value="1.3.6.1.2.1.11.29.0"/> + </definitions> + <datasources> + <!-- + rfc1213 wrap up template + --> + <template name="rfc1213"> + <apply-template name="rfc1213-icmp"/> + <apply-template name="rfc1213-snmp"/> + </template> + <!-- rfc1313-interface must be applied at the per-interface level --> + <!-- + rfc1213_interface Template + --> + <template name="rfc1213-interface"> + <param name="data-file" value="%system-id%_rfc1213-%interface-name%.rrd"/> + <leaf name="InOutBytes"> + <param name="comment" value="Input and Output bits per second graphs"/> + <param name="ds-type" value="rrd-multigraph"/> + <param name="ds-names" value="in,out"/> + <!-- IN --> + <param name="ds-expr-in" value="{ifInOctets}"/> + <param name="graph-legend-in" value="Bytes per second in"/> + <param name="line-style-in" value="AREA"/> + <param name="line-color-in" value="##in"/> + <param name="line-order-in" value="1"/> + <!-- OUT --> + <param name="ds-expr-out" value="{ifOutOctets}"/> + <param name="graph-legend-out" value="Bytes per second out"/> + <param name="line-style-out" value="LINE2"/> + <param name="line-color-out" value="##out"/> + <param name="line-order-out" value="2"/> + </leaf> + <leaf name="ifOutErrors"> + <param name="snmp-object" value="$rfc1213_ifOutErrors.$rfc1213_IFIDX"/> + <param name="rrd-ds" value="rfc1213_ifOutErrors"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment" value="Output error counter for the interface"/> + <param name="graph-legend" value="Errors out"/> + </leaf> + <leaf name="ifInErrors"> + <param name="snmp-object" value="$rfc1213_ifInErrors.$rfc1213_IFIDX"/> + <param name="rrd-ds" value="rfc1213_ifInErrors"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment" value="Input error counter for the interface"/> + <param name="graph-legend" value="Errors in"/> + </leaf> + <leaf name="ifInOctets"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_ifInOctets.$rfc1213_IFIDX"/> + <param name="rrd-ds" value="rfc1213_ifInOctets"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + 1-minute average of input Bytes per second + </param> + <param name="graph-legend" value="Bytes in"/> + </leaf> + <leaf name="ifOutOctets"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_ifOutOctets.$rfc1213_IFIDX"/> + <param name="rrd-ds" value="rfc1213_ifOutOctets"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + 1-minute average of output Bytes per second + </param> + <param name="graph-legend" value="Bytes out"/> + </leaf> + </template> + <!-- ICMP Template --> + <template name="rfc1213-icmp"> + <subtree name="ICMP"> + <param name="data-file" value="%system-id%_rfc1213-ICMP.rrd"/> + <leaf name="InOutICMP"> + <param name="comment" value="Input and Output ICMP Messages"/> + <param name="ds-type" value="rrd-multigraph"/> + <param name="ds-names" value="in,out"/> + <!-- IN --> + <param name="ds-expr-in" value="{icmpInMsgs}"/> + <param name="graph-legend-in" value="Bytes per second in"/> + <param name="line-style-in" value="AREA"/> + <param name="line-color-in" value="##in"/> + <param name="line-order-in" value="1"/> + <!-- OUT --> + <param name="ds-expr-out" value="{icmpOutMsgs}"/> + <param name="graph-legend-out" value="Bytes per second out"/> + <param name="line-style-out" value="LINE2"/> + <param name="line-color-out" value="##out"/> + <param name="line-order-out" value="2"/> + </leaf> + <leaf name="icmpInMsgs"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_icmpInMsgs"/> + <param name="rrd-ds" value="rfc1213_icmpIMsgs"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + 1-minute average of Incomming ICMP messages + </param> + <param name="graph-legend" value="ICMP In"/> + </leaf> + <leaf name="icmpOutMsgs"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_icmpOutMsgs"/> + <param name="rrd-ds" value="rfc1213_icmpOMsgs"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + "1-minute average of Outgoing ICMP messages" + </param> + <param name="graph-legend" value="ICMP Out"/> + </leaf> + </subtree> + </template> + <!-- SNMP Template --> + <template name="rfc1213-snmp"> + <subtree name="SNMP"> + <param name="data-file" value="%system-id%_rfc1213-SNMP.rrd"/> + <leaf name="InOutSNMP"> + <param name="comment" value="Input and Output SNMP Packets"/> + <param name="ds-type" value="rrd-multigraph"/> + <param name="ds-names" value="in,out"/> + <!-- IN --> + <param name="ds-expr-in" value="{snmpInPkts}"/> + <param name="graph-legend-in" value="Packets per second in"/> + <param name="line-style-in" value="AREA"/> + <param name="line-color-in" value="##in"/> + <param name="line-order-in" value="1"/> + <!-- OUT --> + <param name="ds-expr-out" value="{snmpOutPkts}"/> + <param name="graph-legend-out" value="Packets per second out"/> + <param name="line-style-out" value="LINE2"/> + <param name="line-color-out" value="##out"/> + <param name="line-order-out" value="2"/> + </leaf> + <leaf name="snmpOutTraps"> + <param name="snmp-object" value="$rfc1213_snmpOutTraps"/> + <param name="rrd-ds" value="rfc1213_snmpOTraps"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment" value="SNMP Traps Sent"/> + <param name="graph-legend" value="SNMP Traps "/> + </leaf> + <leaf name="snmpInPkts"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_snmpInPkts"/> + <param name="rrd-ds" value="rfc1213_snmpIPkts"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + 1-minute average of Incomming SNMP Packets + </param> + <param name="graph-legend" value="SNMP In"/> + </leaf> + <leaf name="snmpOutPkts"> + <param name="hidden" value="yes"/> + <param name="snmp-object" value="$rfc1213_snmpOutPkts"/> + <param name="rrd-ds" value="rfc1213_snmpOPkts"/> + <param name="rrd-create-dstype" value="COUNTER"/> + <param name="comment"> + 1-minute average of Outgoing SNMP Packets + </param> + <param name="graph-legend" value="SNMP Out"/> + </leaf> + </subtree> + </template> + </datasources> +</configuration> diff --git a/torrus/xmlconfig/old/rfc2670.docsis-if.old.0.1.5d-20040224.xml b/torrus/xmlconfig/old/rfc2670.docsis-if.old.0.1.5d-20040224.xml new file mode 100644 index 000000000..ea62beea5 --- /dev/null +++ b/torrus/xmlconfig/old/rfc2670.docsis-if.old.0.1.5d-20040224.xml @@ -0,0 +1,90 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2003 Roman Hochuli, Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: rfc2670.docsis-if.old.0.1.5d-20040224.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ + Roman Hochuli <roman@hochu.li> + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<configuration> + + <definitions> + <!-- DOCS-IF-MIB:docsIfSigQSignalNoise --> + <def name="docsIfSigQSignalNoise" value="1.3.6.1.2.1.10.127.1.1.4.1.5" /> + </definitions> + + <datasources> + + <template name="docsis-upstream-snr"> + <param name="snmp-object" value="$docsIfSigQSignalNoise.%ifindex-map%"/> + + <param name="data-file"> + %system-id%_%interface-nick%_docsIfSigQSignalNoise.rrd + </param> + <param name="rrd-create-dstype" value="GAUGE" /> + <param name="rrd-ds" value="SNR" /> + <param name="collector-scale" value="10,/" /> + + <param name="graph-legend" value="Signal/Noise-Ratio" /> + <param name="vertical-label" value="dB" /> + + <param name="normal-level" value="25" /> + <param name="lower-limit" value="18" /> + <param name="graph-lower-limit" value="0" /> + <param name="graph-upper-limit" value="35" /> + + <param name="collector-timeoffset-hashstring" + value="%system-id%:%interface-nick%" /> + + <param name="monitor" value="docsis-snr-lower-20db" /> + <param name="tokenset-member" value="docsis-snr" /> + </template> + + </datasources> + + <monitors> + + <monitor name="docsis-snr-lower-20db"> + <param name="monitor-type" value="expression" /> + <param name="rpn-expr" value="20,LT" /> + <param name="action" value="docsis-snr-lower-20" /> + <param name="expires" value="3600" /> + <param name="comment"> + Signal/Noise-Ratio was lower than 20dB + </param> + </monitor> + + <action name="docsis-snr-lower-20"> + <param name="action-type" value="tset" /> + <param name="tset-name" value="docsis-snr-lower-20" /> + </action> + + </monitors> + + <token-sets> + <token-set name="docsis-snr"> + <param name="comment" value="S/N Ratio for all interfaces" /> + </token-set> + + <token-set name="docsis-snr-lower-20"> + <param name="comment" value="S/N Ratio less than 20dB" /> + </token-set> + </token-sets> + +</configuration> diff --git a/torrus/xmlconfig/old/rfc2670.docsis-if.old.1.0.4.xml b/torrus/xmlconfig/old/rfc2670.docsis-if.old.1.0.4.xml new file mode 100644 index 000000000..f2a47d816 --- /dev/null +++ b/torrus/xmlconfig/old/rfc2670.docsis-if.old.1.0.4.xml @@ -0,0 +1,303 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2003 Roman Hochuli, Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: rfc2670.docsis-if.old.1.0.4.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ + Roman Hochuli <roman@hochu.li> + Stanislav Sinyagin <ssinyagin@yahoo.com> + + SEE ALSO: xmlconfig/examples/docsis-monitors.xml + +--> + +<configuration> + +<definitions> + <!-- DOCS-IF-MIB::docsIfSignalQualityTable --> + <def name="docsIfSigQUnerroreds" value="1.3.6.1.2.1.10.127.1.1.4.1.2"/> + <def name="docsIfSigQCorrecteds" value="1.3.6.1.2.1.10.127.1.1.4.1.3"/> + <def name="docsIfSigQUncorrectables" value="1.3.6.1.2.1.10.127.1.1.4.1.4"/> + <def name="docsIfSigQSignalNoise" value="1.3.6.1.2.1.10.127.1.1.4.1.5"/> + + <!-- DOCS-IF-MIB::docsIfCmtsDownChannelCounterTable --> + <def name="docsIfCmtsDownChnlCtrExtTotalBytes" + value="1.3.6.1.2.1.10.127.1.3.10.1.4"/> + <def name="docsIfCmtsDownChnlCtrExtUsedBytes" + value="1.3.6.1.2.1.10.127.1.3.10.1.5"/> +</definitions> + +<datasources> + + <template name="docsis-upstream-subtree"> + <param name="precedence" value="-500" /> + <param name="comment" value="DOCSIS upstream channel statistics" /> + <param name="data-file"> + %system-id%_%interface-nick%_docsis_upstream.rrd + </param> + <param name="collector-timeoffset-hashstring" + value="%system-id%:%interface-nick%" /> + <param name="descriptive-nickname" value="%system-id%:%interface-name%"/> + <param name="graph-title" value="%descriptive-nickname%" /> + + <param name="has-overview-shortcuts" value="yes"/> + <param name="overview-shortcuts" value="snr,fec"/> + + <param name="overview-subleave-name-snr" value="SNR"/> + <param name="overview-direct-link-snr" value="yes"/> + <param name="overview-direct-link-view-snr" value="expanded-dir-html"/> + <param name="overview-shortcut-text-snr" + value="All SNR"/> + <param name="overview-shortcut-title-snr" + value="Show signal quality graphs for all upstreams in one page"/> + <param name="overview-page-title-snr" + value="SNR Graphs"/> + + <param name="overview-subleave-name-fec" value="FEC_Summary"/> + <param name="overview-direct-link-fec" value="yes"/> + <param name="overview-direct-link-view-fec" value="expanded-dir-html"/> + <param name="overview-shortcut-text-fec" + value="All FEC"/> + <param name="overview-shortcut-title-fec" + value="Show FEC statistics for all upstreams in one page"/> + <param name="overview-page-title-fec" + value="FEC Graphs"/> + + <param name="rrd-hwpredict" value="disabled" /> + </template> + + <template name="docsis-signal-quality-codewords"> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="vertical-label" value="Codewords/s" /> + <param name="graph-lower-limit" value="0" /> + </template> + + <template name="docsis-upstream-signal-quality"> + <leaf name="SNR"> + <param name="snmp-object" value="$docsIfSigQSignalNoise.%ifindex-map%"/> + + <param name="rrd-create-dstype" value="GAUGE" /> + <param name="rrd-ds" value="SNR" /> + <param name="collector-scale" value="10,/" /> + + <param name="comment" value="Signal/Noise Ratio" /> + <param name="graph-legend" value="Signal/Noise Ratio" /> + <param name="vertical-label" value="dB" /> + + <param name="normal-level" value="25" /> + <param name="lower-limit" value="18" /> + <param name="graph-lower-limit" value="10" /> + <param name="graph-upper-limit" value="30" /> + + <param name="precedence" value="1000" /> + + <!-- This monitor may be redefined by + DocsisUpSNRMonitor selector action --> + <param name="monitor" value="docsis-snr-lower-20db" /> + </leaf> + + <leaf name="FEC_Summary"> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="corr,uncorr" /> + + <param name="graph-lower-limit" value="0.01" /> + <param name="graph-upper-limit" value="100" /> + <param name="graph-logarithmic" value="yes" /> + <param name="graph-rigid-boundaries" value="yes" /> + + <param name="precedence" value="950" /> + <param name="comment" + value="Reed-Solomon forward error correction (FEC) summary" /> + <param name="vertical-label" value="Percent" /> + + <param name="ds-expr-corr"> + {Correctable},{Error-Free},{Correctable},{Uncorrectable},+,+,/,100,* + </param> + <param name="graph-legend-corr" value="Correctable Codewords" /> + <param name="line-style-corr" value="##SingleGraph" /> + <param name="line-color-corr" value="##green" /> + <param name="line-order-corr" value="1" /> + + <param name="ds-expr-uncorr"> + {Uncorrectable},{Error-Free},{Correctable},{Uncorrectable},+,+,/,100,* + </param> + <param name="graph-legend-uncorr" value="Uncorrectable Codewords" /> + <param name="line-style-uncorr" value="##SingleGraph" /> + <param name="line-color-uncorr" value="##red" /> + <param name="line-order-uncorr" value="2" /> + </leaf> + + <leaf name="Error-Free"> + <apply-template name="docsis-signal-quality-codewords"/> + <param name="snmp-object" value="$docsIfSigQUnerroreds.%ifindex-map%"/> + <param name="rrd-ds" value="Unerroreds" /> + <param name="hidden" value="yes"/> + <param name="comment" + value="FEC codewords received on this channel without error"/> + <param name="graph-legend" value="Error-free Codewords" /> + <param name="precedence" value="900" /> + <param name="graph-lower-limit" value="0.01" /> + <param name="graph-upper-limit" value="100" /> + <param name="graph-logarithmic" value="yes" /> + <param name="graph-rigid-boundaries" value="yes" /> + </leaf> + + <leaf name="Correctable"> + <apply-template name="docsis-signal-quality-codewords"/> + <param name="snmp-object" value="$docsIfSigQCorrecteds.%ifindex-map%"/> + <param name="rrd-ds" value="Correcteds" /> + <param name="hidden" value="yes"/> + <param name="comment" + value="FEC codewords received on this channel correctable errors"/> + <param name="graph-legend" value="Correctable Codewords" /> + <param name="precedence" value="800" /> + <param name="monitor-action-target" value="FEC_Summary"/> + <param name="graph-lower-limit" value="0.01" /> + <param name="graph-upper-limit" value="100" /> + <param name="graph-logarithmic" value="yes" /> + <param name="graph-rigid-boundaries" value="yes" /> + </leaf> + + <leaf name="Uncorrectable"> + <apply-template name="docsis-signal-quality-codewords"/> + <param name="snmp-object" + value="$docsIfSigQUncorrectables.%ifindex-map%"/> + <param name="rrd-ds" value="Uncorrectables" /> + <param name="hidden" value="yes"/> + <param name="comment" + value="FEC codewords received on this channel uncorrectable errors"/> + <param name="graph-legend" value="Uncorrectable Codewords" /> + <param name="precedence" value="700" /> + <param name="monitor-action-target" value="FEC_Summary"/> + <param name="graph-lower-limit" value="0.01" /> + <param name="graph-upper-limit" value="100" /> + <param name="graph-logarithmic" value="yes" /> + <param name="graph-rigid-boundaries" value="yes" /> + </leaf> + </template> + + + + <template name="docsis-downstream-subtree"> + <param name="precedence" value="-500" /> + <param name="comment" value="DOCSIS downstream statistics" /> + <param name="data-file"> + %system-id%_%interface-nick%_docsis_downstream.rrd + </param> + <param name="collector-timeoffset-hashstring" + value="%system-id%:%interface-nick%" /> + <param name="descriptive-nickname" value="%system-id%:%interface-name%"/> + <param name="graph-title" value="%descriptive-nickname%" /> + + <param name="has-overview-shortcuts" value="yes"/> + <param name="overview-shortcuts" value="util"/> + <param name="overview-subleave-name-util" value="Utilization"/> + <param name="overview-direct-link-util" value="yes"/> + <param name="overview-direct-link-view-util" value="expanded-dir-html"/> + <param name="overview-shortcut-text-util" + value="All Utilization"/> + <param name="overview-shortcut-title-util" + value="Show utilization graphs for all downstreams in one page"/> + <param name="overview-page-title-util" + value="Downstream Utilization Graphs"/> + <param name="rrd-hwpredict" value="disabled" /> + </template> + + + <template name="docsis-downstream-util"> + <leaf name="Utilization"> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="util" /> + <param name="graph-lower-limit" value="0" /> + <param name="graph-upper-limit" value="100" /> + + <param name="precedence" value="950" /> + <param name="comment" + value="Downstream channel utilization" /> + <param name="vertical-label" value="Percent" /> + + <param name="ds-expr-util"> + {UsedBytes},{TotalBytes},/,100,* + </param> + <param name="graph-legend-util" value="Utilization" /> + <param name="line-style-util" value="##resourceusage" /> + <param name="line-color-util" value="##resourceusage" /> + <param name="line-order-util" value="1" /> + </leaf> + + <leaf name="TotalBytes"> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="vertical-label" value="Bytes/s" /> + <param name="graph-lower-limit" value="0" /> + <param name="snmp-object" + value="$docsIfCmtsDownChnlCtrExtTotalBytes.%ifindex-map%"/> + <param name="rrd-ds" value="TotalBytes" /> + <param name="hidden" value="yes"/> + <param name="comment"> + The total number of bytes in the Payload portion + </param> + <param name="graph-legend" value="Total Bytes" /> + <param name="precedence" value="800" /> + </leaf> + + <leaf name="UsedBytes"> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="vertical-label" value="Bytes/s" /> + <param name="graph-lower-limit" value="0" /> + <param name="snmp-object" + value="$docsIfCmtsDownChnlCtrExtUsedBytes.%ifindex-map%"/> + <param name="rrd-ds" value="UsedBytes" /> + <param name="hidden" value="yes"/> + <param name="comment"> + The total number of DOCSIS data bytes transported by this downstream + channel + </param> + <param name="graph-legend" value="Used Bytes" /> + <param name="precedence" value="800" /> + <param name="monitor-action-target" value="Utilization"/> + </leaf> + </template> + +</datasources> + +<monitors> + + <monitor name="docsis-snr-lower-20db"> + <param name="monitor-type" value="expression" /> + <param name="rpn-expr" value="DUP,0,GT,EXC,20,LT,AND" /> + <param name="action" value="docsis-snr-lower-20" /> + <param name="expires" value="3600" /> + <param name="comment"> + Signal/Noise-Ratio was lower than 20dB + </param> + </monitor> + + <action name="docsis-snr-lower-20"> + <param name="action-type" value="tset" /> + <param name="tset-name" value="docsis-snr-lower-20" /> + </action> + +</monitors> + +<token-sets> + <token-set name="docsis-snr-lower-20"> + <param name="comment" value="S/N Ratio less than 20dB" /> + </token-set> +</token-sets> + +</configuration> diff --git a/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.4.xml b/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.4.xml new file mode 100644 index 000000000..831fd6a86 --- /dev/null +++ b/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.4.xml @@ -0,0 +1,394 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: rfc2863.if-mib.old-0.1.4.xml,v 1.1 2010-12-27 00:04:27 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- + RFC2863 IF-MIB definitions +--> + +<configuration> + +<definitions> + <!-- IF-MIB:ifTable --> + <def name="ifDescr" value="1.3.6.1.2.1.2.2.1.2" /> + <def name="ifSpeed" value="1.3.6.1.2.1.2.2.1.5" /> + <def name="ifPhysAddress" value="1.3.6.1.2.1.2.2.1.6" /> + <def name="ifInOctets" value="1.3.6.1.2.1.2.2.1.10" /> + <def name="ifInUcastPkts" value="1.3.6.1.2.1.2.2.1.11" /> + <def name="ifInDiscards" value="1.3.6.1.2.1.2.2.1.13" /> + <def name="ifInErrors" value="1.3.6.1.2.1.2.2.1.14" /> + <def name="ifOutOctets" value="1.3.6.1.2.1.2.2.1.16" /> + <def name="ifOutUcastPkts" value="1.3.6.1.2.1.2.2.1.17" /> + <def name="ifOutDiscards" value="1.3.6.1.2.1.2.2.1.19" /> + <def name="ifOutErrors" value="1.3.6.1.2.1.2.2.1.20" /> + + <!-- IF-MIB:ifXTable --> + <def name="ifName" value="1.3.6.1.2.1.31.1.1.1.1" /> + <def name="ifHCInOctets" value="1.3.6.1.2.1.31.1.1.1.6" /> + <def name="ifHCInUcastPkts" value="1.3.6.1.2.1.31.1.1.1.7" /> + <def name="ifHCOutOctets" value="1.3.6.1.2.1.31.1.1.1.10" /> + <def name="ifHCOutUcastPkts" value="1.3.6.1.2.1.31.1.1.1.11" /> + + <!-- RFC1213-MIB:ipAddrTable --> + <def name="ipAdEntIfIndex" value="1.3.6.1.2.1.4.20.1.2" /> + + <!-- Interface indices --> + <def name="IFIDX_DESCR" value="M($ifDescr, %interface-name%)" /> + <def name="IFIDX_MAC" value="M($ifPhysAddress, %interface-mac%)" /> + <def name="IFIDX_IP" value="V(ipAdEntIfIndex.%interface-ipaddr%)" /> + + <!-- Default Interface index lookup --> + <def name="IFIDX" value="M(%ifindex-table%, %interface-name%)" /> +</definitions> + +<datasources> + + <!-- Parameters for interfaces parent subtree --> + <template name="rfc2863-ifmib-subtree"> + <param name="has-overview-subleaves" value="yes"/> + <param name="overview-subleave-name" value="InOutBps"/> + <param name="overview-shortcut-text" + value="Show InOutBps for all interfaces"/> + <param name="overview-shortcut-title" + value="Show all interfaces traffic in one page"/> + <param name="overview-page-title" + value="Input/Output Graphs"/> + </template> + + <template name="iftable-octets"> + <leaf name="ifInOctets"> + <param name="snmp-object" value="$ifInOctets.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_octets.rrd" /> + <param name="rrd-ds" value="ifInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutOctets"> + <param name="snmp-object" value="$ifOutOctets.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_octets.rrd" /> + <param name="rrd-ds" value="ifOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + <!-- Some interface instances (e.g. serial subinterfaces in Coisco routers) + don't have UcastPkts and Errors counters --> + + <template name="iftable-ucast-packets"> + <leaf name="ifInUcastPkts"> + <param name="snmp-object" value="$ifInUcastPkts.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_packets.rrd" /> + <param name="rrd-ds" value="ifInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutUcastPkts"> + <param name="snmp-object" value="$ifOutUcastPkts.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_packets.rrd" /> + <param name="rrd-ds" value="ifOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + <template name="iftable-discards"> + <leaf name="ifInDiscards"> + <param name="snmp-object" value="$ifInDiscards.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_discards.rrd" /> + <param name="rrd-ds" value="ifInDiscards" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input discards for the interface" /> + <param name="graph-legend" value="Discards in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutDiscards"> + <param name="snmp-object" value="$ifOutDiscards.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_discards.rrd" /> + <param name="rrd-ds" value="ifOutDiscards" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output discards for the interface" /> + <param name="graph-legend" value="Discards out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + <template name="iftable-errors"> + <leaf name="ifInErrors"> + <param name="snmp-object" value="$ifInErrors.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_errors.rrd" /> + <param name="rrd-ds" value="ifInErrors" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input errors for the interface" /> + <param name="graph-legend" value="Errors in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutErrors"> + <param name="snmp-object" value="$ifOutErrors.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_errors.rrd" /> + <param name="rrd-ds" value="ifOutErrors" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output errors for the interface" /> + <param name="graph-legend" value="Errors out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + + <template name="ifxtable-hcoctets"> + <leaf name="ifHCInOctets"> + <param name="snmp-object" value="$ifHCInOctets.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcoctets.rrd" /> + <param name="rrd-ds" value="ifHCInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutOctets"> + <param name="snmp-object" value="$ifHCOutOctets.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcoctets.rrd" /> + <param name="rrd-ds" value="ifHCOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifHCInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifHCOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + <template name="ifxtable-hcucast-packets"> + <leaf name="ifHCInUcastPkts"> + <param name="snmp-object" value="$ifHCInUcastPkts.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcpackets.rrd" /> + <param name="rrd-ds" value="ifHCInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutUcastPkts"> + <param name="snmp-object" value="$ifHCOutUcastPkts.$IFIDX" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcpackets.rrd" /> + <param name="rrd-ds" value="ifHCOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + <!-- ******************************************************************** + + Templates for read-only access to RRD files + + ************************************************************************--> + + <template name="read-iftable-octets"> + <leaf name="ifInOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_octets.rrd" /> + <param name="rrd-ds" value="ifInOctets" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_octets.rrd" /> + <param name="rrd-ds" value="ifOutOctets" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + + <template name="read-ifxtable-hcoctets"> + <leaf name="ifHCInOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcoctets.rrd" /> + <param name="rrd-ds" value="ifHCInOctets" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_hcoctets.rrd" /> + <param name="rrd-ds" value="ifHCOutOctets" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifHCInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifHCOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + +</datasources> + +</configuration> diff --git a/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.7.xml b/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.7.xml new file mode 100644 index 000000000..66e80805a --- /dev/null +++ b/torrus/xmlconfig/old/rfc2863.if-mib.old-0.1.7.xml @@ -0,0 +1,400 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: rfc2863.if-mib.old-0.1.7.xml,v 1.1 2010-12-27 00:04:28 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- + RFC2863 IF-MIB definitions +--> + +<configuration> + +<definitions> + <!-- IF-MIB:ifTable --> + <def name="ifDescr" value="1.3.6.1.2.1.2.2.1.2" /> + <def name="ifSpeed" value="1.3.6.1.2.1.2.2.1.5" /> + <def name="ifPhysAddress" value="1.3.6.1.2.1.2.2.1.6" /> + <def name="ifInOctets" value="1.3.6.1.2.1.2.2.1.10" /> + <def name="ifInUcastPkts" value="1.3.6.1.2.1.2.2.1.11" /> + <def name="ifInDiscards" value="1.3.6.1.2.1.2.2.1.13" /> + <def name="ifInErrors" value="1.3.6.1.2.1.2.2.1.14" /> + <def name="ifOutOctets" value="1.3.6.1.2.1.2.2.1.16" /> + <def name="ifOutUcastPkts" value="1.3.6.1.2.1.2.2.1.17" /> + <def name="ifOutDiscards" value="1.3.6.1.2.1.2.2.1.19" /> + <def name="ifOutErrors" value="1.3.6.1.2.1.2.2.1.20" /> + + <!-- IF-MIB:ifXTable --> + <def name="ifName" value="1.3.6.1.2.1.31.1.1.1.1" /> + <def name="ifHCInOctets" value="1.3.6.1.2.1.31.1.1.1.6" /> + <def name="ifHCInUcastPkts" value="1.3.6.1.2.1.31.1.1.1.7" /> + <def name="ifHCOutOctets" value="1.3.6.1.2.1.31.1.1.1.10" /> + <def name="ifHCOutUcastPkts" value="1.3.6.1.2.1.31.1.1.1.11" /> + + <!-- RFC1213-MIB:ipAddrTable --> + <def name="ipAdEntIfIndex" value="1.3.6.1.2.1.4.20.1.2" /> + + <!-- Interface indices --> + <def name="IFIDX_DESCR" value="M($ifDescr, %interface-name%)" /> + <def name="IFIDX_MAC" value="M($ifPhysAddress, %interface-macaddr%)" /> + <def name="IFIDX_IP" value="V(ipAdEntIfIndex.%interface-ipaddr%)" /> + <def name="IFIDX_IFINDEX" value="%interface-index%" /> + +</definitions> + +<datasources> + + <!-- Some parameters need to be at host level --> + <template name="rfc2863-ifmib-hostlevel"> + <param name="ifindex-map" value="M(%ifindex-table%, %interface-name%)"/> + </template> + + <!-- Parameters for interfaces parent subtree --> + <template name="rfc2863-ifmib-subtree"> + <param name="comment" value="Interface traffic and error counters"/> + <param name="has-overview-subleaves" value="yes"/> + <param name="overview-subleave-name" value="InOutBps"/> + <param name="overview-shortcut-text" + value="Show InOutBps for all interfaces"/> + <param name="overview-shortcut-title" + value="Show all interfaces traffic in one page"/> + <param name="overview-page-title" + value="Input/Output Graphs"/> + <param name="descriptive-nickname" value="%system-id%:%interface-name%"/> + <param name="data-file" value="%system-id%_%interface-nick%_if-mib.rrd" /> + <param name="graph-title" value="%descriptive-nickname%" /> + <param name="collector-timeoffset-hashstring" + value="%system-id%:%interface-nick%" /> + </template> + + <template name="iftable-octets"> + <leaf name="ifInOctets"> + <param name="snmp-object" value="$ifInOctets.%ifindex-map%" /> + <param name="rrd-ds" value="ifInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutOctets"> + <param name="snmp-object" value="$ifOutOctets.%ifindex-map%" /> + <param name="rrd-ds" value="ifOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + <!-- Some interface instances (e.g. serial subinterfaces in Coisco routers) + don't have UcastPkts and Errors counters --> + + <template name="iftable-ucast-packets"> + <leaf name="ifInUcastPkts"> + <param name="snmp-object" value="$ifInUcastPkts.%ifindex-map%" /> + <param name="rrd-ds" value="ifInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutUcastPkts"> + <param name="snmp-object" value="$ifOutUcastPkts.%ifindex-map%" /> + <param name="rrd-ds" value="ifOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + <template name="iftable-discards-in"> + <leaf name="ifInDiscards"> + <param name="snmp-object" value="$ifInDiscards.%ifindex-map%" /> + <param name="rrd-ds" value="ifInDiscards" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="comment" value="Input discards for the interface" /> + <param name="graph-legend" value="Discards in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + <iftrue var="RFC2863_IF_MIB::errors-monitor"> + <param name="monitor" value="RFC2863_IF_MIB-errors" /> + </iftrue> + </leaf> + </template> + + <template name="iftable-discards-out"> + <leaf name="ifOutDiscards"> + <param name="snmp-object" value="$ifOutDiscards.%ifindex-map%" /> + <param name="rrd-ds" value="ifOutDiscards" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="comment" value="Output discards for the interface" /> + <param name="graph-legend" value="Discards out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + <iftrue var="RFC2863_IF_MIB::errors-monitor"> + <param name="monitor" value="RFC2863_IF_MIB-errors" /> + </iftrue> + </leaf> + </template> + + <template name="iftable-errors-in"> + <leaf name="ifInErrors"> + <param name="snmp-object" value="$ifInErrors.%ifindex-map%" /> + <param name="rrd-ds" value="ifInErrors" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="comment" value="Input errors for the interface" /> + <param name="graph-legend" value="Errors in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + <iftrue var="RFC2863_IF_MIB::errors-monitor"> + <param name="monitor" value="RFC2863_IF_MIB-errors" /> + </iftrue> + </leaf> + </template> + + <template name="iftable-errors-out"> + <leaf name="ifOutErrors"> + <param name="snmp-object" value="$ifOutErrors.%ifindex-map%" /> + <param name="rrd-ds" value="ifOutErrors" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="comment" value="Output errors for the interface" /> + <param name="graph-legend" value="Errors out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + <iftrue var="RFC2863_IF_MIB::errors-monitor"> + <param name="monitor" value="RFC2863_IF_MIB-errors" /> + </iftrue> + </leaf> + </template> + + + <template name="ifxtable-hcoctets"> + <leaf name="ifHCInOctets"> + <param name="snmp-object" value="$ifHCInOctets.%ifindex-map%" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="rrd-ds" value="ifHCInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutOctets"> + <param name="snmp-object" value="$ifHCOutOctets.%ifindex-map%" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="rrd-ds" value="ifHCOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifHCInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifHCOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + <template name="ifxtable-hcucast-packets"> + <leaf name="ifHCInUcastPkts"> + <param name="snmp-object" value="$ifHCInUcastPkts.%ifindex-map%" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="rrd-ds" value="ifHCInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutUcastPkts"> + <param name="snmp-object" value="$ifHCOutUcastPkts.%ifindex-map%" /> + <param name="snmp-object-type" value="COUNTER64" /> + <param name="rrd-ds" value="ifHCOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="rrd-create-max" value="1e15"/> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + </template> + + <!-- ******************************************************************** + + Templates for read-only access to RRD files + + ************************************************************************--> + + <template name="read-iftable-octets"> + <leaf name="ifInOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_if-mib.rrd" /> + <param name="rrd-ds" value="ifInOctets" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_if-mib.rrd" /> + <param name="rrd-ds" value="ifOutOctets" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + + + <template name="read-ifxtable-hcoctets"> + <leaf name="ifHCInOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_if-mib.rrd" /> + <param name="rrd-ds" value="ifHCInOctets" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutOctets"> + <param name="ds-type" value="rrd-file" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + <param name="data-file" + value="%system-id%_%interface-nick%_if-mib.rrd" /> + <param name="rrd-ds" value="ifHCOutOctets" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifHCInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifHCOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + </template> + +</datasources> + +</configuration> diff --git a/torrus/xmlconfig/old/snmp-defs.old-0.1.2.xml b/torrus/xmlconfig/old/snmp-defs.old-0.1.2.xml new file mode 100644 index 000000000..a77b31116 --- /dev/null +++ b/torrus/xmlconfig/old/snmp-defs.old-0.1.2.xml @@ -0,0 +1,285 @@ +<?xml version="1.0"?> +<!-- + Copyright (C) 2002 Stanislav Sinyagin + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + + $Id: snmp-defs.old-0.1.2.xml,v 1.1 2010-12-27 00:04:28 ivan Exp $ + Stanislav Sinyagin <ssinyagin@yahoo.com> + +--> + +<!-- These are the basic definitions for the SNMP collector + + WARNING: This file is overwritten by "make install" +--> + +<configuration> + +<definitions> + <!-- IF-MIB:ifTable --> + <def name="ifDescr" value="1.3.6.1.2.1.2.2.1.2" /> + <def name="ifPhysAddress" value="1.3.6.1.2.1.2.2.1.6" /> + <def name="ifInOctets" value="1.3.6.1.2.1.2.2.1.10" /> + <def name="ifInUcastPkts" value="1.3.6.1.2.1.2.2.1.11" /> + <def name="ifInErrors" value="1.3.6.1.2.1.2.2.1.14" /> + <def name="ifOutOctets" value="1.3.6.1.2.1.2.2.1.16" /> + <def name="ifOutUcastPkts" value="1.3.6.1.2.1.2.2.1.17" /> + <def name="ifOutErrors" value="1.3.6.1.2.1.2.2.1.20" /> + + <!-- IF-MIB:ifXTable --> + <def name="ifName" value="1.3.6.1.2.1.31.1.1.1.1" /> + <def name="ifHCInOctets" value="1.3.6.1.2.1.31.1.1.1.6" /> + <def name="ifHCInUcastPkts" value="1.3.6.1.2.1.31.1.1.1.7" /> + <def name="ifHCOutOctets" value="1.3.6.1.2.1.31.1.1.1.10" /> + <def name="ifHCOutUcastPkts" value="1.3.6.1.2.1.31.1.1.1.11" /> + + <!-- RFC1213-MIB:ipAddrTable --> + <def name="ipAdEntIfIndex" value="1.3.6.1.2.1.4.20.1.2" /> + + <!-- Interface indices --> + <def name="IFIDX_DESCR" value="M($ifDescr, %interface-name%)" /> + <def name="IFIDX_MAC" value="M($ifPhysAddress, %interface-mac%)" /> + <def name="IFIDX_IP" value="V(ipAdEntIfIndex.%interface-ipaddr%)" /> + + <!-- Default Interface index lookup --> + <def name="IFIDX" value="M(%ifindex-table%, %interface-name%)" /> + +</definitions> + +<datasources> + + <template name="interface-counters"> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + + <leaf name="ifInOctets"> + <param name="snmp-object" value="$ifInOctets.$IFIDX" /> + <param name="rrd-ds" value="ifInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifInUcastPkts"> + <param name="snmp-object" value="$ifInUcastPkts.$IFIDX" /> + <param name="rrd-ds" value="ifInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutOctets"> + <param name="snmp-object" value="$ifOutOctets.$IFIDX" /> + <param name="rrd-ds" value="ifOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifOutUcastPkts"> + <param name="snmp-object" value="$ifOutUcastPkts.$IFIDX" /> + <param name="rrd-ds" value="ifOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + </template> + + <template name="hc-interface-counters"> + + <leaf name="InOutBps"> + <param name="comment" value="Input and Output bits per second graphs" /> + <param name="vertical-label" value="bps" /> + <param name="graph-lower-limit" value="0" /> + <param name="rrd-hwpredict" value="disabled" /> + <param name="precedence" value="1000" /> + <param name="ds-type" value="rrd-multigraph" /> + <param name="ds-names" value="in,out" /> + + <param name="ds-expr-in" value="{ifHCInOctets},8,*" /> + <param name="graph-legend-in" value="Bits per second in" /> + <param name="line-style-in" value="##BpsIn" /> + <param name="line-color-in" value="##BpsIn" /> + <param name="line-order-in" value="1" /> + + <param name="ds-expr-out" value="{ifHCOutOctets},8,*" /> + <param name="graph-legend-out" value="Bits per second out" /> + <param name="line-style-out" value="##BpsOut" /> + <param name="line-color-out" value="##BpsOut" /> + <param name="line-order-out" value="2" /> + </leaf> + + <leaf name="ifHCInOctets"> + <param name="snmp-object" value="$ifHCInOctets.$IFIDX" /> + <param name="rrd-ds" value="ifHCInOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input byte counter for the interface" /> + <param name="graph-legend" value="Bytes in" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCInUcastPkts"> + <param name="snmp-object" value="$ifHCInUcastPkts.$IFIDX" /> + <param name="rrd-ds" value="ifHCInUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Input packet counter for the interface" /> + <param name="graph-legend" value="Packets in" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutOctets"> + <param name="snmp-object" value="$ifHCOutOctets.$IFIDX" /> + <param name="rrd-ds" value="ifHCOutOctets" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output byte counter for the interface" /> + <param name="graph-legend" value="Bytes out" /> + <param name="vertical-label" value="Bps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + <leaf name="ifHCOutUcastPkts"> + <param name="snmp-object" value="$ifHCOutUcastPkts.$IFIDX" /> + <param name="rrd-ds" value="ifHCOutUcastPkts" /> + <param name="rrd-create-dstype" value="COUNTER" /> + <param name="comment" value="Output packet counter for the interface" /> + <param name="graph-legend" value="Packets out" /> + <param name="vertical-label" value="pps" /> + <param name="graph-lower-limit" value="0" /> + </leaf> + + </template> + + <subtree name="SNMP"> + <param name="ds-type" value="collector" /> + <param name="collector-type" value="snmp" /> + + <!-- Two mandatory parameters define the collector schedule. + The collector runs at moments defined by formula: + time + period - (time mod period) + timeoffset --> + <param name="collector-period" value="300" /> + <param name="collector-timeoffset" value="10" /> + + <param name="storage-type" value="rrd" /> + + <param name="comment" value="Data collected via SNMP" /> + + <!-- SNMP Parameters --> + + <!-- Optional SNMP version. Default is 2c. + Valid values are: 1, 2c. + Version 3 will be supported in the future. --> + <param name="snmp-version" value="2c" /> + + <!-- Optional port. Deefault is 161 --> + <param name="snmp-port" value="161" /> + + <!-- Mandatory community name --> + <param name="snmp-community" value="public" /> + + <!-- Mandatory session timeout and no. of retries --> + <param name="snmp-timeout" value="10" /> + <param name="snmp-retries" value="2" /> + + <!-- Optional domain name. Appended to a hostname which + has no dots in it --> + <param name="domain-name" value="must.redefine.domain.net" /> + + <!-- Where the interface index is looked up --> + <param name="ifindex-table" value="$ifDescr" /> + + <!-- RRD Parameters --> + + <!-- Directory path where RRD files will be stored --> + <param name="data-dir" value="/var/snmpcollector" /> + + <!-- Round-robin arrays to be created, separated by space. + In this example, we keep 5-minute details for 2 weeks, + 30-minute average and maximum details for 6 weeks, + and 1-day aggregated stats for 2 years --> + <param name="rrd-create-rra"> + RRA:AVERAGE:0.5:1:4032 + RRA:AVERAGE:0.5:6:2016 RRA:MAX:0.5:6:2016 + RRA:AVERAGE:0.5:288:732 RRA:MAX:0.5:288:732 + </param> + + <!-- if no updates are received for 30 minutes, consider the datasource + unknown, i.e. dead --> + <param name="rrd-create-heartbeat" value="500"/> + + <param name="rrd-create-min" value="0"/> + <param name="rrd-create-max" value="U"/> + + <param name="rrd-hwpredict" value="disabled" /> + + <!-- Optional Holt-Winters algorithm parameters + Default values are: + alpha=0.1, beta=0.0035, gamma=0.1, + window_length=9, failure_threshold=6 --> + <param name="rrd-create-hw-alpha" value="0.1" /> + <param name="rrd-create-hw-beta" value="0.0035" /> + <param name="rrd-create-hw-gamma" value="0.1" /> + <param name="rrd-create-hw-winlen" value="9" /> + <param name="rrd-create-hw-failth" value="6" /> + + <!-- Optional Holt-Winters season length. + Default is one-day (288 5-minute intervals) --> + <param name="rrd-create-hw-season" value="288" /> + + <!-- Mandatory length of the Holt-Winters archives. + Recommended same length as main 5-minutes RRA --> + <param name="rrd-create-hw-rralen" value="4032" /> + + <param name="data-file" value="%system-id%_%interface-nick%.rrd" /> + <param name="leaf-type" value="rrd-def" /> + <param name="rrd-cf" value="AVERAGE" /> + + <!-- In other files, define the subtree of /SNMP for your routers --> + + </subtree> +</datasources> + +</configuration> |