BGP Peer discovery error - Argument #1 ($asn) must be of type string

Hello,

I’m getting an error when discovering peers. After discovering some bgp peers and inserting/updating data table e have the following error and cannot discover the nexts bgp peers. So they are not inserted on data table bgppeers.

Any idea how can i find the issue about this error?

Thanks .

Error discovering bgp-peers module for 10.70.10.200. TypeError: LibreNMS\Util\AutonomousSystem::get(): Argument #1 ($asn) must be of type string|int, null given, called in /opt/librenms/includes/functions.php on line 504 and defined in /opt/librenms/LibreNMS/Util/AutonomousSystem.php:39
Stack trace:
#0 /opt/librenms/includes/functions.php(504): LibreNMS\Util\AutonomousSystem::get()
#1 /opt/librenms/includes/discovery/bgp-peers/vrp.inc.php(87): get_astext()
#2 /opt/librenms/includes/discovery/bgp-peers.inc.php(12): include(‘/opt/librenms/i…’)
#3 /opt/librenms/includes/discovery/functions.inc.php(153): include(‘/opt/librenms/i…’)
#4 /opt/librenms/discovery.php(106): discover_device()
#5 {main}

SQL[insert into eventlog (reference, type, datetime, severity, message, username, device_id) values (?, ?, ?, ?, ?, ?, ?) [null,“discovery”,“2023-01-27 16:58:49”,5,“Error discovering bgp-peers module. Check log file for more details.”,“”,40] 1.8ms]

LibreNMS\Util\AutonomousSystem::get(): Argument #1 ($asn) must be of type string|int, null given, called in /opt/librenms/includes/functions.php on line 504 {“exception”:“[object] (TypeError(code: 0): LibreNMS\Util\AutonomousSystem::get(): Argument #1 ($asn) must be of type string|int, null given, called in /opt/librenms/includes/functions.php on line 504 at /opt/librenms/LibreNMS/Util/AutonomousSystem.php:39)”}

Runtime for discovery module ‘bgp-peers’: 4.8950 seconds with 512520 bytes
SNMP: [6/4.66s] MySQL: [92/1.37s] InfluxDB: [0/0.00s] RRD: [0/0.00s]

Unload disco module bgp-peers

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

Component Version
LibreNMS 23.1.0 (2023-01-24T17:43:30+01:00)
DB Schema 2022_08_15_084507_add_rrd_type_to_wireless_sensors_table (248)
PHP 8.1.10
Python 3.6.8
Database MariaDB 10.5.9-MariaDB
RRDTool 1.7.1
SNMP 5.7.2
===========================================

[OK] Composer Version: 2.5.1
[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] Distributed Polling setting is enabled globally
[OK] Connected to rrdcached
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] Python wrapper cron entry is not present
[OK] rrdtool version ok
[OK] Connected to rrdcached

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