summaryrefslogtreecommitdiff
path: root/torrus/xmlconfig/generic
diff options
context:
space:
mode:
Diffstat (limited to 'torrus/xmlconfig/generic')
-rw-r--r--torrus/xmlconfig/generic/collector-periods.xml94
-rw-r--r--torrus/xmlconfig/generic/monitors.xml97
-rw-r--r--torrus/xmlconfig/generic/rfc1628.ups.xml370
-rw-r--r--torrus/xmlconfig/generic/rfc1697.rdbms.xml211
-rw-r--r--torrus/xmlconfig/generic/rfc2662.adsl-line.xml247
-rw-r--r--torrus/xmlconfig/generic/rfc2670.docsis-if.xml347
-rw-r--r--torrus/xmlconfig/generic/rfc2790.host-resources.xml155
-rw-r--r--torrus/xmlconfig/generic/rfc2863.if-mib.xml538
8 files changed, 2059 insertions, 0 deletions
diff --git a/torrus/xmlconfig/generic/collector-periods.xml b/torrus/xmlconfig/generic/collector-periods.xml
new file mode 100644
index 000000000..550575a2b
--- /dev/null
+++ b/torrus/xmlconfig/generic/collector-periods.xml
@@ -0,0 +1,94 @@
+<?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>
+
+$Id: collector-periods.xml,v 1.1 2010-12-27 00:04:30 ivan Exp $
+@(#) 10/18/03 collector-periods.xml 1.8 (10/16/03 23:44:25) sferry
+
+-->
+
+<!--
+ Template(s) to override the default periods and RRA definitions.
+-->
+
+<configuration>
+ <datasources>
+ <!--
+ Two mandatory parameters define the collector schedule.
+ The collector runs at moments defined by formula:
+ time + period - (time mod period) + timeoffset
+
+ Each period requires RRAs to be defined for that period
+ RRAs use the following syntax RRA:CF:xff:steps:rows
+ as the calculation of setps and rows is period dependent
+ -->
+
+ <!-- ONE MINUTE PERIOD -->
+ <template name="one-minute-period">
+ <param name="collector-period" value="60"/>
+ <param name="collector-timeoffset" value="10"/>
+ <!--
+ Round-robin arrays to be created, separated by space.
+ RRA:CF:xff:steps:rows
+ We keep: (step = 60 )
+ 1-minute avg details for 1 week,
+ 30-minute ave/min/max details for 6 weeks,
+ 1-day ave/min/max for 2 years
+ -->
+ <param name="rrd-create-rra">
+ RRA:AVERAGE:0:1:10080
+ RRA:LAST:0:1:1
+ RRA:AVERAGE:0.17:30:2688 RRA:MIN:0.17:30:2688 RRA:MAX:0.17:30:2688
+ RRA:AVERAGE:0.042:1440:732
+ RRA:MIN:0.042:1440:732 RRA:MAX:0.042:1440:732
+ </param>
+ <param name="rrd-create-heartbeat" value="300"/>
+
+ <!-- Optional Holt-Winters season length.
+ Default is one-day (1440 1-minute intervals) -->
+ <param name="rrd-create-hw-season" value="1440" />
+
+ <!-- Mandatory length of the Holt-Winters archives.
+ Same length as main 1-minutes RRA -->
+ <param name="rrd-create-hw-rralen" value="10080" />
+ </template>
+
+
+
+ <!-- FIVE MINUTE PERIOD -->
+ <template name="five-minute-period">
+ <param name="collector-period" value="300"/>
+ <param name="collector-timeoffset" value="20"/>
+ <!-- Round-robin arrays to be created, separated by space.
+ RRA:CF:xff:steps:rows
+ We keep: (step = 300 )
+ 5-minute avg for 2 weeks,
+ 30-minute ave/min/max details for 6 weeks,
+ 1-day ave/min/max for 2 years
+ -->
+ <param name="rrd-create-rra">
+ RRA:AVERAGE:0:1:4032
+ RRA:AVERAGE:0.17:6:2016 RRA:MAX:0.17:6:2016 RRA:MIN:0.17:6:2016
+ RRA:AVERAGE:0.042:288:732 RRA:MAX:0.042:288:732 RRA:MIN:0.042:288:732
+ </param>
+ <param name="rrd-create-heartbeat" value="900"/>
+ </template>
+
+ </datasources>
+</configuration>
diff --git a/torrus/xmlconfig/generic/monitors.xml b/torrus/xmlconfig/generic/monitors.xml
new file mode 100644
index 000000000..57a40c333
--- /dev/null
+++ b/torrus/xmlconfig/generic/monitors.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<!--
+ 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>
+
+$Id $
+
+-->
+<configuration>
+ <monitors>
+
+ <!-- Actions -->
+ <action name="graph-hw-failures">
+ <param name="action-type" value="tset" />
+ <param name="tset-name" value="hw-failures" />
+ </action>
+
+ <action name="graph-Violations">
+ <param name="action-type" value="tset" />
+ <param name="tset-name" value="Violations" />
+ </action>
+
+ <!-- Monitors -->
+ <monitor name="hw-failures">
+ <param name="monitor-type" value="failures" />
+ <param name="action" value="graph-hw-failures" />
+ <param name="expires" value="3600" />
+ </monitor>
+
+ <monitor name="fail_eq">
+ <param name="monitor-type" value="expression"/>
+ <param name="rpn-expr" value="#fail,EQ"/>
+ <param name="action" value="graph-Violations"/>
+ <param name="expires" value="86400"/>
+ </monitor>
+
+ <monitor name="fail_lt">
+ <param name="monitor-type" value="expression"/>
+ <param name="rpn-expr" value="#fail,LT"/>
+ <param name="action" value="graph-Violations"/>
+ <param name="expires" value="86400"/>
+ </monitor>
+
+ <monitor name="fail_le">
+ <param name="monitor-type" value="expression"/>
+ <param name="rpn-expr" value="#fail,LE"/>
+ <param name="action" value="graph-Violations"/>
+ <param name="expires" value="86400"/>
+ </monitor>
+
+ <monitor name="fail_gt">
+ <param name="monitor-type" value="expression"/>
+ <param name="rpn-expr" value="#fail,GT"/>
+ <param name="action" value="graph-Violations"/>
+ <param name="expires" value="86400"/>
+ </monitor>
+
+ <monitor name="fail_ge">
+ <param name="monitor-type" value="expression"/>
+ <param name="rpn-expr" value="#fail,GE"/>
+ <param name="action" value="graph-Violations"/>
+ <param name="expires" value="86400"/>
+ </monitor>
+
+ </monitors>
+
+ <!-- Tokensets -->
+ <token-sets>
+ <param name="default-tset-view" value="default-tset-html" />
+ <param name="default-tsetlist-view" value="tset-list-html" />
+
+ <token-set name="hw-failures">
+ <param name="comment" value="HW Prediction Violations"/>
+ </token-set>
+
+ <token-set name="Violations">
+ <param name="comment" value="Monitor Violations"/>
+ </token-set>
+
+ </token-sets>
+
+</configuration>
diff --git a/torrus/xmlconfig/generic/rfc1628.ups.xml b/torrus/xmlconfig/generic/rfc1628.ups.xml
new file mode 100644
index 000000000..1888967de
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc1628.ups.xml
@@ -0,0 +1,370 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2008 Jon Nistor
+
+ 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: rfc1628.ups.xml,v 1.1 2010-12-27 00:04:30 ivan Exp $
+ Jon Nistor <nistor at snickers dot org>
+
+-->
+
+<configuration>
+
+<definitions>
+ <!-- UPS-MIB -->
+
+ <!-- Battery group -->
+ <def name="upsBatteryStatus" value="1.3.6.1.2.1.33.1.2.1.0"/>
+ <def name="upsSecondsOnBattery" value="1.3.6.1.2.1.33.1.2.2.0"/>
+ <def name="upsEstimatedMinutesRemaining" value="1.3.6.1.2.1.33.1.2.3.0"/>
+ <def name="upsEstimatedChargeRemaining" value="1.3.6.1.2.1.33.1.2.4.0"/>
+ <def name="upsBatteryVoltage" value="1.3.6.1.2.1.33.1.2.5.0"/>
+ <def name="upsBatteryCurrent" value="1.3.6.1.2.1.33.1.2.6.0"/>
+
+ <!-- Input group -->
+ <def name="upsInputLineBads" value="1.3.6.1.2.1.33.1.3.1.0"/>
+ <def name="upsInputFrequency" value="1.3.6.1.2.1.33.1.3.3.1.2"/>
+ <def name="upsInputVoltage" value="1.3.6.1.2.1.33.1.3.3.1.3"/>
+ <def name="upsInputCurrent" value="1.3.6.1.2.1.33.1.3.3.1.4"/>
+ <def name="upsInputTruePower" value="1.3.6.1.2.1.33.1.3.3.1.5"/>
+
+ <!-- Output group -->
+ <def name="upsOutputFrequency" value="1.3.6.1.2.1.33.1.4.2.0"/>
+ <def name="upsOutputVoltage" value="1.3.6.1.2.1.33.1.4.4.1.2"/>
+ <def name="upsOutputCurrent" value="1.3.6.1.2.1.33.1.4.4.1.3"/>
+ <def name="upsOutputPower" value="1.3.6.1.2.1.33.1.4.4.1.4"/>
+ <def name="upsOutputPercentLoad" value="1.3.6.1.2.1.33.1.4.4.1.5"/>
+
+ <!-- Bypass group -->
+ <def name="upsBypassFrequency" value="1.3.6.1.2.1.33.1.5.1.0"/>
+ <def name="upsBypassVoltage" value="1.3.6.1.2.1.33.1.5.3.1.2"/>
+
+</definitions>
+
+<datasources>
+
+ <template name="battery-subtree">
+ <param name="data-file" value="%system-id%_ups_battery.rrd"/>
+ <param name="comment" value="Battery Information"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+
+ <leaf name="Status">
+ <!-- values: 1 unknown, 2 normal, 3 low, 4 depleted -->
+ <param name="comment" value="Capacity remaining in batteries"/>
+ <param name="graph-legend" value="status"/>
+ <param name="graph-title"
+ value="Status: 1 unknown, 2 normal, 3 low, 4 depleted"/>
+ <param name="precedence" value="990"/>
+ <param name="rrd-ds" value="BatteryStatus"/>
+ <param name="snmp-object" value="$upsBatteryStatus"/>
+ </leaf>
+
+ <leaf name="Seconds_On_Batttery">
+ <param name="comment" value="Seconds unit is on battery"/>
+ <param name="graph-legend" value="Seconds on battery"/>
+ <param name="precedence" value="980"/>
+ <param name="rrd-ds" value="SecondsOnBattery"/>
+ <param name="snmp-object" value="$upsSecondsOnBattery"/>
+ <param name="vertical-label" value="seconds"/>
+ </leaf>
+
+ <leaf name="Minutes_Remaining">
+ <param name="comment" value="Minutes remaining before depletion"/>
+ <param name="graph-legend" value="Minutes left before depletion"/>
+ <param name="graph-lower-limit" value="0" />
+ <param name="precedence" value="970"/>
+ <param name="rrd-ds" value="EstMinRemaining"/>
+ <param name="snmp-object" value="$upsEstimatedMinutesRemaining"/>
+ <param name="vertical-label" value="minutes"/>
+ </leaf>
+
+ <leaf name="Charge_Remaining">
+ <param name="comment" value="Battery charge remaining"/>
+ <param name="graph-legend" value="Battery charge remaining"/>
+ <param name="graph-lower-limit" value="0" />
+ <param name="precedence" value="960"/>
+ <param name="rrd-ds" value="EstChgRemaining"/>
+ <param name="snmp-object" value="$upsEstimatedChargeRemaining"/>
+ <param name="upper-limit" value="100" />
+ <param name="vertical-label" value="percent"/>
+ </leaf>
+
+ <leaf name="Battery_Voltage">
+ <param name="hidden" value="yes"/>
+ <param name="comment" value="Magnitude of battery voltage"/>
+ <param name="graph-legend" value="Battery Voltage"/>
+ <param name="precedence" value="951"/>
+ <param name="rrd-ds" value="BatteryVoltage"/>
+ <param name="snmp-object" value="$upsBatteryVoltage"/>
+ <param name="vertical-label" value="0.1 Volt DC"/>
+ </leaf>
+
+ <leaf name="Voltage">
+ <param name="comment" value="Magnitude of battery voltage"/>
+ <param name="graph-legend" value="Battery Voltage"/>
+ <param name="precedence" value="950"/>
+ <param name="ds-type" value="rrd-file"/>
+ <param name="leaf-type" value="rrd-cdef"/>
+ <param name="rpn-expr" value="{Battery_Voltage},0.1,*"/>
+ <param name="vertical-label" value="Volt DC"/>
+ </leaf>
+
+ <leaf name="Battery_Current">
+ <param name="hidden" value="yes"/>
+ <param name="comment" value="Present battery current"/>
+ <param name="graph-legend" value="Battery current"/>
+ <param name="precedence" value="940"/>
+ <param name="rrd-ds" value="BatteryCurrent"/>
+ <param name="snmp-object" value="$upsBatteryCurrent"/>
+ <param name="vertical-label" value="0.1 Amp DC"/>
+ </leaf>
+
+ <leaf name="Current">
+ <param name="comment" value="Present battery current"/>
+ <param name="graph-legend" value="Battery current"/>
+ <param name="precedence" value="930"/>
+ <param name="ds-type" value="rrd-file"/>
+ <param name="leaf-type" value="rrd-cdef"/>
+ <param name="rpn-expr" value="{Battery_Current},0.1,*"/>
+ <param name="vertical-label" value="Amp DC"/>
+ </leaf>
+ </template>
+
+ <template name="ups-input-subtree">
+ <param name="has-overview-shortcuts" value="yes"/>
+ <param name="overview-shortcuts" value="freq,volt,curr,true"/>
+ <!-- Frequency -->
+ <param name="overview-subleave-name-freq" value="Frequency"/>
+ <param name="overview-shortcut-text-freq"
+ value="All Frequency"/>
+ <param name="overview-shortcut-title-freq"
+ value="Show input frequency for all phases on one page"/>
+ <param name="overview-page-title-freq"
+ value="Input Frequency"/>
+ <!-- Voltage -->
+ <param name="overview-subleave-name-volt" value="Voltage"/>
+ <param name="overview-shortcut-text-volt"
+ value="All Voltage"/>
+ <param name="overview-shortcut-title-volt"
+ value="Show input voltage for all phases on one page"/>
+ <param name="overview-page-title-volt"
+ value="Input Voltage"/>
+ <!-- Current -->
+ <param name="overview-subleave-name-curr" value="Current"/>
+ <param name="overview-shortcut-text-curr"
+ value="All Current"/>
+ <param name="overview-shortcut-title-curr"
+ value="Show input current for all phases on one page"/>
+ <param name="overview-page-title-curr"
+ value="Input Current"/>
+ <!-- TruePower -->
+ <param name="overview-subleave-name-true" value="True_Power"/>
+ <param name="overview-shortcut-text-true"
+ value="All True Power"/>
+ <param name="overview-shortcut-title-true"
+ value="Show input true power for all phases on one page"/>
+ <param name="overview-page-title-true"
+ value="Input True Power"/>
+ </template>
+
+ <template name="ups-input-leaf">
+ <param name="data-file" value="%system-id%_input_%ups-input-idx%.rrd"/>
+ <param name="comment" value="Phase %ups-input-idx% input"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+
+ <leaf name="Input_Frequency">
+ <param name="hidden" value="yes"/>
+ <param name="comment" value="Present input frequency"/>
+ <param name="graph-legend" value="Input frequency"/>
+ <param name="precedence" value="991"/>
+ <param name="rrd-ds" value="inputFrequency"/>
+ <param name="snmp-object" value="$upsInputFrequency.%ups-input-idx%"/>
+ <param name="vertical-label" value="0.1 Hertz"/>
+ </leaf>
+
+ <leaf name="Frequency">
+ <param name="comment" value="Present input frequency"/>
+ <param name="graph-legend" value="Input frequency"/>
+ <param name="precedence" value="990"/>
+ <param name="ds-type" value="rrd-file"/>
+ <param name="leaf-type" value="rrd-cdef"/>
+ <param name="rpn-expr" value="{Input_Frequency},0.1,*"/>
+ <param name="vertical-label" value="Hertz"/>
+ </leaf>
+
+ <leaf name="Voltage">
+ <param name="comment" value="Magnitude of present input voltage"/>
+ <param name="graph-legend" value="Input voltage"/>
+ <param name="precedence" value="980"/>
+ <param name="rrd-ds" value="inputVoltage"/>
+ <param name="snmp-object" value="$upsInputVoltage.%ups-input-idx%"/>
+ <param name="vertical-label" value="RMS Volts"/>
+ </leaf>
+
+ <leaf name="Input_Current">
+ <param name="hidden" value="yes"/>
+ <param name="comment" value="Magnitude of present input current"/>
+ <param name="graph-legend" value="Input current"/>
+ <param name="precedence" value="971"/>
+ <param name="rrd-ds" value="inputCurrent"/>
+ <param name="snmp-object" value="$upsInputCurrent.%ups-input-idx%"/>
+ <param name="vertical-label" value="0.1 RMS Amp"/>
+ </leaf>
+
+ <leaf name="Current">
+ <param name="comment" value="Magnitude of present input current"/>
+ <param name="graph-legend" value="Input current"/>
+ <param name="precedence" value="970"/>
+ <param name="ds-type" value="rrd-file"/>
+ <param name="leaf-type" value="rrd-cdef"/>
+ <param name="rpn-expr" value="{Input_Current},0.1,*"/>
+ <param name="vertical-label" value="RMS Amp"/>
+ </leaf>
+
+ <leaf name="True_Power">
+ <param name="comment" value="Magnitude of present input true power"/>
+ <param name="graph-legend" value="Input true power"/>
+ <param name="precedence" value="960"/>
+ <param name="rrd-ds" value="inputTruePower"/>
+ <param name="snmp-object" value="$upsInputTruePower.%ups-input-idx%"/>
+ <param name="vertical-label" value="Watts"/>
+ </leaf>
+ </template>
+
+
+ <template name="ups-output-subtree">
+ <param name="has-overview-shortcuts" value="yes"/>
+ <param name="overview-shortcuts" value="volt,curr,pwr,load"/>
+ <!-- Voltage -->
+ <param name="overview-subleave-name-volt" value="Voltage"/>
+ <param name="overview-shortcut-text-volt"
+ value="All Voltage"/>
+ <param name="overview-shortcut-title-volt"
+ value="Show output voltage for all phases on one page"/>
+ <param name="overview-page-title-volt"
+ value="Output Voltage"/>
+ <!-- Current -->
+ <param name="overview-subleave-name-curr" value="Current"/>
+ <param name="overview-shortcut-text-curr"
+ value="All Current"/>
+ <param name="overview-shortcut-title-curr"
+ value="Show output current for all phases on one page"/>
+ <param name="overview-page-title-curr"
+ value="Output Current"/>
+ <!-- Power -->
+ <param name="overview-subleave-name-pwr" value="Power"/>
+ <param name="overview-shortcut-text-pwr"
+ value="All True Power"/>
+ <param name="overview-shortcut-title-pwr"
+ value="Show output true power for all phases on one page"/>
+ <param name="overview-page-title-pwr"
+ value="Output True Power"/>
+ <!-- Load -->
+ <param name="overview-subleave-name-load" value="Load"/>
+ <param name="overview-shortcut-text-load"
+ value="All Percentage Load"/>
+ <param name="overview-shortcut-title-load"
+ value="Show output load for all phases on one page"/>
+ <param name="overview-page-title-load"
+ value="Output Load"/>
+ </template>
+
+ <template name="ups-output-leaf">
+ <param name="data-file" value="%system-id%_output_%ups-output-idx%.rrd"/>
+ <param name="comment" value="Phase %ups-output-idx% output"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+
+ <leaf name="Voltage">
+ <param name="comment" value="Present output voltage"/>
+ <param name="graph-legend" value="Output Voltage"/>
+ <param name="precedence" value="990"/>
+ <param name="rrd-ds" value="outputVoltage"/>
+ <param name="snmp-object" value="$upsOutputVoltage.%ups-output-idx%"/>
+ <param name="vertical-label" value="RMS Volts"/>
+ </leaf>
+
+ <leaf name="Output_Current">
+ <param name="hidden" value="yes"/>
+ <param name="comment" value="Present output current"/>
+ <param name="graph-legend" value="Output Current"/>
+ <param name="precedence" value="981"/>
+ <param name="rrd-ds" value="outputCurrent"/>
+ <param name="snmp-object" value="$upsOutputCurrent.%ups-output-idx%"/>
+ <param name="vertical-label" value="0.1 RMS Amp"/>
+ </leaf>
+
+ <leaf name="Current">
+ <param name="comment" value="Present output voltage"/>
+ <param name="graph-legend" value="Output Current"/>
+ <param name="precedence" value="980"/>
+ <param name="ds-type" value="rrd-file"/>
+ <param name="leaf-type" value="rrd-cdef"/>
+ <param name="rpn-expr" value="{Output_Current},0.1,*"/>
+ <param name="vertical-label" value="RMS Amp"/>
+ </leaf>
+
+ <leaf name="Power">
+ <param name="comment" value="Present output true power"/>
+ <param name="graph-legend" value="Output True Power"/>
+ <param name="precedence" value="970"/>
+ <param name="rrd-ds" value="outputTruePower"/>
+ <param name="snmp-object" value="$upsOutputPower.%ups-output-idx%"/>
+ <param name="vertical-label" value="Watts"/>
+ </leaf>
+
+ <leaf name="Load">
+ <param name="comment" value="Present capacity used"/>
+ <param name="graph-legend" value="Capacity load"/>
+ <param name="graph-lower-limit" value="0"/>
+ <param name="graph-upper-limit" value="100"/>
+ <param name="precedence" value="960"/>
+ <param name="rrd-ds" value="outputLoad"/>
+ <param name="snmp-object" value="$upsOutputPercentLoad.%ups-output-idx%"/>
+ <param name="upper-limit" value="100"/>
+ <param name="vertical-label" value="Percent"/>
+ </leaf>
+ </template>
+
+ <template name="ups-bypass-subtree">
+ <param name="has-overview-shortcuts" value="yes"/>
+ <param name="overview-shortcuts" value="volt"/>
+ <!-- Voltage -->
+ <param name="overview-subleave-name-volt" value="Voltage"/>
+ <param name="overview-shortcut-text-volt"
+ value="All Voltage"/>
+ <param name="overview-shortcut-title-volt"
+ value="Show bypass voltage for all phases on one page"/>
+ <param name="overview-page-title-volt"
+ value="Bypass Voltage"/>
+ </template>
+
+ <template name="ups-bypass-leaf">
+ <param name="data-file" value="%system-id%_bypass%ups-bypass-idx%.rrd"/>
+ <param name="comment" value="Phase %ups-bypass-idx% bypass"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+
+ <leaf name="Voltage">
+ <param name="comment" value="Present bypass voltage"/>
+ <param name="graph-legend" value="Output Voltage"/>
+ <param name="precedence" value="990"/>
+ <param name="rrd-ds" value="bypassVoltage"/>
+ <param name="snmp-object" value="$upsBypassVoltage.%ups-bypass-idx%"/>
+ <param name="vertical-label" value="RMS Volts"/>
+ </leaf>
+ </template>
+
+</datasources>
+</configuration>
diff --git a/torrus/xmlconfig/generic/rfc1697.rdbms.xml b/torrus/xmlconfig/generic/rfc1697.rdbms.xml
new file mode 100644
index 000000000..b5708a7f2
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc1697.rdbms.xml
@@ -0,0 +1,211 @@
+<?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>
+
+ Authors: Shawn Ferry
+
+ $Id: rfc1697.rdbms.xml,v 1.1 2010-12-27 00:04:29 ivan Exp $
+-->
+<configuration>
+ <definitions>
+ <!-- rdbmsDbTable -->
+ <def name="rdbmsDbName" value="1.3.6.1.2.1.39.1.1.1.4"/>
+
+ <!-- rdbmsDbInfoTable -->
+ <def name="rdbmsDbInfoSizeAllocated" value="1.3.6.1.2.1.39.1.2.1.4"/>
+ <def name="rdbmsDbInfoSizeUsed" value="1.3.6.1.2.1.39.1.2.1.5"/>
+
+ <!-- rdbmsDbSrvInfoTable -->
+ <def name="rdbmsSrvInfoFinishedTransactions"
+ value="1.3.6.1.2.1.39.1.6.1.2"/>
+ <def name="rdbmsSrvInfoDiskReads" value="1.3.6.1.2.1.39.1.6.1.3"/>
+ <def name="rdbmsSrvInfoLogicalReads" value="1.3.6.1.2.1.39.1.6.1.4"/>
+ <def name="rdbmsSrvInfoDiskWrites" value="1.3.6.1.2.1.39.1.6.1.5"/>
+ <def name="rdbmsSrvInfoLogicalWrites" value="1.3.6.1.2.1.39.1.6.1.6"/>
+ <def name="rdbmsSrvInfoPageReads" value="1.3.6.1.2.1.39.1.6.1.7"/>
+ <def name="rdbmsSrvInfoPageWrites" value="1.3.6.1.2.1.39.1.6.1.8"/>
+ <def name="rdbmsSrvInfoRequestsHandled" value="1.3.6.1.2.1.39.1.6.1.10"/>
+
+ <!-- Network Services applTable -->
+ <def name="applInboundAssociations" value="1.3.6.1.2.1.27.1.1.8"/>
+
+ <def name="DB_IDX"
+ value="M($rdbmsDbName,%dbName%)"/>
+ </definitions>
+
+ <datasources>
+
+ <template name="rdbms-dbtable">
+ <subtree name="DB_Stats">
+ <param name="precedence" value="1000"/>
+ <param name="data-file"
+ value="%system-id%_%vendor%_%dbName%_RDBMS.rrd"/>
+ <param name="rrd-hwpredict" value="disabled" />
+ <leaf name="DB_Allocated">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="collector-scale" value="%dbSizeUnits%,*"/>
+ <param name="snmp-object" value="$rdbmsDbInfoSizeAllocated.$DB_IDX"/>
+ <param name="rrd-ds" value="dbAllocated"/>
+ <param name="comment" value="Space Allocated to this Database"/>
+ <param name="graph-legend" value="Allocated Space"/>
+ <param name="vertical-label" value="Bytes"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Allocated Space"/>
+ </leaf>
+ <leaf name="DB_Used">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="collector-scale" value="%dbSizeUnits%,*"/>
+ <param name="snmp-object" value="$rdbmsDbInfoSizeAllocated.$DB_IDX"/>
+ <param name="rrd-ds" value="dbUsed"/>
+ <param name="comment" value="Space Allocated to this Database"/>
+ <param name="graph-legend" value="Used Space"/>
+ <param name="vertical-label" value="Bytes"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Used Space"/>
+ </leaf>
+ <leaf name="DB_Finished_Transactions">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object"
+ value="$rdbmsSrvInfoFinishedTransactions.$DB_IDX"/>
+ <param name="rrd-ds" value="FinishedTrans"/>
+ <param name="comment" value="Finished Transactions (COMMIT/ABORT)"/>
+ <param name="graph-legend" value="Transactions/s"/>
+ <param name="vertical-label" value="Transactions"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Finished Transactions"/>
+ </leaf>
+ <leaf name="DB_Disk_Reads">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object" value="$rdbmsSrvInfoDiskReads.$DB_IDX"/>
+ <param name="rrd-ds" value="DiskReads"/>
+ <param name="comment" value="Disk Reads/s"/>
+ <param name="graph-legend" value="Disk Reads"/>
+ <param name="vertical-label" value="Disk Reads/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Disk Reads/s"/>
+ </leaf>
+ <leaf name="DB_Logical_Reads">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object" value="$rdbmsSrvInfoLogicalReads.$DB_IDX"/>
+ <param name="rrd-ds" value="LogicalReads"/>
+ <param name="comment" value="Logical Reads/s"/>
+ <param name="graph-legend" value="Logical Reads"/>
+ <param name="vertical-label" value="Logical Reads/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Logical Reads/s"/>
+ </leaf>
+ <leaf name="DB_Disk_Writes">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object" value="$rdbmsSrvInfoDiskWrites.$DB_IDX"/>
+ <param name="rrd-ds" value="DiskWrites"/>
+ <param name="comment" value="Disk Writes/s"/>
+ <param name="graph-legend" value="Writes"/>
+ <param name="vertical-label" value="Writes/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Disk Writes/s"/>
+ </leaf>
+ <leaf name="DB_Logical_Writes">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object"
+ value="$rdbmsSrvInfoLogicalWrites.$DB_IDX"/>
+ <param name="rrd-ds" value="LogicalWrites"/>
+ <param name="comment" value="Logical Writes/s"/>
+ <param name="graph-legend" value="Logical Writes"/>
+ <param name="vertical-label" value="Logical Writes/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Logical Writes/s"/>
+ </leaf>
+ <leaf name="DB_Page_Writes">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object" value="$rdbmsSrvInfoPageWrites.$DB_IDX"/>
+ <param name="rrd-ds" value="PageWrites"/>
+ <param name="comment" value="Page Writes/s"/>
+ <param name="graph-legend" value="Page Writes"/>
+ <param name="vertical-label" value="Page Writes/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Page Writes/s"/>
+ </leaf>
+ <leaf name="DB_Page_Reads">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object" value="$rdbmsSrvInfoPageReads.$DB_IDX"/>
+ <param name="rrd-ds" value="PageReads"/>
+ <param name="comment" value="Page Reads/s"/>
+ <param name="graph-legend" value="Page Reads"/>
+ <param name="vertical-label" value="Page Reads/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Page Reads/s"/>
+ </leaf>
+ <leaf name="DB_Request_Rate">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="COUNTER"/>
+ <param name="snmp-object"
+ value="$rdbmsSrvInfoRequestsHandled.$DB_IDX"/>
+ <param name="rrd-ds" value="RequestsHandled"/>
+ <param name="comment" value="Requests Handled/s"/>
+ <param name="graph-legend" value="Requests Handled"/>
+ <param name="vertical-label" value="Requests Handled/s"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Requests Handled/s"/>
+ </leaf>
+ <leaf name="DB_Inbound_Associations">
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="no"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="snmp-object" value="$applInboundAssociations.$DB_IDX"/>
+ <param name="rrd-ds" value="InboundAssociations"/>
+ <param name="comment" value="Inbound Associations"/>
+ <param name="graph-legend" value="Inbound Associations"/>
+ <param name="vertical-label" value="Inbound Associations"/>
+ <param name="descriptive-nickname"
+ value="%system-id%:%snmp-host% %dbName% Inbound Associations"/>
+ </leaf>
+ </subtree>
+ </template>
+ </datasources>
+</configuration>
diff --git a/torrus/xmlconfig/generic/rfc2662.adsl-line.xml b/torrus/xmlconfig/generic/rfc2662.adsl-line.xml
new file mode 100644
index 000000000..1c1ac1317
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc2662.adsl-line.xml
@@ -0,0 +1,247 @@
+<?xml version="1.0"?>
+<!--
+ Copyright (C) 2003 Gord Philpott <gphilpot@mnsi.net>
+ Copyright (C) 2003 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: rfc2662.adsl-line.xml,v 1.1 2010-12-27 00:04:29 ivan Exp $
+-->
+
+
+<!--
+ RFC 2662 (ADSL-LINE-MIB)
+ Definitions of Managed Objects for the ADSL Lines
+
+ Tested with:
+ Paradyne Hotwire ATM ADSL Line Card;
+ Model: 8365-B1-000; S/W Release: 02.03.54
+-->
+
+
+<configuration>
+
+<definitions>
+ <!-- ADSL-LINE-MIB -->
+ <def name="adslAtucCurrSnrMgn" value="1.3.6.1.2.1.10.94.1.1.2.1.4" />
+ <def name="adslAtucCurrAtn" value="1.3.6.1.2.1.10.94.1.1.2.1.5" />
+ <def name="adslAtucCurrAttainableRate" value="1.3.6.1.2.1.10.94.1.1.2.1.8" />
+ <def name="adslAtucChanCurrTxRate" value="1.3.6.1.2.1.10.94.1.1.4.1.2" />
+
+ <def name="adslAturCurrSnrMgn" value="1.3.6.1.2.1.10.94.1.1.3.1.4" />
+ <def name="adslAturCurrAtn" value="1.3.6.1.2.1.10.94.1.1.3.1.5" />
+ <def name="adslAturCurrAttainableRate" value="1.3.6.1.2.1.10.94.1.1.3.1.8" />
+ <def name="adslAturChanCurrTxRate" value="1.3.6.1.2.1.10.94.1.1.5.1.2" />
+</definitions>
+
+<datasources>
+
+ <template name="adsl-line-interface">
+
+ <param name="rrd-hwpredict" value="disabled" />
+
+ <!-- ******* Start: ATUC and ATUR SNR Margin ******* -->
+ <leaf name="Atuc_SnrMgn">
+ <param name="comment" value="ATUC SNR Margin" />
+ <param name="snmp-object" value="$adslAtucCurrSnrMgn.%ifindex-map%" />
+ <param name="collector-scale" value="10,/" />
+ <param name="rrd-ds" value="AtucSnrMgn" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="Atur_SnrMgn">
+ <param name="comment" value="ATUR SNR Margin" />
+ <param name="snmp-object" value="$adslAturCurrSnrMgn.%ifindex-map%" />
+ <param name="collector-scale" value="10,/" />
+ <param name="rrd-ds" value="AturSnrMgn" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="SNR_Margin"> <!-- Multiple line graph -->
+ <param name="comment" value="ATUC and ATUR SNR Margin" />
+ <param name="precedence" value="100" />
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="atuc,atur" />
+
+ <param name="ds-expr-atuc" value="{Atuc_SnrMgn}" />
+ <param name="graph-legend-atuc" value="ATUC SNR Margin" />
+ <param name="line-style-atuc" value="##nearend" />
+ <param name="line-color-atuc" value="##nearend" />
+ <param name="line-order-atuc" value="1" />
+
+ <param name="ds-expr-atur" value="{Atur_SnrMgn}" />
+ <param name="graph-legend-atur" value="ATUR SNR Margin" />
+ <param name="line-style-atur" value="##farend" />
+ <param name="line-color-atur" value="##farend" />
+ <param name="line-order-atur" value="2" />
+
+ <param name="vertical-label" value="dB" />
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ <!-- ******* End: ATUC and ATUR SNR Margin ******* -->
+
+ <!-- ******* Start: ATUC and ATUR Attenuation ******* -->
+ <leaf name="Atuc_Atn">
+ <param name="comment" value="ATUC Attenuation" />
+ <param name="snmp-object" value="$adslAtucCurrAtn.%ifindex-map%" />
+ <param name="collector-scale" value="10,/" />
+ <param name="rrd-ds" value="AtucAtn" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="Atur_Atn">
+ <param name="comment" value="ATUR Attenuation" />
+ <param name="snmp-object" value="$adslAturCurrAtn.%ifindex-map%" />
+ <param name="collector-scale" value="10,/" />
+ <param name="rrd-ds" value="AturAtn" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="Attenuation"> <!-- Multiple line graph -->
+ <param name="comment" value="ATUC and ATUR Attenuation" />
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="atuc,atur" />
+
+ <param name="ds-expr-atuc" value="{Atuc_Atn}" />
+ <param name="graph-legend-atuc" value="ATUC SNR Margin" />
+ <param name="line-style-atuc" value="##nearend" />
+ <param name="line-color-atuc" value="##nearend" />
+ <param name="line-order-atuc" value="1" />
+
+ <param name="ds-expr-atur" value="{Atur_Atn}" />
+ <param name="graph-legend-atur" value="ATUR SNR Margin" />
+ <param name="line-style-atur" value="##farend" />
+ <param name="line-color-atur" value="##farend" />
+ <param name="line-order-atur" value="2" />
+
+ <param name="vertical-label" value="dB" />
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ <!-- ******* End: ATUC and ATUR SNR Margin ******* -->
+
+
+ <!-- ******* Start: ATUC Attainable Rates ******* -->
+ <leaf name="Atuc_AttainableRate">
+ <param name="comment" value="ATUC Attainable Rate" />
+ <param name="snmp-object"
+ value="$adslAtucCurrAttainableRate.%ifindex-map%" />
+ <param name="rrd-ds" value="AtucAttainableRate" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="graph-legend" value="ATUC Attainable Rate" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="Atuc_CurrTxRate">
+ <param name="comment" value="ATUC Current TX Rate" />
+ <param name="snmp-object"
+ value="$adslAtucChanCurrTxRate.%ifindex-map%" />
+ <param name="rrd-ds" value="AtucCurrTxRate" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="graph-legend" value="ATUC Curr TX Rate" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="ATUC_TX_Rates"> <!-- Multiple line graph -->
+ <param name="comment" value="ATUC TX Rates" />
+ <param name="precedence" value="90" />
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="attain,curr" />
+
+ <param name="ds-expr-attain" value="{Atuc_AttainableRate}" />
+ <param name="graph-legend-attain" value="ATUC Attainable Rate" />
+ <param name="line-style-attain" value="##maxvalue" />
+ <param name="line-color-attain" value="##maxvalue" />
+ <param name="line-order-attain" value="1" />
+
+ <param name="ds-expr-curr" value="{Atuc_CurrTxRate}" />
+ <param name="graph-legend-curr" value="ATUC Curr TX Rate" />
+ <param name="line-style-curr" value="##currvalue" />
+ <param name="line-color-curr" value="##currvalue" />
+ <param name="line-order-curr" value="2" />
+
+ <param name="vertical-label" value="bps" />
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ <!-- ******* End: ATUC TX Rates ******* -->
+
+ <!-- ******* Start: ATUR TX Rates ******* -->
+ <leaf name="Atur_AttainableRate">
+ <param name="comment" value="ATUR Attainable Rate" />
+ <param name="snmp-object"
+ value="$adslAturCurrAttainableRate.%ifindex-map%" />
+ <param name="rrd-ds" value="AturAttainableRate" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="graph-legend" value="ATUR Attainable Rate" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="Atur_CurrTxRate">
+ <param name="comment" value="ATUR Current TX Rate" />
+ <param name="snmp-object"
+ value="$adslAturChanCurrTxRate.%ifindex-map%" />
+ <param name="rrd-ds" value="AturCurrTxRate" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="data-file"
+ value="%system-id%_%interface-nick%_adsl-stats.rrd" />
+ <param name="graph-legend" value="ATUR Current TX Rate" />
+ <param name="hidden" value="yes" />
+ </leaf>
+
+ <leaf name="ATUR_TX_Rates"> <!-- Multiple line graph -->
+ <param name="comment" value="ATUR TX Rates" />
+ <param name="precedence" value="70" />
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="attain,curr" />
+
+ <param name="ds-expr-attain" value="{Atur_AttainableRate}" />
+ <param name="graph-legend-attain" value="ATUR Attainable Rate" />
+ <param name="line-style-attain" value="##maxvalue" />
+ <param name="line-color-attain" value="##maxvalue" />
+ <param name="line-order-attain" value="1" />
+
+ <param name="ds-expr-curr" value="{Atur_CurrTxRate}" />
+ <param name="graph-legend-curr" value="ATUR Curr TX Rate" />
+ <param name="line-style-curr" value="##currvalue" />
+ <param name="line-color-curr" value="##currvalue" />
+ <param name="line-order-curr" value="2" />
+
+ <param name="vertical-label" value="bps" />
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ <!-- ******* End: ATUR TX Rates ******* -->
+
+ </template>
+
+</datasources>
+
+</configuration>
diff --git a/torrus/xmlconfig/generic/rfc2670.docsis-if.xml b/torrus/xmlconfig/generic/rfc2670.docsis-if.xml
new file mode 100644
index 000000000..7756ca641
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc2670.docsis-if.xml
@@ -0,0 +1,347 @@
+<?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.xml,v 1.1 2010-12-27 00:04:30 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::docsIfUpstreamChannelTable -->
+ <def name="docsIfUpChannelFrequency" value="1.3.6.1.2.1.10.127.1.1.2.1.2"/>
+
+ <!-- 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-subtree-common">
+ <!-- nodeid-docsif is overwritten by devdiscover at the
+ interface level. This definition is here for backward compatibility
+ with older discovery results or for systems which do not use
+ devdiscover -->
+ <param name="nodeid-docsif"
+ value="docs//%nodeid-device%//%interface-nick%//"/>
+ </template>
+
+
+ <template name="docsis-upstream-subtree">
+ <apply-template name="docsis-subtree-common"/>
+ <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,freq"/>
+
+ <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="overview-subleave-name-freq" value="Frequency"/>
+ <param name="overview-direct-link-freq" value="yes"/>
+ <param name="overview-direct-link-view-freq" value="expanded-dir-html"/>
+ <param name="overview-shortcut-text-freq"
+ value="All Frequency"/>
+ <param name="overview-shortcut-title-freq"
+ value="Show all upstream frequenciesin one page"/>
+ <param name="overview-page-title-freq"
+ value="Upstream frequency 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-stats">
+ <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" />
+
+ <param name="nodeid" value="%nodeid-docsif%//snr"/>
+ </leaf>
+
+
+ <leaf name="FEC_Summary">
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="corr,uncorr" />
+ <param name="nodeid" value="%nodeid-docsif%//fec"/>
+
+ <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>
+
+ <leaf name="Frequency">
+ <param name="snmp-object"
+ value="$docsIfUpChannelFrequency.%ifindex-map%"/>
+ <param name="rrd-ds" value="Frequency" />
+ <param name="rrd-create-dstype" value="GAUGE" />
+ <param name="vertical-label" value="Hz" />
+ <param name="comment"
+ value="Upstream frequency"/>
+ <param name="graph-legend" value="Frequency" />
+ <param name="precedence" value="600" />
+ <param name="nodeid" value="%nodeid-docsif%//frequency"/>
+ </leaf>
+ </template>
+
+
+
+ <template name="docsis-downstream-subtree">
+ <apply-template name="docsis-subtree-common"/>
+ <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="nodeid" value="%nodeid-docsif%//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/generic/rfc2790.host-resources.xml b/torrus/xmlconfig/generic/rfc2790.host-resources.xml
new file mode 100644
index 000000000..ed54013be
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc2790.host-resources.xml
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2003 Shawn Ferry, 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.
+
+ Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org>
+
+ Authors: Shawn Ferry, Stanislav Sinyagin
+ Vendor: HOST-RESOURCES-MIB
+
+ $Id: rfc2790.host-resources.xml,v 1.1 2010-12-27 00:04:31 ivan Exp $
+ @(#) 10/18/03 rfc2790.host-resources.xml 1.10 (10/18/03 19:24:09) sferry
+-->
+<!--
+
+ NOTE: Graphing of storage data is not working as expected.
+
+-->
+<!--
+ Generic MIB definitions and templates for:
+
+ The templates defined in this file should work with any
+ snmp implementation supporting:
+
+ HOST-RESOURCES-MIB (RFC 2790)
+ -->
+<configuration>
+ <definitions>
+ <!-- HOST-RESOURCES-MIB -->
+ <def name="hrSystemUptime" value="1.3.6.1.2.1.25.1.1.0"/>
+ <def name="hrSystemNumUsers" value="1.3.6.1.2.1.25.1.5.0"/>
+ <def name="hrSystemProcesses" value="1.3.6.1.2.1.25.1.6.0"/>
+ <def name="hrSystemMaxProcesses" value="1.3.6.1.2.1.25.1.7.0"/>
+ <def name="hrMemorySize" value="1.3.6.1.2.1.25.2.2.0"/>
+ <!-- HOST-RESOURCES-MIB hrStorageTable -->
+ <def name="hrStorageDescr" value="1.3.6.1.2.1.25.2.3.1.3"/>
+ <!-- The size in bytes of each allocated unit -->
+ <def name="hrStorageAllocationUnits" value="1.3.6.1.2.1.25.2.3.1.4"/>
+ <!-- Size in Allocation units -->
+ <def name="hrStorageSize" value="1.3.6.1.2.1.25.2.3.1.5"/>
+ <!-- Size in Allocation units -->
+ <def name="hrStorageUsed" value="1.3.6.1.2.1.25.2.3.1.6"/>
+ <def name="hrStorageAllocationFailures" value="1.3.6.1.2.1.25.2.3.1.7"/>
+ <def name="hrStorage_IDX"
+ value="M($hrStorageDescr,%storage-description%)"/>
+ </definitions>
+
+ <datasources>
+
+ <template name="hr-system-performance-subtree">
+ <param name="comment" value="System, CPU and memory statistics" />
+ <param name="devdiscover-nodetype"
+ value="RFC2790_HOST_RESOURCES::sysPerf" />
+ <param name="rrd-hwpredict" value="disabled" />
+ </template>
+
+ <template name="hr-system-uptime">
+ <leaf name="hrSystemUptime">
+ <param name="data-file" value="%system-id%_hrSysUptime.rrd"/>
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="hidden" value="yes"/>
+ <param name="snmp-object" value="$hrSystemUptime"/>
+ <param name="rrd-ds" value="hrSystemUptime"/>
+ <param name="rrd-cf" value="LAST"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="comment"
+ value="System Uptime in Ticks (1/100th Second)"/>
+ <param name="graph-legend" value="Uptime in Ticks"/>
+ <param name="vertical-label" value="Ticks"/>
+ <param name="rrd-create-rra" value="RRA:LAST:0:1:10080"/>
+ </leaf>
+ <leaf name="Uptime">
+ <param name="vertical-label" value="Days"/>
+ <param name="comment" value="Uptime"/>
+ <param name="ds-type" value="rrd-multigraph"/>
+ <param name="ds-names" value="Days"/>
+ <!-- Days -->
+ <param name="ds-expr-Days">
+ {hrSystemUptime},8640000,/
+ </param>
+ <param name="graph-legend-Days" value="Days"/>
+ <param name="line-style-Days" value="AREA"/>
+ <param name="line-color-Days" value="##green"/>
+ <param name="line-order-Days" value="3"/>
+ </leaf>
+ </template>
+
+ <template name="hr-system-num-users">
+ <leaf name="Users">
+ <param name="data-file" value="%system-id%_hrSystem.rrd"/>
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="snmp-object" value="$hrSystemNumUsers"/>
+ <param name="rrd-ds" value="hrSystemNumUsers"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="comment" value="Number of Users on the System"/>
+ <param name="vertical-label" value="Count"/>
+ <param name="graph-legend" value="Users"/>
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ </template>
+
+ <template name="hr-system-processes">
+ <leaf name="Processes">
+ <param name="data-file" value="%system-id%_hrSystem.rrd"/>
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="snmp-object" value="$hrSystemProcesses"/>
+ <param name="rrd-ds" value="hrSystemProcesses"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="comment" value="Number of Processes"/>
+ <param name="graph-legend" value="Processes"/>
+ <param name="vertical-label" value="Count"/>
+ <param name="graph-lower-limit" value="0" />
+ </leaf>
+ </template>
+
+ <template name="hr-storage-subtree">
+ <param name="comment" value="Storage Devices Usage" />
+ <param name="devdiscover-nodetype"
+ value="RFC2790_HOST_RESOURCES::storageUsed" />
+ <param name="collector-timeoffset-hashstring"
+ value="%system-id%:%storage-nick%" />
+ <param name="rrd-hwpredict" value="disabled" />
+ </template>
+
+ <template name="hr-storage-usage">
+ <param name="data-file" value="%system-id%_%storage-nick%_usage.rrd"/>
+ <param name="comment" value="Storage space used"/>
+ <param name="leaf-type" value="rrd-def"/>
+ <param name="snmp-object" value="$hrStorageUsed.$hrStorage_IDX"/>
+ <param name="rrd-scaling-base" value="1024"/>
+ <param name="rrd-ds" value="hrStorageUsed"/>
+ <param name="rrd-cf" value="AVERAGE"/>
+ <param name="rrd-create-dstype" value="GAUGE"/>
+ <param name="graph-legend" value="Space Used"/>
+ <param name="vertical-label" value="Bytes"/>
+ <param name="graph-lower-limit" value="0" />
+ </template>
+
+ </datasources>
+</configuration>
diff --git a/torrus/xmlconfig/generic/rfc2863.if-mib.xml b/torrus/xmlconfig/generic/rfc2863.if-mib.xml
new file mode 100644
index 000000000..faa8dfeb9
--- /dev/null
+++ b/torrus/xmlconfig/generic/rfc2863.if-mib.xml
@@ -0,0 +1,538 @@
+<?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.xml,v 1.1 2010-12-27 00:04:30 ivan Exp $
+ Stanislav Sinyagin <ssinyagin@yahoo.com>
+
+-->
+
+<!--
+ RFC2863 IF-MIB definitions
+-->
+
+<configuration>
+
+<param-properties>
+ <!-- Parameters which are included in search DB -->
+ <prop param="interface-name" prop="search" value="1"/>
+ <prop param="interface-macaddr" prop="search" value="1"/>
+ <prop param="interface-macaddr" prop="search" value="1"/>
+ <prop param="interface-nick" prop="search" value="1"/>
+
+</param-properties>
+
+
+<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%)"/>
+ <param name="ifindex-table" value="$ifDescr" />
+
+ <!-- nodeid-interface is overwritten by devdiscover at the
+ interface level. This definition is here for backward compatibility
+ with older discovery results or for systems which do not use
+ devdiscover -->
+ <param name="nodeid-interface"
+ value="if//%nodeid-device%//%interface-nick%//"/>
+
+ </template>
+
+ <!-- Parameters for interfaces parent subtree -->
+ <template name="rfc2863-ifmib-subtree">
+ <param name="node-display-name" value="Interfaces"/>
+ <param name="comment" value="Interface traffic and error counters"/>
+
+ <param name="has-overview-shortcuts" value="yes"/>
+ <param name="overview-shortcuts" value="traffic,errors"/>
+
+ <param name="overview-subleave-name-traffic" value="InOut_bps"/>
+ <param name="overview-shortcut-text-traffic"
+ value="All traffic"/>
+ <param name="overview-shortcut-title-traffic"
+ value="Show traffic for all interfaces on one page"/>
+ <param name="overview-page-title-traffic"
+ value="Input/Output Graphs"/>
+
+ <param name="overview-subleave-name-errors"
+ value="Discards_In,Discards_Out,Errors_In,Errors_Out"/>
+ <param name="overview-shortcut-text-errors"
+ value="All errors"/>
+ <param name="overview-shortcut-title-errors"
+ value="Show all interface errors on one page"/>
+ <param name="overview-page-title-errors"
+ value="Interface errors"/>
+
+ <param name="overview-subleave-name-bandwidth"
+ value="Bandwidth_Usage"/>
+ <param name="overview-shortcut-text-bandwidth"
+ value="All bandwidth"/>
+ <param name="overview-shortcut-title-bandwidth"
+ value="Show all bandwidth usage on one page"/>
+ <param name="overview-page-title-bandwidth"
+ value="Bandwidth usage"/>
+
+ <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%" />
+ <param name="help-text">
+ The default view shows the device's network interfaces for which
+ the traffic statistics are available. Expanded view can be seen by
+ clicking the [%em('Show InOut_bps for all interfaces')%] shortcut.
+ It would show input/output graphs for all interfaces on a single page.
+ </param>
+ </template>
+
+ <template name="iftable-octets">
+ <leaf name="Bytes_In">
+ <param name="snmp-object" value="$ifInOctets.%ifindex-map%" />
+ <param name="rrd-ds" value="ifInOctets" />
+ <param name="rrd-create-dstype" value="COUNTER" />
+ <param name="ext-dstype" value="COUNTER32" />
+ <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" />
+ <param name="precedence" value="990" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ <param name="nodeid" value="%nodeid-interface%//inbytes"/>
+ </leaf>
+
+ <leaf name="Bytes_Out">
+ <param name="snmp-object" value="$ifOutOctets.%ifindex-map%" />
+ <param name="rrd-ds" value="ifOutOctets" />
+ <param name="rrd-create-dstype" value="COUNTER" />
+ <param name="ext-dstype" value="COUNTER32" />
+ <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" />
+ <param name="precedence" value="980" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ <param name="nodeid" value="%nodeid-interface%//outbytes"/>
+ </leaf>
+
+ <leaf name="InOut_bps">
+ <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="nodeid" value="%nodeid-interface%//inoutbit"/>
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="in,out" />
+
+ <param name="ds-expr-in" value="{Bytes_In},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="{Bytes_Out},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="Packets_In">
+ <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" />
+ <param name="precedence" value="890" />
+ <param name="nodeid" value="%nodeid-interface%//inpackets"/>
+ </leaf>
+
+ <leaf name="Packets_Out">
+ <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" />
+ <param name="precedence" value="880" />
+ <param name="nodeid" value="%nodeid-interface%//outpackets"/>
+ </leaf>
+ </template>
+
+ <template name="iftable-discards-in">
+ <leaf name="Discards_In">
+ <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" />
+ <param name="precedence" value="790" />
+ <param name="nodeid" value="%nodeid-interface%//indrops"/>
+ <param name="help-text">
+ Input discards may occur when the packets arrive from the interface
+ media, and the router is not able to process them. This can possibly
+ occur because of performance problems.
+ </param>
+ </leaf>
+ </template>
+
+ <template name="iftable-discards-out">
+ <leaf name="Discards_Out">
+ <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" />
+ <param name="precedence" value="780" />
+ <param name="nodeid" value="%nodeid-interface%//outdrops"/>
+ <param name="help-text">
+ Output discards may occur when the router has prepared packets for
+ transmission, but the interface is not able to send them. This
+ may happen because of not enough available bandwidth on
+ the output interface.
+ </param>
+ </leaf>
+ </template>
+
+ <template name="iftable-errors-in">
+ <leaf name="Errors_In">
+ <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" />
+ <param name="precedence" value="690" />
+ <param name="nodeid" value="%nodeid-interface%//inerr"/>
+ <param name="help-text">
+ Input errors usually mean that the interface receives broken packets
+ from the media. This migh be caused by problems with the physical
+ condition of the transmission media, or elecrical interference.
+ </param>
+ </leaf>
+ </template>
+
+ <template name="iftable-errors-out">
+ <leaf name="Errors_Out">
+ <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" />
+ <param name="precedence" value="680" />
+ <param name="nodeid" value="%nodeid-interface%//outerr"/>
+ <param name="help-text">
+ Output errors occur when the interface is not able to send packets
+ to the media for some reasons.
+ </param>
+ </leaf>
+ </template>
+
+
+ <template name="ifxtable-hcoctets">
+ <leaf name="Bytes_In">
+ <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="ext-dstype" value="COUNTER64" />
+ <param name="rrd-create-max" value="1e15"/>
+ <param name="ext-counter-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" />
+ <param name="precedence" value="990" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ <param name="nodeid" value="%nodeid-interface%//inbytes"/>
+ </leaf>
+
+ <leaf name="Bytes_Out">
+ <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="ext-dstype" value="COUNTER64" />
+ <param name="rrd-create-max" value="1e15"/>
+ <param name="ext-counter-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" />
+ <param name="precedence" value="980" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ <param name="nodeid" value="%nodeid-interface%//outbytes"/>
+ </leaf>
+
+ <leaf name="InOut_bps">
+ <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="nodeid" value="%nodeid-interface%//inoutbit"/>
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="in,out" />
+
+ <param name="ds-expr-in" value="{Bytes_In},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="{Bytes_Out},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="Packets_In">
+ <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" />
+ <param name="precedence" value="890" />
+ <param name="nodeid" value="%nodeid-interface%//inpackets"/>
+ </leaf>
+
+ <leaf name="Packets_Out">
+ <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" />
+ <param name="precedence" value="880" />
+ <param name="nodeid" value="%nodeid-interface%//outpackets"/>
+ </leaf>
+ </template>
+
+
+ <!-- Bandwidth usage in percentage of megabits
+ 100 * (bytes * 8 / 1e6) / limit = bytes / (limit * 1250) -->
+ <template name="interface-bandwidth-usage">
+ <leaf name="Bandwidth_Usage">
+ <param name="comment" value="Bandwidth usage graphs" />
+ <param name="vertical-label" value="percent" />
+ <param name="graph-lower-limit" value="0" />
+ <param name="graph-upper-limit" value="100" />
+ <param name="upper-limit" value="100" />
+ <param name="rrd-hwpredict" value="disabled" />
+ <param name="precedence" value="998" />
+ <param name="nodeid" value="%nodeid-interface%//bw"/>
+ <param name="ds-type" value="rrd-multigraph" />
+ <param name="ds-names" value="in,out" />
+
+ <param name="ds-expr-in"
+ value="{Bytes_In},%bandwidth-limit-in%,1250.0,*,/" />
+ <param name="graph-legend-in"
+ value="Input use of %bandwidth-limit-in% Mbps" />
+ <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="{Bytes_Out},%bandwidth-limit-out%,1250.0,*,/" />
+ <param name="graph-legend-out"
+ value="Output use of %bandwidth-limit-out% Mbps" />
+ <param name="line-style-out" value="##BpsOut" />
+ <param name="line-color-out" value="##BpsOut" />
+ <param name="line-order-out" value="2" />
+ </leaf>
+ </template>
+
+
+
+ <!-- ********************************************************************
+
+ Templates for read-only access to RRD files
+
+ ************************************************************************-->
+
+ <template name="read-iftable-octets">
+ <leaf name="Bytes_In">
+ <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" />
+ <param name="precedence" value="990" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ </leaf>
+
+ <leaf name="Bytes_Out">
+ <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" />
+ <param name="precedence" value="980" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ </leaf>
+
+ <leaf name="InOut_bps">
+ <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="{Bytes_In},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="{Bytes_Out},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="Bytes_In">
+ <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" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ </leaf>
+
+ <leaf name="Bytes_Out">
+ <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" />
+ <param name="monitor-action-target" value="InOut_bps"/>
+ </leaf>
+
+ <leaf name="InOut_bps">
+ <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="{Bytes_In},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="{Bytes_Out},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>