Well that table is inside legacy includes which i presume all Huawei checks should use.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 Checkmk GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.
# type: ignore[list-item,import,assignment,misc,operator] # TODO: see which are needed in this file
from cmk.base.check_api import OID_END
import collections
def huawei_switch_scan_function(oid):
return ".1.3.6.1.4.1.2011.2.23" in oid(".1.3.6.1.2.1.1.2.0")
def huawei_entity_specific_snmp_info(snmp_info):
"""
Used for the 'snmp_info' of a check to retrieve values that are indexed by a
entPhyisicalIndex. See parse_huawei_physical_entity_values() for a detailed description.
"""
return [
(
'.1.3.6.1.2.1.47.1.1.1.1',
[OID_END, "7"],
), # retrieve list of [entPhysicalIndex, entPhysicalName]
snmp_info,
]