[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.1

1.1     ! reyk        1: -- $OpenBSD$
        !             2: --
        !             3: -- Copyright (c) 2006-2007 Joel Knight <enabled@myrealbox.com>
        !             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
        !            29:        LAST-UPDATED "200612100000Z"
        !            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
        !            37:            EMail:      enabled@myrealbox.com
        !            38:            WWW:        http://www.packetmischief.ca/openbsd/snmp/"
        !            39:        DESCRIPTION
        !            40:            "The MIB module for gathering information from
        !            41:            OpenBSD's kernel sensor framework."
        !            42:        REVISION "200812230000Z"
        !            43:        DESCRIPTION
        !            44:            "Updated for MIB for the OpenBSD snmpd(8) implementation."
        !            45:        ::= { openBSD 2 }
        !            46:
        !            47: --
        !            48: -- Define the sections of the MIB
        !            49: --
        !            50:
        !            51: sensors                OBJECT IDENTIFIER ::= { sensorsMIBObjects 1 }
        !            52:
        !            53: --
        !            54: -- MIB definitions
        !            55: --
        !            56:
        !            57: sensorNumber  OBJECT-TYPE
        !            58:        SYNTAX          Integer32
        !            59:        MAX-ACCESS      read-only
        !            60:        STATUS          current
        !            61:        DESCRIPTION
        !            62:            "The number of sensors present on this system."
        !            63:        ::= { sensors 1 }
        !            64:
        !            65: sensorTable OBJECT-TYPE
        !            66:        SYNTAX          SEQUENCE OF SensorEntry
        !            67:        MAX-ACCESS      not-accessible
        !            68:        STATUS          current
        !            69:        DESCRIPTION
        !            70:            "A list of individual sensors. The number of entries is
        !            71:            given by the value of sensorNumber."
        !            72:        ::= { sensors 2 }
        !            73:
        !            74: sensorEntry OBJECT-TYPE
        !            75:        SYNTAX          SensorEntry
        !            76:        MAX-ACCESS      not-accessible
        !            77:        STATUS          current
        !            78:        DESCRIPTION
        !            79:            "An entry containing management information applicable to a
        !            80:            particular sensor."
        !            81:        INDEX           { sensorIndex }
        !            82:        ::= { sensorTable 1 }
        !            83:
        !            84: SensorEntry ::= SEQUENCE {
        !            85:        sensorIndex     Integer32,
        !            86:        sensorDescr     OCTET STRING,
        !            87:        sensorType      INTEGER,
        !            88:        sensorDevice    OCTET STRING,
        !            89:        sensorValue     OCTET STRING,
        !            90:        sensorUnits     OCTET STRING,
        !            91:        sensorStatus    INTEGER
        !            92: }
        !            93:
        !            94: sensorIndex OBJECT-TYPE
        !            95:        SYNTAX          Integer32 (1..2147483647)
        !            96:        MAX-ACCESS      read-only
        !            97:        STATUS          current
        !            98:        DESCRIPTION
        !            99:            "A unique value, greater than zero, for each sensor."
        !           100:        ::= { sensorEntry 1 }
        !           101:
        !           102: sensorDescr OBJECT-TYPE
        !           103:        SYNTAX          OCTET STRING
        !           104:        MAX-ACCESS      read-only
        !           105:        STATUS          current
        !           106:        DESCRIPTION
        !           107:            "A description of the sensor indicating what information the
        !           108:            sensor is monitoring."
        !           109:        ::= { sensorEntry 2 }
        !           110:
        !           111: sensorType OBJECT-TYPE
        !           112:        SYNTAX          INTEGER {
        !           113:                                temperature(0),
        !           114:                                fan(1),
        !           115:                                voltsdc(2),
        !           116:                                voltsac(3),
        !           117:                                resistance(4),
        !           118:                                power(5),
        !           119:                                current(6),
        !           120:                                watthour(7),
        !           121:                                amphour(8),
        !           122:                                indicator(9),
        !           123:                                raw(10),
        !           124:                                percent(11),
        !           125:                                illuminance(12),
        !           126:                                drive(13),
        !           127:                                timedelta(14)
        !           128:                        }
        !           129:        MAX-ACCESS      read-only
        !           130:        STATUS          current
        !           131:        DESCRIPTION
        !           132:            "Indicates the type of sensor."
        !           133:        ::= { sensorEntry 3 }
        !           134:
        !           135: sensorDevice OBJECT-TYPE
        !           136:        SYNTAX          OCTET STRING
        !           137:        MAX-ACCESS      read-only
        !           138:        STATUS          current
        !           139:        DESCRIPTION
        !           140:            "The name of the sensor driver that provides the sensor."
        !           141:        ::= { sensorEntry 4 }
        !           142:
        !           143: sensorValue OBJECT-TYPE
        !           144:        SYNTAX          OCTET STRING
        !           145:        MAX-ACCESS      read-only
        !           146:        STATUS          current
        !           147:        DESCRIPTION
        !           148:            "The value the sensor is currently reporting."
        !           149:        ::= { sensorEntry 5 }
        !           150:
        !           151: sensorUnits OBJECT-TYPE
        !           152:        SYNTAX          OCTET STRING
        !           153:        MAX-ACCESS      read-only
        !           154:        STATUS          current
        !           155:        DESCRIPTION
        !           156:            "The units that the sensor reports in."
        !           157:        ::= { sensorEntry 6 }
        !           158:
        !           159: sensorStatus OBJECT-TYPE
        !           160:        SYNTAX          INTEGER {
        !           161:                                unspecified(0),
        !           162:                                ok(1),
        !           163:                                warn(2),
        !           164:                                critical(3),
        !           165:                                unknown(4)
        !           166:                        }
        !           167:        MAX-ACCESS      read-only
        !           168:        STATUS          current
        !           169:        DESCRIPTION
        !           170:            "Indicates whether the sensor value is within an acceptable
        !           171:            range."
        !           172:        ::= { sensorEntry 7 }
        !           173:
        !           174: END