Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UISP Fiber OLT XGS is being "discovered" as "Inteno GW" #15741

Open
pozar opened this issue Jan 13, 2024 · 0 comments · May be fixed by #15742
Open

UISP Fiber OLT XGS is being "discovered" as "Inteno GW" #15741

pozar opened this issue Jan 13, 2024 · 0 comments · May be fixed by #15742

Comments

@pozar
Copy link

pozar commented Jan 13, 2024

The problem

The UISP Fiber OLT XGS is being "discovered" as "Inteno GW". It uses the same OIDs. The ~/includes/definitions/inteno.yaml has some odd logic as it matches everything except...
discovery: - sysObjectID: - .1.3.6.1.4.1.4413 sysDescr_regex_except: - '/VxWorks/' - '/quanta/i' - '/FASTPATH (Switching|Routing)/'

Output of ./validate.php

===========================================
Component | Version
--------- | -------
LibreNMS  | 24.1.0-16-g060775b00 (2024-01-12T20:04:32+00:00)
DB Schema | 2023_12_08_184652_mpls_addrtype_fix (276)
PHP       | 8.1.2-1ubuntu2.14
Python    | 3.10.12
Database  | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

What was the last working version of LibreNMS?

No response

Device info

Ubiquiti UISP Fiber OLT XGS

Discovery output

