-- =============================================================================
-- Copyright (C) 2022 by HUAWEI TECHNOLOGIES. All rights reserved.
--
-- Description:
-- Reference: Huawei Enterprise MIB
-- Version: V1.01
-- History:
--          V1.00 The initial version created by luozhendong 00649740.
-- =============================================================================

HUAWEI-KPI-MONITOR-MIB DEFINITIONS ::= BEGIN

  IMPORTS
      huaweiUtility
            FROM HUAWEI-MIB
      OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP
        FROM SNMPv2-CONF
        Gauge32, Counter64, IpAddress, OBJECT-TYPE, MODULE-IDENTITY, NOTIFICATION-TYPE
      FROM SNMPv2-SMI
        enterprises
        FROM RFC1155-SMI
            DateAndTime
      FROM SNMPv2-TC;

    -- 1.3.6.1.4.1.2011.6.189
    hwKpiMonitor MODULE-IDENTITY
            LAST-UPDATED "202211021026Z"        --  November 02, 2022 at 10:26 GMT+8
            ORGANIZATION
                "Huawei Technologies Co.,Ltd."
            CONTACT-INFO
                "Huawei Industrial Base
                                  Bantian, Longgang
                                  Shenzhen 518129
                                  People's Republic of China
                                  Website: http://www.huawei.com
                                  Email: support@huawei.com"
            DESCRIPTION
                "V1.01
                The HUAWEI-KPI-MONITOR-MIB contains objects to manage the kpi monitor module."

                REVISION    "202211021026Z"
                DESCRIPTION "In V1.01, TrapObjects is added to the corresponding trap at 2022-11-02."

                REVISION    "202209231817Z"
                DESCRIPTION "V1.00 created at 2022-9-23."

            ::= { huaweiUtility 189 }


-- ===============================================
-- Node definitions
-- ===============================================

    -- 1.3.6.1.4.1.2011
    --huawei OBJECT IDENTIFIER ::= { enterprises 2011 }

    -- 1.3.6.1.4.1.2011.6
    --huaweiUtility OBJECT IDENTIFIER ::= { huawei 6 }


    hwKpiMonNotification OBJECT IDENTIFIER ::= { hwKpiMonitor 0 }
    hwKpiMonTrapObject OBJECT IDENTIFIER ::= { hwKpiMonNotification 1 }
    hwKpiMonTraps OBJECT IDENTIFIER ::= { hwKpiMonNotification 2 }

-- ===============================================
-- TrapObject.
-- ===============================================

      -- 1.3.6.1.4.1.2011.6.189.0.1.1
	hwKpiMonSlot OBJECT-TYPE
	SYNTAX Gauge32  
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "The id of slot."
	::= { hwKpiMonTrapObject 1 }
  
      -- 1.3.6.1.4.1.2011.6.189.0.1.2
	hwKpiMonCpu OBJECT-TYPE
	SYNTAX Gauge32   
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "The id of cpu."
	::= { hwKpiMonTrapObject 2 }

      -- 1.3.6.1.4.1.2011.6.189.0.1.3
	hwKpiMonChip OBJECT-TYPE
	SYNTAX Gauge32   
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "The id of chip."
	::= { hwKpiMonTrapObject 3 }

      -- 1.3.6.1.4.1.2011.6.189.0.1.4
	hwKpiMonType OBJECT-TYPE
	SYNTAX OCTET STRING   
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "The type of monitoring."
	::= { hwKpiMonTrapObject 4 }

      -- 1.3.6.1.4.1.2011.6.189.0.1.5
	hwKpiMonPreviousValue OBJECT-TYPE
	SYNTAX Counter64   
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "Average number of drop packets rate before suddenly changes."
	::= { hwKpiMonTrapObject 5 }

    -- 1.3.6.1.4.1.2011.6.189.0.1.6
	hwKpiMonCurrentValue OBJECT-TYPE
	SYNTAX Counter64   
	MAX-ACCESS accessible-for-notify
	STATUS current
	DESCRIPTION
	    "The number of drop packets rate at the current time."
	::= { hwKpiMonTrapObject 6 }

-- ===============================================
-- definition of traps.
-- ===============================================

      -- 1.3.6.1.4.1.2011.6.189.0.2.1
      hwDropSuddenChangeNotice NOTIFICATION-TYPE
      OBJECTS { hwKpiMonPreviousValue, hwKpiMonCurrentValue, hwKpiMonSlot, hwKpiMonCpu, hwKpiMonChip, hwKpiMonType }
      STATUS     current
      DESCRIPTION
          "The number of packets loss rate suddenly increases and exceeds the preset threshold."
      ::= {hwKpiMonTraps 1}

      -- 1.3.6.1.4.1.2011.6.189.0.2.2
      hwDropSuddenChangeClear NOTIFICATION-TYPE
      OBJECTS { hwKpiMonCurrentValue, hwKpiMonSlot, hwKpiMonCpu, hwKpiMonChip, hwKpiMonType }
      STATUS     current
      DESCRIPTION
          "The number of packets loss rate falls below the threshold."
      ::= {hwKpiMonTraps 2}

  END

--
-- HUAWEI-KPI-MONITOR-MIB.mib
--
