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
|
-- $OpenBSD: OPENBSD-SENSORS-MIB.txt,v 1.1 2008/12/23 18:32:10 reyk Exp $
--
-- Copyright (c) 2006-2007 Joel Knight <enabled@myrealbox.com>
--
-- Permission to use, copy, modify, and distribute this document for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE DOCUMENT IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS DOCUMENT INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS DOCUMENT.
OPENBSD-SENSORS-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, NOTIFICATION-TYPE, OBJECT-TYPE,
Integer32, Unsigned32, TimeTicks, enterprises
FROM SNMPv2-SMI
openBSD
FROM OPENBSD-BASE-MIB
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF;
sensorsMIBObjects MODULE-IDENTITY
LAST-UPDATED "200612100000Z"
ORGANIZATION "OpenBSD"
CONTACT-INFO
"Editor: Reyk Floeter
EMail: reyk@openbsd.org
WWW: http://www.openbsd.org/
Editor: Joel Knight
EMail: enabled@myrealbox.com
WWW: http://www.packetmischief.ca/openbsd/snmp/"
DESCRIPTION
"The MIB module for gathering information from
OpenBSD's kernel sensor framework."
REVISION "200812230000Z"
DESCRIPTION
"Updated for MIB for the OpenBSD snmpd(8) implementation."
::= { openBSD 2 }
--
-- Define the sections of the MIB
--
sensors OBJECT IDENTIFIER ::= { sensorsMIBObjects 1 }
--
-- MIB definitions
--
sensorNumber OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The number of sensors present on this system."
::= { sensors 1 }
sensorTable OBJECT-TYPE
SYNTAX SEQUENCE OF SensorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"A list of individual sensors. The number of entries is
given by the value of sensorNumber."
::= { sensors 2 }
sensorEntry OBJECT-TYPE
SYNTAX SensorEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"An entry containing management information applicable to a
particular sensor."
INDEX { sensorIndex }
::= { sensorTable 1 }
SensorEntry ::= SEQUENCE {
sensorIndex Integer32,
sensorDescr OCTET STRING,
sensorType INTEGER,
sensorDevice OCTET STRING,
sensorValue OCTET STRING,
sensorUnits OCTET STRING,
sensorStatus INTEGER
}
sensorIndex OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A unique value, greater than zero, for each sensor."
::= { sensorEntry 1 }
sensorDescr OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"A description of the sensor indicating what information the
sensor is monitoring."
::= { sensorEntry 2 }
sensorType OBJECT-TYPE
SYNTAX INTEGER {
temperature(0),
fan(1),
voltsdc(2),
voltsac(3),
resistance(4),
power(5),
current(6),
watthour(7),
amphour(8),
indicator(9),
raw(10),
percent(11),
illuminance(12),
drive(13),
timedelta(14)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates the type of sensor."
::= { sensorEntry 3 }
sensorDevice OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of the sensor driver that provides the sensor."
::= { sensorEntry 4 }
sensorValue OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The value the sensor is currently reporting."
::= { sensorEntry 5 }
sensorUnits OBJECT-TYPE
SYNTAX OCTET STRING
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The units that the sensor reports in."
::= { sensorEntry 6 }
sensorStatus OBJECT-TYPE
SYNTAX INTEGER {
unspecified(0),
ok(1),
warn(2),
critical(3),
unknown(4)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Indicates whether the sensor value is within an acceptable
range."
::= { sensorEntry 7 }
END
|