Arch Linux OS detecting as Grandstream

Hi,

my Arch Linux boxes seem to all be detecting as Grandstream OS. I don’t have this issue with CentOS which correctly get recognized as Linux.

This is the output of the OS poller module:

Blockquote SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-OUQn’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:fqdn:161’ ‘.1.3.6.1.4.1.42397.1.2.1.0.0’ ‘.1.3.6.1.4.1.42397.1.2.3.2.0.0’ ‘.1.3.6.1.4.1.42397.1.2.3.3.0.0’]
Hardware:
Version: Core: , Base:
Features:
Serial:

Blockquote php validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.56
DB Schema | 2019_09_05_153524_create_notifications_attribs_index (141)
PHP | 7.2.26
MySQL | 5.7.27-log
RRDTool | 1.7.2
SNMP | NET-SNMP 5.7.3
====================================

[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller () has not completed within the last 5 minutes, check the cron job.
[FAIL] The poller (fqdn) has not completed within the last 5 minutes, check the cron job.
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX]:
Check your poll log and see: Performance - LibreNMS Docs
Devices:

[FAIL] Some devices have not completed their polling run in 5 minutes, this will create gaps in data.
[FIX]:
Check your poll log and see: Performance - LibreNMS Docs
Devices:

[WARN] fping FAILURES can be ignored if running LibreNMS in a jail without ::1. You may want to test it manually: fping ::1
[FAIL] fping could not be executed. fping must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.
(This account is currently not available.)
[WARN] fping FAILURES can be ignored if running LibreNMS in a jail without ::1. You may want to test it manually: fping ::1
[FAIL] fping6 could not be executed. fping6 must have CAP_NET_RAW capability (getcap) or suid. Selinux exlusions may be required.
(This account is currently not available.)

Can you discovery.php -d -h <device> -m os ?

php discovery.php -d -h fqdn -m os
LibreNMS Discovery
SQL[select migration from migrations order by id desc limit 1 0.81ms]

SQL[select count(*) as aggregate from migrations limit 1 0.72ms]

SQL[SELECT version() 0.57ms]

===================================
Version info:
Commit SHA:
Commit Date: 1569841625
DB Schema: 2019_09_05_153524_create_notifications_attribs_index (141)
PHP: 7.2.26
MySQL: 5.7.27-log
RRDTool: 1.7.2
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
Updating os_def.cache…
Done
Override discovery modules: os
SQL[SELECT * FROM devices WHERE disabled = 0 AND snmp_disable = 0 AND hostname LIKE ‘fqdn’ ORDER BY device_id DESC 1.62ms]

SQL[SELECT * FROM devices_attribs WHERE device_id = ? [25] 0.77ms]

fqdn 25 grandstream-ht [FPING] /usr/local/sbin/fping -e -q -c 3 -p 500 -t 500 fqdn
array (
‘xmt’ => ‘3’,
‘rcv’ => ‘3’,
‘loss’ => ‘0’,
‘min’ => ‘0.28’,
‘max’ => ‘0.97’,
‘avg’ => ‘0.53’,
‘exitcode’ => 0,
)
SQL[INSERT IGNORE INTO device_perf (xmt,rcv,loss,min,max,avg,device_id,timestamp,debug) VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW(),:debug) {“xmt”:“3”,“rcv”:“3”,“loss”:“0”,“min”:“0.28”,“max”:“0.97”,“avg”:“0.53”,“device_id”:25,“debug”:“”} 5.21ms]

SNMP Check response code: 0
SQL[SELECT attrib_value FROM devices_attribs WHERE device_id = ? AND attrib_type = ? [25,“poll_mib”] 1.29ms]

Attempting to initialize OS: grandstream-ht
Attempting to initialize OS: grandstream
OS initialized as Generic

Modules status: Global+
OS
Device

