Index: includes/definitions/os/huawei.inc.php =================================================================== --- includes/definitions/os/huawei.inc.php (revision 14968) +++ includes/definitions/os/huawei.inc.php (working copy) @@ -214,6 +214,26 @@ // EMAP-MIB::hwSiteName.0 = STRING: "Huawei eMap" 'EMAP-MIB::hwSiteName.0' => '/^Huawei/', ]; + +// Local addition, 2026-09-29. Upstream rule requires hwSiteName to start with +// "Huawei", but hwSiteName is a user-configurable site label and breaks as soon as it +// is renamed. Match on read-only objects instead. + +// Legacy GSE200M site controller (ETP4890): generic Net-SNMP identity, +// manufacturer string is read-only and vendor-fixed. +$config['os'][$os]['discovery'][] = [ + 'sysObjectID' => '.1.3.6.1.4.1.8072.3.2.10', + 'sysDescr' => '/^Linux GSE200M/', + // EMAP-MIB::hwMonEquipManufacturer.1 = STRING: "HUAWEI" + 'EMAP-MIB::hwMonEquipManufacturer.1' => '/^HUAWEI/i', +]; + +// SMU11B and similar controllers report a node inside the EMAP-MIB tree as sysObjectID. +$config['os'][$os]['discovery'][] = [ + // sysObjectID = .1.3.6.1.4.1.2011.6.164.1.2 (hwSiteMonitors), sysDescr = "SMU11B" + 'sysObjectID' => '.1.3.6.1.4.1.2011.6.164.', +]; + $config['os'][$os]['mibs'][] = "EMAP-MIB"; $model = "huawei";