LibreNMS Discovery
SQL[�[1;33mselect `migration` from `migrations` order by `id` desc limit 1 �[0;33m[]�[0m 0.63ms] 
  
SQL[�[1;33mselect count(*) as aggregate from `migrations` �[0;33m[]�[0m 0.51ms] 
  
SQL[�[1;33mselect version() �[0;33m[]�[0m 0.45ms] 
  
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.1.0-16-g060775b00 (2024-01-12T20:04:32+00:00)
DB Schema | 2023_12_08_184652_mpls_addrtype_fix (276)
PHP       | 8.1.2-1ubuntu2.14
Python    | 3.10.12
Database  | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================
DEBUG!
Updating os_def.cache  
SQL[�[1;33mSELECT * FROM `devices` WHERE disabled = 0 AND `hostname` LIKE '172.16.254.85' ORDER BY device_id DESC �[0;33m[]�[0m 0.96ms] 
  
172.16.254.85 190 inteno SQL[�[1;33mselect * from `devices` where `device_id` = ? limit 1 �[0;33m[190]�[0m 1.55ms] 
  
SQL[�[1;33mselect * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null �[0;33m[190]�[0m 0.63ms] 
  
[FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' '172.16.254.85'
  
response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 0.308/0.378/0.426  
SNMP[�[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/inteno' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0'�[0m]  
SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.4413
  
  
Modules status: Global+  
OS  
Device  

#### Load disco module core ####
Attempting to initialize OS: inteno  
OS initialized as Generic (inteno)  
SNMP[�[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/inteno' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-On' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0' 'SNMPv2-MIB::sysDescr.0' 'SNMPv2-MIB::sysName.0'�[0m]  
.*.*.0 = .*.4.1.4413
.*.*.0 = UISP Fiber OLT XGS, *209, Linux 4.4.302
.*.*.0 = olt02-SantaClaraSt415-val
  
  
| UISP Fiber OLT XGS, 4.6.1.28209, Linux 4.4.302 | .1.3.6.1.4.1.4413 | 
  
OS: Inteno GW (inteno)

Attempting to initialize OS: inteno  
OS initialized as Generic (inteno)  


[...]

Poller output

Override poller modules: unix-agent, core, os, availability, ipmi, sensors, processors, mempools, storage, netstats, hr-mib, ucd-mib, ipSystemStats, ports, xdsl, customoid, bgp-peers, junose-atm-vp, printer-supplies, ucd-diskio, vminfo, wifi, wireless, ospf, isis, cisco-ipsec-flow-monitor, cisco-remote-access-monitor, cisco-cef, slas, cisco-mac-accounting, cipsec-tunnels, cisco-ace-loadbalancer, cisco-ace-serverfarms, cisco-asa-firewall, cisco-voice, cisco-cbqos, cisco-otv, cisco-qfp, cisco-vpdn, nac, netscaler-vsvr, aruba-controller, entity-physical, entity-state, applications, stp, ntp, loadbalancers, mef, mpls  
SQL[�[1;33mselect `migration` from `migrations` order by `id` desc limit 1 �[0;33m[]�[0m 0.54ms] 
  
SQL[�[1;33mselect count(*) as aggregate from `migrations` �[0;33m[]�[0m 0.38ms] 
  
SQL[�[1;33mselect version() �[0;33m[]�[0m 0.44ms] 
  
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.1.0-16-g060775b00 (2024-01-12T20:04:32+00:00)
DB Schema | 2023_12_08_184652_mpls_addrtype_fix (276)
PHP       | 8.1.2-1ubuntu2.14
Python    | 3.10.12
Database  | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================
  
Updating os_def.cache  
Starting polling run:
  
SQL[�[1;33mselect `device_id` from `devices` where `hostname` = ? �[0;33m["172.16.254.85"]�[0m 0.6ms] 
  
SQL[�[1;33mselect * from `devices` where `device_id` = ? limit 1 �[0;33m[190]�[0m 0.59ms] 
  
Hostname:  172.16.254.85 
ID:        190
OS:        inteno
IP:        172.16.254.85
  
Attempting to initialize OS: inteno  
OS initialized as Generic (inteno)  
SQL[�[1;33mselect * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null �[0;33m[190]�[0m 0.64ms] 
  
[FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' '172.16.254.85'
  
response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 0.293/0.341/0.367  
SNMP[�[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/inteno' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0'�[0m]  
SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.4413
  
  
SQL[�[1;33minsert into `device_perf` (`min`, `max`, `avg`, `xmt`, `rcv`, `loss`, `debug`, `device_id`, `timestamp`) values (?, ?, ?, ?, ?, ?, ?, ?, ?) �[0;33m[0.293,0.367,0.341,3,3,0,"{\"poller_name\":\"librenms\"}",190,"2024-01-13 22:29:19"]�[0m 10.75ms] 
  
SQL[�[1;33mupdate `devices` set `last_ping` = ?, `last_ping_timetaken` = ? where `device_id` = ? �[0;33m["2024-01-13 22:29:19",0.341,190]�[0m 3.14ms] 
  
SQL[�[1;33mselect * from `device_outages` where `device_outages`.`device_id` = ? and `device_outages`.`device_id` is not null and `up_again` is null order by `going_down` desc limit 1 �[0;33m[190]�[0m 0.67ms] 
  
#### Load poller module core ####
  
Module enabled: Global + | OS   | Device   | Manual    
SNMP[�[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/inteno' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-On' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysUpTime.0'�[0m]  
.*.*.0 = 16700900
  
  
SNMP[�[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/inteno' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMP-FRAMEWORK-MIB::snmpEngineTime.0' 'HOST-RESOURCES-MIB::hrSystemUptime.0'�[0m]  
SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = 166982
HOST-RESOURCES-MIB::hrSystemUptime.0 = No Such Object available on this agent at this OID
  
  
Uptime seconds: 167009
  
Uptime: 1 day 22 hours 23 minutes 29 seconds  
SQL[�[1;33mupdate `devices` set `uptime` = ? where `device_id` = ? �[0;33m[167009,190]�[0m 2.64ms] 
  
  
>> �[0;36mSNMP�[0m: [3/0.07s] �[1;33mMySQL�[0m: [5/0.18s]   
>> Runtime for poller module 'core': 0.0554 seconds with 195968 bytes  
#### Unload poller module core ####
  
#### Load poller module os ####
  
Module enabled: Global + | OS   | Device   | Manual    
Location: 
Hardware: 
OS Version: 
OS Features: 
Serial: 
  
>> �[0;36mSNMP�[0m: [0/0.00s] �[1;33mMySQL�[0m: [0/0.00s]   
>> Runtime for poller module 'os': 0.0030 seconds with 120416 bytes  
#### Unload poller module os ####
  
#### Load poller module availability ####
  
Module enabled: Global + | OS   | Device   | Manual    
SQL[�[1;33mselect * from `device_outages` where `device_outages`.`device_id` = ? and `device_outages`.`device_id` is not null and `up_again` >= ? order by `going_down` asc �[0;33m[190,1705098559]�[0m 0.55ms] 
  
SQL[�[1;33mselect * from `availability` where (`device_id` = ? and `duration` = ?) limit 1 �[0;33m[190,86400]�[0m 0.4ms] 
  
SQL[�[1;33mupdate `availability` set `availability_perc` = ? where `availability_id` = ? �[0;33m[100,749]�[0m 0.29ms] 
  
1 day   : 100%  
SQL[�[1;33mselect * from `device_outages` where `device_outages`.`device_id` = ? and `device_outages`.`device_id` is not null and `up_again` >= ? order by `going_down` asc �[0;33m[190,1704580159]�[0m 0.5ms] 
  
SQL[�[1;33mselect * from `availability` where (`device_id` = ? and `duration` = ?) limit 1 �[0;33m[190,604800]�[0m 0.37ms] 
  
SQL[�[1;33mupdate `availability` set `availability_perc` = ? where `availability_id` = ? �[0;33m[100,750]�[0m 0.27ms] 
  
[...]
>>> Polled olt02-santaclarast415-val (190) in 1.956 seconds <<<  

�[0;36mSNMP�[0m [33/0.75s]: Snmpget[16/0.36s] Snmpwalk[17/0.39s]  
�[1;33mSQL�[0m [111/1.15s]: Select[75/0.42s] Insert[1/0.11s] Update[33/0.61s] Delete[2/0.01s]
@pozar pozar linked a pull request Jan 13, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant