Add internal Observium MIBS to Discovery/Poll of a device | Observium Community Edition 23.1.12493
Hello all,
When I do a snmpwalk in the CLI with the following parameters I see everything as it should be.
./snmpwalk -v3 -a SHA -A SHAPASS -x AES-256-C -X AES256PASS -l authPriv -u AUTHPRIVUSER FQDN -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nokia:/opt/observium/mibs/alcatel:/opt/observium/mibs/alcatel-ent -m TROPIC-SYSTEM-MIB
However, Observium only ever sees the following when doing a manual discovery in the CLI, and doesn't take everything into account because I can't specify the mibs and the corresponding mib file.
./discovery.php -h 137 -dd
... ... ##### Starting discovery run at 2023-02-24 13:04:57 #####
SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `device_id` = '137' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] ROWS[1] SQL RUNTIME[0.00030303s]
CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x 'AES-256-C' -X 'AES256PASS' -a 'SHA' -A 'SHAPASS' -u 'AUTHPRIVUSER' -Pud -OQUsn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'FQDN':'161' .1.3.6.1.2.1.1.2.0 .1.3.6.1.2.1.1.3.0]
CMD EXITCODE[0] CMD RUNTIME[0.0559s] STDOUT[ .1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.7483.1.3.1.6 .1.3.6.1.2.1.1.3.0 = 7:2:50:08.76 ] SNMP STATUS[TRUE] ... ...
So I added the following to the observium config file
$os = "nokia-xwdm"; $config['os'][$os]['text'] = "Nokia xWDM"; $config['os'][$os]['type'] = "optical"; $config['os'][$os]['vendor'] = "Nokia"; $config['os'][$os]['icon'] = "optical"; $config['os'][$os]['sysObjectID'][] = ".1.3.6.1.4.1.7483.1.3.1.6"; $config['os'][$os]['sysDescr'][] = "/^Nokia 1830 PSS/"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
In addition, I have created the following two files, as I understood it in the instructions of Observium.
/opt/observium/includes/definitions/os/nokia.inc.php $os = "nokia-xwdm"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
/opt/observium/includes/definitions/mibs/nokia.inc.php $mib = 'TROPIC-SYSTEM-MIB'; $config['mibs'][$mib]['enable'] = 1; $config['mibs'][$mib]['mib_dir'] = 'nokia'; $config['mibs'][$mib]['descr'] = 'The system MIB for Nokia network elements.';
Unfortunately this is not successful and I am going in circles, can someone please give me an example how I can do this correctly so that Observium either always considers all MIB files cleanly, or I explicitly respectively from the beginning cleanly correctly discovered without me having to make this assignment for the OS in the Observium configuration file.
Best regards
Alisha
Hi,
It’s not really clear what you expect to happen.
You’ve not added anything to actually be collected from this MIB, so nothing will be.
There doesn’t really seem to be much in that MIB we would collect in any case.
Adam.
Sent from my iPhone
On 24 Feb 2023, at 13:35, Alisha Manuela Stutz via observium observium@lists.observium.org wrote:
Hello all,
When I do a snmpwalk in the CLI with the following parameters I see everything as it should be.
./snmpwalk -v3 -a SHA -A SHAPASS -x AES-256-C -X AES256PASS -l authPriv -u AUTHPRIVUSER FQDN -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nokia:/opt/observium/mibs/alcatel:/opt/observium/mibs/alcatel-ent -m TROPIC-SYSTEM-MIB
However, Observium only ever sees the following when doing a manual discovery in the CLI, and doesn't take everything into account because I can't specify the mibs and the corresponding mib file.
./discovery.php -h 137 -dd
... ... ##### Starting discovery run at 2023-02-24 13:04:57 #####
SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `device_id` = '137' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] ROWS[1] SQL RUNTIME[0.00030303s]
CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x 'AES-256-C' -X 'AES256PASS' -a 'SHA' -A 'SHAPASS' -u 'AUTHPRIVUSER' -Pud -OQUsn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'FQDN':'161' .1.3.6.1.2.1.1.2.0 .1.3.6.1.2.1.1.3.0]
CMD EXITCODE[0] CMD RUNTIME[0.0559s] STDOUT[ .1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.7483.1.3.1.6 .1.3.6.1.2.1.1.3.0 = 7:2:50:08.76 ] SNMP STATUS[TRUE] ... ...
So I added the following to the observium config file
$os = "nokia-xwdm"; $config['os'][$os]['text'] = "Nokia xWDM"; $config['os'][$os]['type'] = "optical"; $config['os'][$os]['vendor'] = "Nokia"; $config['os'][$os]['icon'] = "optical"; $config['os'][$os]['sysObjectID'][] = ".1.3.6.1.4.1.7483.1.3.1.6"; $config['os'][$os]['sysDescr'][] = "/^Nokia 1830 PSS/"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
In addition, I have created the following two files, as I understood it in the instructions of Observium.
/opt/observium/includes/definitions/os/nokia.inc.php $os = "nokia-xwdm"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
/opt/observium/includes/definitions/mibs/nokia.inc.php $mib = 'TROPIC-SYSTEM-MIB'; $config['mibs'][$mib]['enable'] = 1; $config['mibs'][$mib]['mib_dir'] = 'nokia'; $config['mibs'][$mib]['descr'] = 'The system MIB for Nokia network elements.';
Unfortunately this is not successful and I am going in circles, can someone please give me an example how I can do this correctly so that Observium either always considers all MIB files cleanly, or I explicitly respectively from the beginning cleanly correctly discovered without me having to make this assignment for the OS in the Observium configuration file.
Best regards
Alisha
observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org
Improved detect in r12559 (rolling updates).
This devices (os) have huuuuuuge useless snmp output.
Huge TROPIC-LOG-MIB and huge TROPIC-NOTIFICATION-MIB..
TROPIC-SYSTEM-MIB not have useful data, except IP address.
Alisha Manuela Stutz via observium wrote on 24.02.2023 16:31:
Hello all,
When I do a snmpwalk in the CLI with the following parameters I see everything as it should be.
./snmpwalk -v3 -a SHA -A SHAPASS -x AES-256-C -X AES256PASS -l authPriv -u AUTHPRIVUSER FQDN -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/nokia:/opt/observium/mibs/alcatel:/opt/observium/mibs/alcatel-ent -m TROPIC-SYSTEM-MIB
However, Observium only ever sees the following when doing a manual discovery in the CLI, and doesn't take everything into account because I can't specify the mibs and the corresponding mib file.
./discovery.php -h 137 -dd
... ... ##### Starting discovery run at 2023-02-24 13:04:57 #####
SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `device_id` = '137' AND `status` = '1' AND `poller_id` = '0' ORDER BY `last_discovered_timetaken` ASC] ROWS[1] SQL RUNTIME[0.00030303s]
CMD[/usr/bin/snmpget -v3 -l 'authPriv' -n '' -x 'AES-256-C' -X 'AES256PASS' -a 'SHA' -A 'SHAPASS' -u 'AUTHPRIVUSER' -Pud -OQUsn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'FQDN':'161' .1.3.6.1.2.1.1.2.0 .1.3.6.1.2.1.1.3.0]
CMD EXITCODE[0] CMD RUNTIME[0.0559s] STDOUT[ .1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.7483.1.3.1.6 .1.3.6.1.2.1.1.3.0 = 7:2:50:08.76 ] SNMP STATUS[TRUE] ... ...
So I added the following to the observium config file
$os = "nokia-xwdm"; $config['os'][$os]['text'] = "Nokia xWDM"; $config['os'][$os]['type'] = "optical"; $config['os'][$os]['vendor'] = "Nokia"; $config['os'][$os]['icon'] = "optical"; $config['os'][$os]['sysObjectID'][] = ".1.3.6.1.4.1.7483.1.3.1.6"; $config['os'][$os]['sysDescr'][] = "/^Nokia 1830 PSS/"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
In addition, I have created the following two files, as I understood it in the instructions of Observium.
/opt/observium/includes/definitions/os/nokia.inc.php $os = "nokia-xwdm"; $config['os'][$os]['mibs'][] = "TROPIC-SYSTEM-MIB";
/opt/observium/includes/definitions/mibs/nokia.inc.php $mib = 'TROPIC-SYSTEM-MIB'; $config['mibs'][$mib]['enable'] = 1; $config['mibs'][$mib]['mib_dir'] = 'nokia'; $config['mibs'][$mib]['descr'] = 'The system MIB for Nokia network elements.';
Unfortunately this is not successful and I am going in circles, can someone please give me an example how I can do this correctly so that Observium either always considers all MIB files cleanly, or I explicitly respectively from the beginning cleanly correctly discovered without me having to make this assignment for the OS in the Observium configuration file.
Best regards
Alisha _______________________________________________ observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org
participants (3)
-
Adam Armstrong
-
Alisha Manuela Stutz
-
Mike Stupalov