
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

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 observium@lists.observium.org Envoyé : dimanche 9 février 2025 15:44 À : observium@lists.observium.org observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr 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

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 observium@lists.observium.org *Envoyé :* dimanche 9 février 2025 15:44 *À :* observium@lists.observium.org observium@lists.observium.org *Cc :* Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr *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 -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org

Hello,
i will user status not sensor. 'snmp' => [ 'noindex' ] does not work in status.
Thomas BONNEAU
Lumière - Direction des Opérations – projets entreprises
thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr
0172355633
________________________________ De : Mike Stupalov via observium observium@lists.observium.org Envoyé : mardi 11 février 2025 12:20 À : Observium observium@lists.observium.org; Bonneau Thomas via observium observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr; Mike Stupalov mike@observium.org 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 Supporthttps://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 observium@lists.observium.orgmailto:observium@lists.observium.org Envoyé : dimanche 9 février 2025 15:44 À : observium@lists.observium.orgmailto:observium@lists.observium.org observium@lists.observium.orgmailto:observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr 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 -- observium@lists.observium.orgmailto:observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
-- Mike Stupalov, Discord channel: https://discord.gg/GjpNXKWm8W Observium Limited, https://observium.org

Please find the mib and the dump.
________________________________ De : Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr Envoyé : mardi 11 février 2025 13:13 À : Observium observium@lists.observium.org; Observium observium@lists.observium.org Cc : Mike Stupalov mike@observium.org Objet : RE: [Observium] Re: TBOX - SNMP line not have index part"
Hello,
i will user status not sensor. 'snmp' => [ 'noindex' ] does not work in status.
Thomas BONNEAU
Lumière - Direction des Opérations – projets entreprises
thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr
0172355633
________________________________ De : Mike Stupalov via observium observium@lists.observium.org Envoyé : mardi 11 février 2025 12:20 À : Observium observium@lists.observium.org; Bonneau Thomas via observium observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr; Mike Stupalov mike@observium.org 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 Supporthttps://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 observium@lists.observium.orgmailto:observium@lists.observium.org Envoyé : dimanche 9 février 2025 15:44 À : observium@lists.observium.orgmailto:observium@lists.observium.org observium@lists.observium.orgmailto:observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr 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 -- observium@lists.observium.orgmailto:observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
-- Mike Stupalov, Discord channel: https://discord.gg/GjpNXKWm8W Observium Limited, https://observium.org

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
*_thomas.bonneau@prestataires.lumiere.fr mailto:thomas.bonneau@prestataires.lumiere.fr_*
*0172355633*
*De :* Mike Stupalov via observium observium@lists.observium.org *Envoyé :* mardi 11 février 2025 12:20 *À :* Observium observium@lists.observium.org; Bonneau Thomas via observium observium@lists.observium.org *Cc :* Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr; Mike Stupalov mike@observium.org *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 <observium@lists.observium.org> <mailto:observium@lists.observium.org> *Envoyé :* dimanche 9 février 2025 15:44 *À :* observium@lists.observium.org <mailto:observium@lists.observium.org> <observium@lists.observium.org> <mailto:observium@lists.observium.org> *Cc :* Bonneau Thomas <thomas.bonneau@prestataires.lumiere.fr> <mailto:thomas.bonneau@prestataires.lumiere.fr> *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 -- observium@lists.observium.org <mailto:observium@lists.observium.org> To unsubscribe send an email to observium-leave@lists.observium.org <mailto:observium-leave@lists.observium.org>
-- Mike Stupalov, Discord channel: https://discord.gg/GjpNXKWm8W Observium Limited, https://observium.org

yes I use the stable version.
Thomas BONNEAU
Lumière - Direction des Opérations – projets entreprises
thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr
0172355633
________________________________ De : Mike Stupalov mike@observium.org Envoyé : mardi 11 février 2025 14:16 À : Bonneau Thomas thomas.bonneau@prestataires.lumiere.fr Cc : Observium observium@lists.observium.org Objet : Re: [Observium] Re: TBOX - SNMP line not have index part"
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
thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr
0172355633
________________________________ De : Mike Stupalov via observium observium@lists.observium.orgmailto:observium@lists.observium.org Envoyé : mardi 11 février 2025 12:20 À : Observium observium@lists.observium.orgmailto:observium@lists.observium.org; Bonneau Thomas via observium observium@lists.observium.orgmailto:observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr; Mike Stupalov mike@observium.orgmailto:mike@observium.org 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 Supporthttps://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 observium@lists.observium.orgmailto:observium@lists.observium.org Envoyé : dimanche 9 février 2025 15:44 À : observium@lists.observium.orgmailto:observium@lists.observium.org observium@lists.observium.orgmailto:observium@lists.observium.org Cc : Bonneau Thomas thomas.bonneau@prestataires.lumiere.frmailto:thomas.bonneau@prestataires.lumiere.fr 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 -- observium@lists.observium.orgmailto:observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
-- 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
participants (2)
-
Bonneau Thomas
-
Mike Stupalov