Hi,

Bonneau Thomas wrote on 11.02.2025 13:13:
> Hello,
>
> i will user status not sensor.
> 'snmp'             => [ 'noindex' ] does not work in status.
this option should work in rolling updates for now.
probably your install uses stable.

Ok, than support will added in next stable update.

>
> *Thomas BONNEAU*
>
> Lumière - Direction des Opérations – projets entreprises
>
> *[email protected]
> <mailto:[email protected]>_*
>
> *0172355633*
>
>  
>
>
> ------------------------------------------------------------------------
> *De :* Mike Stupalov via observium <[email protected]>
> *Envoyé :* mardi 11 février 2025 12:20
> *À :* Observium <[email protected]>; Bonneau Thomas via
> observium <[email protected]>
> *Cc :* Bonneau Thomas <[email protected]>; Mike
> Stupalov <[email protected]>
> *Objet :* [Observium] Re: TBOX - SNMP line not have index part"
>  
> Hello,
>
>  for latest revisions please use snmp option 'noindex' (instead flags).
>
> Example:
> $config['mibs'][$mib]['sensor'][] = [    'class'            =>
> 'temperature',    'descr'            => 'CPU1 Temperature',    'oid'  
>            => 'cpu1Temperature',    'oid_num'          =>
> '.1.3.6.1.4.1.20632.6.6.4.1',    'min'              => 0,    'scale'  
>          => 1,    'snmp'             => [ 'noindex'] ///
> OBS_SNMP_ALL_NOINDEX /];
>
> And will be better if you send me snmpdump and mib files to me.
> I will add support in main repository. Howto make snmpdump:
>
> Requesting Device Support
> <https://docs.observium.org/developing/add_device/>
>
> Bonneau Thomas via observium wrote on 11.02.2025 00:14:
>
>     I just look at the changelog and get 'snmp_flags' =>
>     OBS_SNMP_ALL_NOINDEX
>     It works perfectly.
>     Thank you.
>
>     *Thomas BONNEAU*
>
>
>      
>
>
>     ------------------------------------------------------------------------
>     *De :* Bonneau Thomas via observium
>     <[email protected]> <mailto:[email protected]>
>     *Envoyé :* dimanche 9 février 2025 15:44
>     *À :* [email protected]
>     <mailto:[email protected]>
>     <[email protected]> <mailto:[email protected]>
>     *Cc :* Bonneau Thomas <[email protected]>
>     <mailto:[email protected]>
>     *Objet :* [Observium] TBOX - SNMP line not have index part"
>      
>     Hello,
>
>     I try to add a new os and a new mib in my Observium.
>     The device is a TBOX from Ovarro.
>     The device is old so the bulk mode does not work.
>
>     I managed to add custom OID.
>
>     I managed to get metadata but sensors and status do not work
>     because ". SNMP line 'prgrun = 1' not have index part"
>
>     Is there a way to make it work?
>
>
>
>     $os = "semaphore-tbox-os";
>     $config['os'][$os]['sysObjectID'][]                 =
>     ".1.3.6.1.4.1.27982";
>     $config['os'][$os]['sysDescr'][]                    =
>     "Configuration Energie-Annexes";
>     $config['os'][$os]['snmp']['nobulk']                = TRUE;
>     $config['os'][$os]['snmp']['max-rep']               = 0;
>     $config['os'][$os]['type']                          = "power";
>     $config['os_group'][$os_group]['mib_blacklist']     =
>     $config['os_group']['default']['mibs'];
>     $config['os'][$os]['mibs'][]                 = "SEMAPHORE-RTU-MIB";
>
>
>
>     $mib = 'SEMAPHORE-RTU-MIB';
>     $config['mibs'][$mib]['enable'] = 1;
>     $config['mibs'][$mib]['mib_dir'] = 'semaphore';
>     $config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.27982';
>     $config['mibs'][$mib]['descr'] = 'Semaphore RTU MIB.';
>     $config['mibs'][$mib]['sysname'][] = array('oid' =>
>     '.1.3.6.1.4.1.27982.1.7.2.23.0');
>     $config['mibs'][$mib]['version'][] = array('oid' =>
>     '.1.3.6.1.4.1.27982.1.7.2.26.0');
>     $config['mibs'][$mib]['sysdescr'][] = array('oid' =>
>     '.1.3.6.1.4.1.27982.1.7.2.23.0');
>     $config['mibs'][$mib]['syslocation'][] = array('oid' =>
>     '.1.3.6.1.4.1.27982.1.7.2.24.0');
>     $config['mibs'][$mib]['sensor'][] = array('oid' => 'prgrun',
>                                               'class' => 'gauge',
>                                               'descr' => 'prgrun',
>                                               'oid_num' =>
>     '.1.3.6.1.4.1.27982.1.7.1.28161');
>     $config['mibs'][$mib]['status'][] = array(
>                                               'oid_num' =>
>     '.1.3.6.1.4.1.27982.1.7.1.20519',
>                                               'oid'       => 'presbat',
>                                               'descr'     => 'presbat',
>                                               'measured'  => 'presbat',
>                                               'type'      => '0ok');
>     $type = '0ok';
>     $config['mibs'][$mib]['states'][$type][0] = array('name' => '0',
>     'event' => 'ok');
>     $config['mibs'][$mib]['states'][$type][1] = array('name' => '1',
>     'event' => 'alert');
>
>
>
>     The debug :
>
>     ] prgrun [
>     CMD[/usr/bin/snmptranslate -On -Pu -m SEMAPHORE-RTU-MIB -M
>     
> /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/semaphore
>     'SEMAPHORE-RTU-MIB::prgrun']
>
>     CMD EXITCODE[0]
>     CMD RUNTIME[0.0094s]
>     STDOUT[
>     .1.3.6.1.4.1.27982.1.7.1.28161
>     ]
>     SNMP TRANSLATE (CMD): 'SEMAPHORE-RTU-MIB::prgrun' ->
>     '.1.3.6.1.4.1.27982.1.7.1.28161'
>     OS-specific no-bulk definition.
>
>     CMD[/usr/bin/snmpwalk -v2c -c *** -Pud -Ih -OQUsb -m
>     SEMAPHORE-RTU-MIB -M
>     
> /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/semaphore
>     'udp':'fth-arch-tbox01-yvfi':'161' prgrun]
>
>     CMD EXITCODE[0]
>     CMD RUNTIME[0.0153s]
>     STDOUT[
>     prgrun = 1
>     ]
>     SNMP STATUS[TRUE]
>     *Warning. SNMP line 'prgrun = 1' not have index part*
>     ]
>      o SEMAPHORE-RTU-MIB    presbat [OS-specific no-bulk definition.
>
>     CMD[/usr/bin/snmpwalk -v2c -c *** -Pud -Ih -OQUsb -m
>     SEMAPHORE-RTU-MIB -M
>     
> /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/semaphore
>     'udp':'fth-arch-tbox01-yvfi':'161' presbat]
>
>     CMD EXITCODE[0]
>     CMD RUNTIME[0.0146s]
>     STDOUT[
>     presbat = 0
>     ]
>     SNMP STATUS[TRUE]
>     Warning. SNMP line 'presbat = 0' not have index part
>     ] disjdepartbt [OS-specific no-bulk definition.
>
>     CMD[/usr/bin/snmpwalk -v2c -c *** -Pud -Ih -OQUsb -m
>     SEMAPHORE-RTU-MIB -M
>     
> /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/semaphore
>     'udp':'fth-arch-tbox01-yvfi':'161' disjdepartbt]
>
>     CMD EXITCODE[0]
>     CMD RUNTIME[0.0144s]
>     STDOUT[
>     disjdepartbt = 0
>     ]
>     SNMP STATUS[TRUE]
>     *Warning. SNMP line 'disjdepartbt = 0' not have index part*
>     ]
>
>
>     Thanks in advance.
>
>
>
>     *Thomas*
>
>     *
>     *
>
>      
>
>
>
>     _______________________________________________ observium mailing
>     list -- [email protected]
>     <mailto:[email protected]> To unsubscribe send an
>     email to [email protected]
>     <mailto:[email protected]> 
>
>
> --
> Mike Stupalov,
> Discord channel: https://discord.gg/GjpNXKWm8W
> Observium Limited, https://observium.org
>

-- 
Mike Stupalov,
Discord channel: https://discord.gg/GjpNXKWm8W
Observium Limited, https://observium.org

_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to