From ec08c45c432fa5e9babdc5e7255ef4144ccd7cd9 Mon Sep 17 00:00:00 2001 From: Bastian Kuhn Date: Fri, 3 Jul 2026 14:33:25 +0200 Subject: [PATCH] cisco_ucs: detect standalone CIMC and newer UCS C-series servers The cisco_ucs_* checks were gated behind a fixed whitelist of sysObjectIDs (.1.3.6.1.2.1.1.2.0). Standalone Cisco IMC (CIMC) appliances and newer UCS C-series models -- e.g. SNS-8355-K9 / UCS C225 M8 (sysObjectID .1.3.6.1.4.1.9.1.2820) -- are not on that list, so none of the cisco_ucs_* services were discovered although the device fully serves the CISCO-UNIFIED-COMPUTING-MIB (.1.3.6.1.4.1.9.9.719). Broaden DETECT to additionally match any device exposing the UCS compute rack-unit operability column (cucsComputeRackUnitOperability, .1.3.6.1.4.1.9.9.719.1.9.35.1.43), covering standalone CIMC / C-series appliances. --- cmk/plugins/cisco/lib_ucs.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmk/plugins/cisco/lib_ucs.py b/cmk/plugins/cisco/lib_ucs.py index 44b1cf917d6..b352130feb9 100644 --- a/cmk/plugins/cisco/lib_ucs.py +++ b/cmk/plugins/cisco/lib_ucs.py @@ -8,7 +8,7 @@ from enum import Enum from typing import assert_never, Final, Literal -from cmk.agent_based.v2 import any_of, CheckResult, contains, Result, State +from cmk.agent_based.v2 import any_of, CheckResult, contains, exists, Result, State DETECT = any_of( contains(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.9.1.1682"), @@ -21,6 +21,13 @@ contains(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.9.1.2492"), contains(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.9.1.2493"), contains(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.9.1.3100"), + # Standalone Cisco IMC (CIMC) appliances and newer UCS C-series models -- + # e.g. SNS-8355-K9 / UCS C225 M8 -- report a sysObjectID that is not on the + # whitelist above, so none of the cisco_ucs_* services were discovered even + # though the device fully serves the CISCO-UNIFIED-COMPUTING-MIB. Match any + # device that exposes the UCS compute rack-unit operability column + # (cucsComputeRackUnitOperability) as well. + exists(".1.3.6.1.4.1.9.9.719.1.9.35.1.43.*"), )