1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
<?xml version="1.0"?>
<!--
Copyright (C) 2003 Stanislav Sinyagin
Copyright (C) 2003 Aaron S. Bush <abush at microelectronics dot com>
File: vendor/hp.hpux.xml
Description: HPUX System monitor definitions
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.
-->
<!--
Tested with HPUX 11.00
-->
<configuration>
<definitions>
<!-- HP MIB -->
<def name="hpuxSystemUserCPU"
value="1.3.6.1.4.1.11.2.3.1.1.13" />
<def name="hpuxSystemSysCPU"
value="1.3.6.1.4.1.11.2.3.1.1.14" />
<def name="hpuxSystemIdleCPU"
value="1.3.6.1.4.1.11.2.3.1.1.15" />
<def name="hpuxSystemNiceCPU"
value="1.3.6.1.4.1.11.2.3.1.1.16" />
<!-- returns lvol path; i.e. "/dev/vg00/lvol1" -->
<def name="hpuxFileSystemName"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.3" />
<def name="hpuxFileSystemBlock"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.4" />
<def name="hpuxFileSystemBfree"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.5" />
<def name="hpuxFileSystemBavail"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.6" />
<def name="hpuxFileSystemFiles"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.8" />
<def name="hpuxFileSystemFfree"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.9" />
<!-- returns mount point name; i.e. "/stand" -->
<def name="hpuxFileSystemDir"
value="1.3.6.1.4.1.11.2.3.1.2.2.1.10" />
<!-- FileSystem indices -->
<def name="FSIDX_DIR" value="M($hpuxFileSystemDir, %filesystem-name%)" />
<def name="FSIDX_NAME" value="M($hpuxFileSystemName, %filesystem-name%)" />
</definitions>
<datasources>
<template name="hpux-cpu">
<param name="data-file" value="%system-id%_CPU_Utilization.rrd" />
<leaf name="CPU_Utilization">
<param name="comment"
value="User, System, Idle, and Nice CPU Utilization" />
<param name="precedence" value="1000" />
<param name="ds-type" value="rrd-multigraph" />
<param name="ds-names" value="user,system,idle,nice" />
<param name="ds-expr-user" value="{User_CPU}" />
<param name="graph-legend-user" value="User" />
<param name="line-style-user" value="AREA" />
<param name="line-order-user" value="1" />
<param name="line-color-user" value="#FF0000" />
<param name="ds-expr-system" value="{System_CPU}" />
<param name="graph-legend-system" value="System" />
<param name="line-style-system" value="STACK" />
<param name="line-order-system" value="2" />
<param name="line-color-system" value="#FFFF00" />
<param name="ds-expr-idle" value="{Idle_CPU}" />
<param name="graph-legend-idle" value="Idle" />
<param name="line-style-idle" value="STACK" />
<param name="line-order-idle" value="3" />
<param name="line-color-idle" value="#00FF00" />
<param name="ds-expr-nice" value="{Nice_CPU}" />
<param name="graph-legend-nice" value="Nice" />
<param name="line-style-nice" value="STACK" />
<param name="line-order-nice" value="4" />
<param name="line-color-nice" value="#99CCFF" />
</leaf> <!-- CPU_Utilization -->
<leaf name="User_CPU">
<param name="snmp-object" value="$hpuxSystemUserCPU.0"/>
<param name="rrd-ds" value="hpuxSystemUserCPU" />
<param name="rrd-create-dstype" value="COUNTER" />
<param name="comment">
Average time in seconds spent by all processors in User mode.
</param>
<param name="graph-legend" value="User CPU" />
</leaf>
<leaf name="System_CPU">
<param name="snmp-object" value="$hpuxSystemSysCPU.0"/>
<param name="rrd-ds" value="hpuxSystemSysCPU" />
<param name="rrd-create-dstype" value="COUNTER" />
<param name="comment">
Average time in seconds spent by all processors in System mode.
</param>
<param name="graph-legend" value="System CPU" />
</leaf>
<leaf name="Idle_CPU">
<param name="snmp-object" value="$hpuxSystemIdleCPU.0"/>
<param name="rrd-ds" value="hpuxSystemIdleCPU" />
<param name="rrd-create-dstype" value="COUNTER" />
<param name="comment">
Average time in seconds spent by all processors in Idle mode.
</param>
<param name="graph-legend" value="Idle CPU" />
</leaf>
<leaf name="Nice_CPU">
<param name="snmp-object" value="$hpuxSystemNiceCPU.0"/>
<param name="rrd-ds" value="hpuxSystemNiceCPU" />
<param name="rrd-create-dstype" value="COUNTER" />
<param name="comment">
Average time in seconds spent by all processors in Nice mode.
</param>
<param name="graph-legend" value="Nice CPU" />
</leaf>
</template> <!-- hpux-cpu -->
<template name="hpux-filesystem">
<param name="data-file" value="%system-id%_%filesystem%.rrd" />
<leaf name="FileSystem_Usage_Bytes">
<param name="comment" value="File system usage" />
<param name="ds-type" value="rrd-multigraph" />
<param name="ds-names" value="btotal,bfree,bfreeu" />
<param name="precedence" value="900" />
<param name="ds-expr-btotal" value="{Blocks_Total},1024,*" />
<param name="graph-legend-btotal" value="Blocks Total" />
<param name="line-style-btotal" value="AREA" />
<param name="line-order-btotal" value="1" />
<param name="line-color-btotal" value="#00FF00" />
<param name="ds-expr-bfree" value="{Blocks_Free},1024,*" />
<param name="graph-legend-bfree" value="Blocks Free" />
<param name="line-style-bfree" value="AREA" />
<param name="line-order-bfree" value="2" />
<param name="line-color-bfree" value="#0000FF" />
<param name="ds-expr-bfreeu" value="{Blocks_Avail},1024,*" />
<param name="graph-legend-bfreeu"
value="Blocks Avail. (non-superuser)" />
<param name="line-style-bfreeu" value="AREA" />
<param name="line-order-bfreeu" value="3" />
<param name="line-color-bfreeu" value="#FFFF00" />
</leaf>
<leaf name="Blocks_Total">
<param name="snmp-object" value="$hpuxFileSystemBlock.$FSIDX_DIR"/>
<param name="rrd-ds" value="hpuxFSBlocks" />
<param name="rrd-create-dstype" value="GAUGE" />
<param name="comment">
Total blocks in file system.
</param>
<param name="graph-legend" value="Blocks Total" />
</leaf>
<leaf name="Bytes_Total">
<param name="ds-type" value="rrd-file" />
<param name="leaf-type" value="rrd-cdef" />
<param name="rpn-expr" value="{Blocks_Total},1024,*" />
<param name="comment">
Total bytes in files system.
</param>
<param name="graph-legend" value="Bytes Total" />
</leaf>
<leaf name="Blocks_Free">
<param name="snmp-object" value="$hpuxFileSystemBfree.$FSIDX_DIR"/>
<param name="rrd-ds" value="hpuxFSBfree" />
<param name="rrd-create-dstype" value="GAUGE" />
<param name="comment">
Free blocks in file system.
</param>
<param name="graph-legend" value="Blocks Free" />
</leaf>
<leaf name="Bytes_Free">
<param name="ds-type" value="rrd-file" />
<param name="leaf-type" value="rrd-cdef" />
<param name="rpn-expr" value="{Blocks_Free},1024,*" />
<param name="comment">
Free bytes in files system.
</param>
<param name="graph-legend" value="Bytes Free" />
</leaf>
<leaf name="Blocks_Avail">
<param name="snmp-object" value="$hpuxFileSystemBavail.$FSIDX_DIR"/>
<param name="rrd-ds" value="hpuxFSBavail" />
<param name="rrd-create-dstype" value="GAUGE" />
<param name="comment">
Free blocks avail to non-superuser.
</param>
<param name="graph-legend" value="Blocks Avail" />
</leaf>
<leaf name="Bytes_Avail">
<param name="ds-type" value="rrd-file" />
<param name="leaf-type" value="rrd-cdef" />
<param name="rpn-expr" value="{Blocks_Avail},1024,*" />
<param name="comment">
Free bytes avail to non-superuser.
</param>
<param name="graph-legend" value="Bytes Avail" />
</leaf>
<leaf name="FileSystem_Node">
<param name="comment" value="File system inode usage" />
<param name="ds-type" value="rrd-multigraph" />
<param name="ds-names" value="itotal,ifree" />
<param name="precedence" value="800" />
<param name="ds-expr-itotal" value="{Nodes_Total}" />
<param name="graph-legend-itotal" value="inode Total" />
<param name="graph-legend"
value="%itotal% {itotal} %Nodes_Total% {Nodes_Total}" />
<param name="line-style-itotal" value="AREA" />
<param name="line-order-itotal" value="1" />
<param name="line-color-itotal" value="#00FF00" />
<param name="ds-expr-ifree" value="{Nodes_Free}" />
<param name="graph-legend-ifree" value="inode Free" />
<param name="line-style-ifree" value="AREA" />
<param name="line-order-ifree" value="1" />
<param name="line-color-ifree" value="#0000FF" />
</leaf>
<leaf name="Nodes_Total">
<param name="snmp-object" value="$hpuxFileSystemFiles.$FSIDX_DIR"/>
<param name="rrd-ds" value="hpuxFSFiles" />
<param name="rrd-create-dstype" value="GAUGE" />
<param name="comment">
Total file nodes in file system.
</param>
<param name="graph-legend" value="Nodes Total" />
</leaf>
<leaf name="Nodes_Free">
<param name="snmp-object" value="$hpuxFileSystemFfree.$FSIDX_DIR"/>
<param name="rrd-ds" value="hpuxFSFfree" />
<param name="rrd-create-dstype" value="GAUGE" />
<param name="comment">
Free file nodes in file system.
</param>
<param name="graph-legend" value="Nodes Free" />
</leaf>
</template> <!-- hpux-filesystem -->
</datasources>
</configuration>
|