buried more whitesapce
[torrus-plus.git] / src / xmlconfig / vendor / hp.procurve.xml
blob20fce84f5c25c120f637feeb3ce85942db472ee7
1 <?xml version="1.0"?>
2 <!--
3    Copyright (C) 2011  Dean Hamstead
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19   Hp ProCurve Switch
21 -->
23 <configuration>
24 <definitions>
25   <!-- hpSwitch                        1.3.6.1.4.1.11.2.14.11.5.1 -->
26   <!-- hpMem                       1.3.6.1.4.1.11.2.14.11.5.1.1.2 -->
27   <def name="hpLocalMemSlotIndex"
28        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.1"/>
29   <def name="hpLocalMemSlabCnt"
30        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.2"/>
31   <def name="hpLocalMemFreeSegCnt"
32        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.3"/>
33   <def name="hpLocalMemAllocSegCnt"
34        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.4"/>
35   <def name="hpLocalMemTotalBytes"
36        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.5"/>
37   <def name="hpLocalMemFreeBytes"
38        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6"/>
39   <def name="hpLocalMemAllocBytes"
40        value="1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.7"/>
42   <!-- hpSwitchStatistics            1.3.6.1.4.1.11.2.14.11.5.1.9 -->
43   <def name="hpSwitchCpuStat"
44        value="1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0"/>
46 </definitions>
48 <datasources>
50   <template name="hp-procurve-cpu">
51     <param name="comment"             value="HP CPU Usage"/>
52     <leaf name="CPU_Usage">
53       <param name="rrd-create-dstype"  value="GAUGE" />
54       <param name="data-file"
55              value="%system-id%_hp_cpu.rrd" />
56       <param name="precedence"         value="-200" />
57       <param name="snmp-object"
58              value="$hpSwitchCpuStat"/>
59       <param name="rrd-ds"             value="cpuUsage" />
60       <param name="comment">
61           The overall CPU busy percentage in the last 1 minute period
62       </param>
63       <param name="graph-legend"       value="CPU usage" />
64       <param name="graph-lower-limit"  value="0" />
65       <param name="graph-upper-limit"  value="100" />
66       <param name="upper-limit"        value="80" />
67       <param name="vertical-label"     value="Percent"/>
68     </leaf>
69   </template>
71   <template name="hp-procurve-memory-subtree">
72     <param name="comment"             value="HP Memory Usage"/>
73   </template>
75   <template name="hp-procurve-memory-leaf">
76     <param name="data-file"
77            value="%system-id%_hp_procurve_memory_%memslot-index%.rrd"/>
78     <param name="comment"            value="Local Slot %memslot-index%"/>
79     <param name="rrd-create-dstype"  value="GAUGE"/>
80     <param name="graph-lower-limit"  value="0" />
81     <param name="upper-limit"        value="100" />
82     <param name="vertical-label"     value="Percent"/>
84     <leaf name="Usage">
85       <param name="rrd-create-dstype" value="GAUGE"/>
86       <param name="comment"  value="Total vs. Used Memory"/>
87       <param name="title"    value="Slot %memslot-index% Memory Usage"/>
88       <param name="ds-type"  value="rrd-multigraph"/>
89       <param name="ds-names" value="total,used"/>
90       <!-- total -->
91       <param name="ds-expr-total"      value="{Free},{Used},+"/>
92       <param name="graph-legend-total" value="Total"/>
93       <param name="line-style-total"   value="##totalresource"/>
94       <param name="line-color-total"   value="##totalresource"/>
95       <param name="line-order-total"   value="1"/>
96       <!-- used -->
97       <param name="ds-expr-used"      value="{Used}"/>
98       <param name="graph-legend-used" value="Used"/>
99       <param name="line-style-used"   value="##resourceusage"/>
100       <param name="line-color-used"   value="##resourceusage"/>
101       <param name="line-order-used"   value="2"/>
102     </leaf>
103     <leaf name="Free">
104       <param name="snmp-object"  value="$hpLocalMemFreeBytes.%memslot-index%"/>
105       <param name="rrd-ds"       value="Slot%memslot-index%Free"/>
106       <param name="graph-legend" value="Slot %memslot-name% memory free" />
107       <param name="comment"      value="Bytes Free in Slot %memslot-index%"/>
108     </leaf>
109     <leaf name="Used">
110       <param name="snmp-object"  value="$hpLocalMemAllocBytes.%memslot-index%"/>
111       <param name="rrd-ds"       value="Pool%memslot-index%Used"/>
112       <param name="graph-legend" value="Slot %memslot-index% memory free" />
113       <param name="comment"      value="Bytes Used in Slot %memslot-index%"/>
114     </leaf>
115   </template>
117 </datasources>
119 </configuration>