But is there a way to get only the 2 values below corresponding to "NCE-2" :

HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2".627 = Counter64: 772907009

Thomas BONNEAU

Lumière - Direction des Opérations – projets entreprises

thomas.bonneau@prestataires.lumiere.fr

0172355633

 




De: Bonneau Thomas via observium <observium@lists.observium.org>
Envoyé: Mardi 09 décembre 2025 09:58
À: Observium <observium@observium.org>; Observium <observium@lists.observium.org>
Cc: Bonneau Thomas <thomas.bonneau@prestataires.lumiere.fr>
Objet: [Observium] Re: HUAWEI-ALARM-MIB hwAlarmActiveEntry

Hi,

with the  object hwActiveAlarmId instead of hwAlarmActiveEntry i can now get the values i need.
to get the correct objet :
snmpwalk -v2c -c *** 10.250.122.121 -M /usr/share/snmp/mibs:/opt/observium/mibs/huawei:/opt/observium/mibs/rfc:/opt/observium/mibs -m +HUAWEI-ALARM-MIB .1.3.6.1.4.1.2011.5.25.180.1.8.1.2
HUAWEI-ALARM-MIB::hwActiveAlarmId."N2510".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."N2510".627 = Counter64: 772907009
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-1".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-1".627 = Counter64: 772907009
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2".627 = Counter64: 772907009
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-1-Equi".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-1-Equi".627 = Counter64: 772907009
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2-Equi".626 = Counter64: 772907019
HUAWEI-ALARM-MIB::hwActiveAlarmId."NCE-2-Equi".627 = Counter64: 772907009


Thomas


De: Bonneau Thomas via observium <observium@lists.observium.org>
Envoyé: Lundi 08 décembre 2025 21:09
À: Observium <observium@observium.org>; Observium <observium@lists.observium.org>
Cc: Bonneau Thomas <thomas.bonneau@prestataires.lumiere.fr>
Objet: [Observium] HUAWEI-ALARM-MIB hwAlarmActiveEntry


Hi,

I would like to see in my Observium the active alarms wich are present in my Huawei OLTs.
This alarms are in hwAlarmActiveEntry of the mib HUAWEI-ALARM-MIB.

For exemple :
snmpwalk -v2c -c *** 10.250.122.121 1.3.6.1.4.1.2011.5.25.180.1.8.1.2

iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.50.53.49.48.626 = Counter64: 772907019
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.50.53.49.48.627 = Counter64: 772907009
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.49.626 = Counter64: 772907019
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.49.627 = Counter64: 772907009
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.50.626 = Counter64: 772907019
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.50.627 = Counter64: 772907009
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.10.78.67.69.45.49.45.69.113.117.105.626 = Counter64: 772907019
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.10.78.67.69.45.49.45.69.113.117.105.627 = Counter64: 772907009
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.10.78.67.69.45.50.45.69.113.117.105.626 = Counter64: 772907019
iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.10.78.67.69.45.50.45.69.113.117.105.627 = Counter64: 772907009

moreover the index 626 related to the alarm ID 772907019 is not static. So it is not useful to get iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.50.626. I really need to see the value of every OID in iso.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.50 or iso.3.6.1.4.1.2011.5.25.180.1.8.1.2
 
I tried to add the MIB HUAWEI-ALARM-MIB to the huawei os and to create a sensor but when i look at the result of the discovry, the new mib does not match.

in os/huawei.inc.php
$os_group = 'huawei';
$config['os_group'][$os_group]['mibs'][]      = "HUAWEI-ALARM-MIB";

in mibs/huawei.inc.php
$mib = 'HUAWEI-ALARM-MIB';
$config['mibs'][$mib]['enable'] = 1;
$config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.2011.5.25'; 
$config['mibs'][$mib]['mib_dir'] = 'huawei';
$config['mibs'][$mib]['descr'] = 'HUAWEI ALARM MIB';


$config['mibs'][$mib]['sensor'][] = array('oid' => 'hwAlarmActiveEntry',
                                          'class' => 'volume',
                                          'descr' => 'Alarms ID',
                                          'measured'  => 'chassis',
                                          'oid_num' => '.1.3.6.1.4.1.2011.5.25.180.1.8.1.2');  //or  .1.3.6.1.4.1.2011.5.25.180.1.8.1.2.5.78.67.69.45.50.626


Thank you for your help.

Thomas