Unable to discover Juniper SRX345 device

I am unable to successfully discover a Juniper SRX345 running JunOS 21.3R1.9. I run the following, as the librenms user, from the command line:

./discovery.php -v -h HOSTNAME

The following errors are observed:

Load disco module discovery-protocols

CISCO-CDP-MIB: SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘CISCO-CDP-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘cdpCache’]
LLDP-MIB: SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘LLDP-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘lldpRemTable’]
SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQun’ ‘-m’ ‘LLDP-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘.1.0.8802.1.1.2.1.4.2.1.3’]
SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘BRIDGE-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘dot1dBasePortIfIndex’]
SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘LLDP-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘lldpLocPortId’]
.SNMP[‘/usr/bin/snmpwalk’ ‘-v2c’ ‘-c’ ‘COMMUNITY’ ‘-OQUsetX’ ‘-m’ ‘PTOPO-MIB’ ‘-M’ ‘/opt/librenms/mibs:/opt/librenms/mibs/junos’ ‘udp:HOSTNAME:161’ ‘ptopoConnEntry’]
Error discovering discovery-protocols module for HOSTNAME. TypeError: trim(): Argument #1 ($string) must be of type string, array given in /opt/librenms/includes/discovery/discovery-protocols.inc.php:320

Stack trace:

#0 /opt/librenms/includes/discovery/discovery-protocols.inc.php(320): trim()
#1 /opt/librenms/includes/discovery/functions.inc.php(157): include(‘…’)
#2 /opt/librenms/discovery.php(118): discover_device()
#3 {main}

Runtime for discovery module ‘discovery-protocols’: 0.5380 seconds with 446104 bytes
SNMP: [1/0.03s] MySQL: [16/0.08s] RRD: [0/0.00s]

Unload disco module discovery-protocols

Load disco module discovery-arp

iError discovering discovery-arp module for HOSTNAME. TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /opt/librenms/includes/common.php:505
Stack trace:
#0 /opt/librenms/includes/discovery/discovery-arp.inc.php(60): object_is_cached()
#1 /opt/librenms/includes/discovery/functions.inc.php(157): include(‘…’)
#2 /opt/librenms/discovery.php(118): discover_device()
#3 {main}

Runtime for discovery module ‘discovery-arp’: 0.0060 seconds with 9520 bytes
SNMP: [0/0.00s] MySQL: [3/0.05s] RRD: [0/0.00s]

Unload disco module discovery-arp

Output from ./validate.php:

====================================

Component Version
LibreNMS 22.7.0-28-g7b868982d
DB Schema 2022_07_19_081224_plugins_unique_index (244)
PHP 8.1.8
Python 3.9.13
Database MariaDB 10.5.16-MariaDB
RRDTool 1.7.2
SNMP 5.9.1
====================================

[OK] Composer Version: 2.3.10
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] rrd_dir is writable
[OK] rrdtool version ok

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.