1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (C) 2003 Shawn Ferry, Stanislav Sinyagin
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 Shawn Ferry <sferry at sevenspace dot com > <lalartu at obscure dot org>
21 Authors: Shawn Ferry, Stanislav Sinyagin
22 Vendor: HOST-RESOURCES-MIB
24 $Id: rfc2790.host-resources.xml,v 1.1 2010-12-27 00:04:31 ivan Exp $
25 @(#) 10/18/03 rfc2790.host-resources.xml 1.10 (10/18/03 19:24:09) sferry
29 NOTE: Graphing of storage data is not working as expected.
33 Generic MIB definitions and templates for:
35 The templates defined in this file should work with any
36 snmp implementation supporting:
38 HOST-RESOURCES-MIB (RFC 2790)
42 <!-- HOST-RESOURCES-MIB -->
43 <def name="hrSystemUptime" value="1.3.6.1.2.1.25.1.1.0"/>
44 <def name="hrSystemNumUsers" value="1.3.6.1.2.1.25.1.5.0"/>
45 <def name="hrSystemProcesses" value="1.3.6.1.2.1.25.1.6.0"/>
46 <def name="hrSystemMaxProcesses" value="1.3.6.1.2.1.25.1.7.0"/>
47 <def name="hrMemorySize" value="1.3.6.1.2.1.25.2.2.0"/>
48 <!-- HOST-RESOURCES-MIB hrStorageTable -->
49 <def name="hrStorageDescr" value="1.3.6.1.2.1.25.2.3.1.3"/>
50 <!-- The size in bytes of each allocated unit -->
51 <def name="hrStorageAllocationUnits" value="1.3.6.1.2.1.25.2.3.1.4"/>
52 <!-- Size in Allocation units -->
53 <def name="hrStorageSize" value="1.3.6.1.2.1.25.2.3.1.5"/>
54 <!-- Size in Allocation units -->
55 <def name="hrStorageUsed" value="1.3.6.1.2.1.25.2.3.1.6"/>
56 <def name="hrStorageAllocationFailures" value="1.3.6.1.2.1.25.2.3.1.7"/>
57 <def name="hrStorage_IDX"
58 value="M($hrStorageDescr,%storage-description%)"/>
63 <template name="hr-system-performance-subtree">
64 <param name="comment" value="System, CPU and memory statistics" />
65 <param name="devdiscover-nodetype"
66 value="RFC2790_HOST_RESOURCES::sysPerf" />
67 <param name="rrd-hwpredict" value="disabled" />
70 <template name="hr-system-uptime">
71 <leaf name="hrSystemUptime">
72 <param name="data-file" value="%system-id%_hrSysUptime.rrd"/>
73 <param name="leaf-type" value="rrd-def"/>
74 <param name="hidden" value="yes"/>
75 <param name="snmp-object" value="$hrSystemUptime"/>
76 <param name="rrd-ds" value="hrSystemUptime"/>
77 <param name="rrd-cf" value="LAST"/>
78 <param name="rrd-create-dstype" value="GAUGE"/>
80 value="System Uptime in Ticks (1/100th Second)"/>
81 <param name="graph-legend" value="Uptime in Ticks"/>
82 <param name="vertical-label" value="Ticks"/>
83 <param name="rrd-create-rra" value="RRA:LAST:0:1:10080"/>
86 <param name="vertical-label" value="Days"/>
87 <param name="comment" value="Uptime"/>
88 <param name="ds-type" value="rrd-multigraph"/>
89 <param name="ds-names" value="Days"/>
91 <param name="ds-expr-Days">
92 {hrSystemUptime},8640000,/
94 <param name="graph-legend-Days" value="Days"/>
95 <param name="line-style-Days" value="AREA"/>
96 <param name="line-color-Days" value="##green"/>
97 <param name="line-order-Days" value="3"/>
101 <template name="hr-system-num-users">
103 <param name="data-file" value="%system-id%_hrSystem.rrd"/>
104 <param name="leaf-type" value="rrd-def"/>
105 <param name="snmp-object" value="$hrSystemNumUsers"/>
106 <param name="rrd-ds" value="hrSystemNumUsers"/>
107 <param name="rrd-cf" value="AVERAGE"/>
108 <param name="rrd-create-dstype" value="GAUGE"/>
109 <param name="comment" value="Number of Users on the System"/>
110 <param name="vertical-label" value="Count"/>
111 <param name="graph-legend" value="Users"/>
112 <param name="graph-lower-limit" value="0" />
116 <template name="hr-system-processes">
117 <leaf name="Processes">
118 <param name="data-file" value="%system-id%_hrSystem.rrd"/>
119 <param name="leaf-type" value="rrd-def"/>
120 <param name="snmp-object" value="$hrSystemProcesses"/>
121 <param name="rrd-ds" value="hrSystemProcesses"/>
122 <param name="rrd-cf" value="AVERAGE"/>
123 <param name="rrd-create-dstype" value="GAUGE"/>
124 <param name="comment" value="Number of Processes"/>
125 <param name="graph-legend" value="Processes"/>
126 <param name="vertical-label" value="Count"/>
127 <param name="graph-lower-limit" value="0" />
131 <template name="hr-storage-subtree">
132 <param name="comment" value="Storage Devices Usage" />
133 <param name="devdiscover-nodetype"
134 value="RFC2790_HOST_RESOURCES::storageUsed" />
135 <param name="collector-timeoffset-hashstring"
136 value="%system-id%:%storage-nick%" />
137 <param name="rrd-hwpredict" value="disabled" />
140 <template name="hr-storage-usage">
141 <param name="data-file" value="%system-id%_%storage-nick%_usage.rrd"/>
142 <param name="comment" value="Storage space used"/>
143 <param name="leaf-type" value="rrd-def"/>
144 <param name="snmp-object" value="$hrStorageUsed.$hrStorage_IDX"/>
145 <param name="rrd-scaling-base" value="1024"/>
146 <param name="rrd-ds" value="hrStorageUsed"/>
147 <param name="rrd-cf" value="AVERAGE"/>
148 <param name="rrd-create-dstype" value="GAUGE"/>
149 <param name="graph-legend" value="Space Used"/>
150 <param name="vertical-label" value="Bytes"/>
151 <param name="graph-lower-limit" value="0" />