[BACK]Return to OPENBSD-SENSORS-MIB.txt CVS log [TXT][DIR] Up to [local] / src / share / snmp

Annotation of src/share/snmp/OPENBSD-SENSORS-MIB.txt, Revision 1.3

1.3     ! sthen       1: -- $OpenBSD: OPENBSD-SENSORS-MIB.txt,v 1.2 2012/01/31 18:24:58 joel Exp $
1.1       reyk        2: --
1.2       joel        3: -- Copyright (c) 2006-2007 Joel Knight <knight.joel@gmail.com>
1.1       reyk        4: --
                      5: -- Permission to use, copy, modify, and distribute this document for any
                      6: -- purpose with or without fee is hereby granted, provided that the above
                      7: -- copyright notice and this permission notice appear in all copies.
                      8: --
                      9: -- THE DOCUMENT IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10: -- WITH REGARD TO THIS DOCUMENT INCLUDING ALL IMPLIED WARRANTIES OF
                     11: -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12: -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13: -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14: -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15: -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS DOCUMENT.
                     16:
                     17: OPENBSD-SENSORS-MIB DEFINITIONS ::= BEGIN
                     18:
                     19: IMPORTS
                     20:        MODULE-IDENTITY, NOTIFICATION-TYPE, OBJECT-TYPE,
                     21:            Integer32, Unsigned32, TimeTicks, enterprises
                     22:            FROM SNMPv2-SMI
                     23:        openBSD
                     24:            FROM OPENBSD-BASE-MIB
                     25:        MODULE-COMPLIANCE, OBJECT-GROUP
                     26:            FROM SNMPv2-CONF;
                     27:
                     28: sensorsMIBObjects MODULE-IDENTITY
1.3     ! sthen      29:        LAST-UPDATED "201201310000Z"
1.1       reyk       30:        ORGANIZATION "OpenBSD"
                     31:        CONTACT-INFO
                     32:            "Editor:    Reyk Floeter
                     33:            EMail:      reyk@openbsd.org
                     34:            WWW:        http://www.openbsd.org/
                     35:
                     36:            Editor:     Joel Knight
1.2       joel       37:            EMail:      knight.joel@gmail.com
                     38:            WWW:        http://www.packetmischief.ca/openbsd-snmp-mibs/"
1.1       reyk       39:        DESCRIPTION
                     40:            "The MIB module for gathering information from
                     41:            OpenBSD's kernel sensor framework."
1.3     ! sthen      42:        REVISION "201201310000Z"
        !            43:        DESCRIPTION
        !            44:            "Update email address."
1.1       reyk       45:        REVISION "200812230000Z"
                     46:        DESCRIPTION
                     47:            "Updated for MIB for the OpenBSD snmpd(8) implementation."
                     48:        ::= { openBSD 2 }
                     49:
                     50: --
                     51: -- Define the sections of the MIB
                     52: --
                     53:
                     54: sensors                OBJECT IDENTIFIER ::= { sensorsMIBObjects 1 }
                     55:
                     56: --
                     57: -- MIB definitions
                     58: --
                     59:
                     60: sensorNumber  OBJECT-TYPE
                     61:        SYNTAX          Integer32
                     62:        MAX-ACCESS      read-only
                     63:        STATUS          current
                     64:        DESCRIPTION
                     65:            "The number of sensors present on this system."
                     66:        ::= { sensors 1 }
                     67:
                     68: sensorTable OBJECT-TYPE
                     69:        SYNTAX          SEQUENCE OF SensorEntry
                     70:        MAX-ACCESS      not-accessible
                     71:        STATUS          current
                     72:        DESCRIPTION
                     73:            "A list of individual sensors. The number of entries is
                     74:            given by the value of sensorNumber."
                     75:        ::= { sensors 2 }
                     76:
                     77: sensorEntry OBJECT-TYPE
                     78:        SYNTAX          SensorEntry
                     79:        MAX-ACCESS      not-accessible
                     80:        STATUS          current
                     81:        DESCRIPTION
                     82:            "An entry containing management information applicable to a
                     83:            particular sensor."
                     84:        INDEX           { sensorIndex }
                     85:        ::= { sensorTable 1 }
                     86:
                     87: SensorEntry ::= SEQUENCE {
                     88:        sensorIndex     Integer32,
                     89:        sensorDescr     OCTET STRING,
                     90:        sensorType      INTEGER,
                     91:        sensorDevice    OCTET STRING,
                     92:        sensorValue     OCTET STRING,
                     93:        sensorUnits     OCTET STRING,
                     94:        sensorStatus    INTEGER
                     95: }
                     96:
                     97: sensorIndex OBJECT-TYPE
                     98:        SYNTAX          Integer32 (1..2147483647)
                     99:        MAX-ACCESS      read-only
                    100:        STATUS          current
                    101:        DESCRIPTION
                    102:            "A unique value, greater than zero, for each sensor."
                    103:        ::= { sensorEntry 1 }
                    104:
                    105: sensorDescr OBJECT-TYPE
                    106:        SYNTAX          OCTET STRING
                    107:        MAX-ACCESS      read-only
                    108:        STATUS          current
                    109:        DESCRIPTION
                    110:            "A description of the sensor indicating what information the
                    111:            sensor is monitoring."
                    112:        ::= { sensorEntry 2 }
                    113:
                    114: sensorType OBJECT-TYPE
                    115:        SYNTAX          INTEGER {
                    116:                                temperature(0),
                    117:                                fan(1),
                    118:                                voltsdc(2),
                    119:                                voltsac(3),
                    120:                                resistance(4),
                    121:                                power(5),
                    122:                                current(6),
                    123:                                watthour(7),
                    124:                                amphour(8),
                    125:                                indicator(9),
                    126:                                raw(10),
                    127:                                percent(11),
                    128:                                illuminance(12),
                    129:                                drive(13),
                    130:                                timedelta(14)
                    131:                        }
                    132:        MAX-ACCESS      read-only
                    133:        STATUS          current
                    134:        DESCRIPTION
                    135:            "Indicates the type of sensor."
                    136:        ::= { sensorEntry 3 }
                    137:
                    138: sensorDevice OBJECT-TYPE
                    139:        SYNTAX          OCTET STRING
                    140:        MAX-ACCESS      read-only
                    141:        STATUS          current
                    142:        DESCRIPTION
                    143:            "The name of the sensor driver that provides the sensor."
                    144:        ::= { sensorEntry 4 }
                    145:
                    146: sensorValue OBJECT-TYPE
                    147:        SYNTAX          OCTET STRING
                    148:        MAX-ACCESS      read-only
                    149:        STATUS          current
                    150:        DESCRIPTION
                    151:            "The value the sensor is currently reporting."
                    152:        ::= { sensorEntry 5 }
                    153:
                    154: sensorUnits OBJECT-TYPE
                    155:        SYNTAX          OCTET STRING
                    156:        MAX-ACCESS      read-only
                    157:        STATUS          current
                    158:        DESCRIPTION
                    159:            "The units that the sensor reports in."
                    160:        ::= { sensorEntry 6 }
                    161:
                    162: sensorStatus OBJECT-TYPE
                    163:        SYNTAX          INTEGER {
                    164:                                unspecified(0),
                    165:                                ok(1),
                    166:                                warn(2),
                    167:                                critical(3),
                    168:                                unknown(4)
                    169:                        }
                    170:        MAX-ACCESS      read-only
                    171:        STATUS          current
                    172:        DESCRIPTION
                    173:            "Indicates whether the sensor value is within an acceptable
                    174:            range."
                    175:        ::= { sensorEntry 7 }
                    176:
                    177: END