Load disco module core

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OUQn’ ‘-m’ ‘SNMPv2-MIB’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘sysName.0’ ‘sysObjectID.0’ ‘sysDescr.0’]
...0 = fqdn
...0 = ..4.1.8
...0 = Linux fqdn 4.19.99-1-lts #1 SMP Mon, 27 Jan 2020 21:30:28 +0000 x86_64

Runtime for discovery module ‘core’: 0.0130 seconds with 1104 bytes
SNMP: [2/0.04s] MySQL: [4/0.01s] RRD: [0/0.00s]

Unload disco module core

Modules status: Global+
OS+
Device

Load disco module os

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Ovq’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘SNMPv2-MIB::sysDescr.0’]
Linux fqdn 4.19.99-1-lts #1 SMP Mon, 27 Jan 2020 21:30:28 +0000 x86_64

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Ovqn’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘SNMPv2-MIB::sysObjectID.0’]
..4.1.8

| Linux fqdn 4.19.99-1-lts #1 SMP Mon, 27 Jan 2020 21:30:28 +0000 x86_64 | .1.3.6.1.4.1.8072.3.2.10 |
SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.1166.1.621.14.2.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.2021.7890.1.101.1’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.9193.1.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.8072.1.3.2.3.1.1.6.100.105.115.116.114.111’]
No Such Instance currently exists at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘SFA-INFO::systemName.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-m’ ‘SYNOLOGY-SYSTEM-MIB’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream:/usr/local/www/librenms/mibs/synology’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘systemStatus.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘HOST-RESOURCES-MIB::hrSystemInitialLoadParameters.0’]
"BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=364e4c94-4ba8-4d64-9b46-7418e76ebc11 rw
"

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘.1.3.6.1.4.1.12148.10.2.6.0’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-m’ ‘EXTRAHOP-MIB’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream:/usr/local/www/librenms/mibs/extrahop’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘extrahopInfoVersionString’]
No Such Object available on this agent at this OID

SNMP[‘/usr/local/bin/snmpget’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-Oqv’ ‘-M’ ‘/usr/local/www/librenms/mibs:/usr/local/www/librenms/mibs/grandstream:/usr/local/www/librenms/mibs/checkpoint’ ‘-t’ ‘1’ ‘-r’ ‘15’ ‘udp:HOSTNAME:161’ ‘CHECKPOINT-MIB::osName.0’]
No Such Object available on this agent at this OID

OS: Grandstream HT (grandstream-ht)

Runtime for discovery module ‘os’: 0.2980 seconds with 40024 bytes
SNMP: [12/0.29s] MySQL: [0/0.00s] RRD: [0/0.00s]

Unload disco module os

SQL[SELECT attrib_value FROM devices_attribs WHERE device_id = ? AND attrib_type = ? [25,“poll_mib”] 0.96ms]

SQL[UPDATE devices set last_discovered=NOW(),last_discovered_timetaken=? WHERE device_id = ? [1.3729999999999999982236431605997495353221893310546875,25] 1.64ms]

Discovered in 1.373 seconds

SQL[INSERT IGNORE INTO perf_times (type,doing,start,duration,devices,poller) VALUES (:type,:doing,:start,:duration,:devices,:poller) {“type”:“discover”,“doing”:“fqdn”,“start”:1581230501.952816009521484375,“duration”:“1.605”,“devices”:1,“poller”:“fqdn”} 1.29ms]

discovery.php fqdn 2020-02-09 06:41:43 - 1 devices discovered in 1.605 secs
SNMP [14/0.33s]: Get[14/0.33s] Getnext[0/0.00s] Walk[0/0.00s]
MySQL [7/0.02s]: Cell[1/0.00s] Row[1/0.00s] Rows[2/0.00s] Column[0/0.00s] Update[1/0.00s] Insert[2/0.01s] Delete[0/0.00s]
RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]

Hi, has there been any further development on this?

Unfortunately after an update recently of Librenms my Arch Linux machines are still getting detected as Grandstream phones… the machines in question are x86_64 based.