I would like to use the checkmk built-in plugins huawei_switch_stack and huawei_switch_temp to monitor stackvalues and temperature of our Huawei S5735-L48LP4XE-A-V2 switches.
I thought that no special configuration is needed, and plugins “work” automatically at service discovery, but they don’t.
I can monitor interfaces and fans, so the plugin huawei_switch_fan works.
How can I get the plugins huawei_switch_stack and huawei_switch_temp work?
Perhaps our switches are not compatible?
Thank you Andreas!
I would love to check that, but no matter what I do, snmpwalk tells me Timeout: No Response from X.X.X.X
I am confused since I have snmp data in checkmk
Hi Andreas,
like @jan.filo I can query this table. Sorry, my knowledge of snmp is limited - how can this table help us getting the temperature values in cmk?
Some more information is fetched from these checks. Also the table “.1.3.6.1.2.1.47.1.1.1.1”, this table is not needed by the fan check. It is possible that the data from there is not matching with this table you already fetched.
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,
]
I had some other things to do and lost sight of the topic, sorry.
So how can we achieve our goal? Do you think there is a solution?
I still remember checking our old HP UPS, I used a legacy check that simply executed an SNMP command with the appropriate OID. Wouldn’t something like that be possible here too?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.