Eventlog errors: discovery + maintenance cleanup-syslog / cleanup-syslog

Hi all,

Recently, my LibreNMS Eventlog is showing errors:

discovery asw0-b2 Error discovering fdb-table module. Check log file for more details.

But there are no relevant logs:

root@librenms:~# grep -rl fdb-table /var/log/
root@librenms:~#

maintenance The scheduled command maintenance:cleanup-syslog failed to run. Check the maintenance.log for details.

Also, no relevant logs, and it works manually, well, at least no error, but nothing cleaned:

librenms@librenms:\~$ php artisan maintenance:cleanup-syslog
Cleared syslog entries older than 30 days (0 rows)

2026-01-12 03:48:00 maintenance The scheduled command maintenance:fetch-rss failed to run. Check the maintenance.log for details.

Also, cannot find any logs, and it works manually:

librenms@librenms:~$ php artisan maintenance:fetch-rss
[ Wed, 14 Jan 2026 14:27:29 +0000 ] LibreNMS https://www.librenms.org/notifications.rss (48)
[ Wed, 14 Jan 2026 14:27:29 +0000 ] local misc/notifications.rss (53)
[ Wed, 14 Jan 2026 14:27:29 +0000 ] Updating DB  Done

Here are maintenance logs:

librenms@librenms:~$ cat logs/maintenance.log
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
[ Wed, 14 Jan 2026 03:48:00 +0000 ] LibreNMS https://www.librenms.org/notifications.rss (48)
[ Wed, 14 Jan 2026 03:48:01 +0000 ] local misc/notifications.rss (53)
[ Wed, 14 Jan 2026 03:48:01 +0000 ] Updating DB  Done
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
librenms@librenms:~$
librenms@librenms:~$
librenms@librenms:~$ cat logs/maintenance.log
maintenance.log       maintenance.log.1     maintenance.log.2.gz  maintenance.log.3.gz  maintenance.log.4.gz  maintenance.log.5.gz  maintenance.log.6.gz
librenms@librenms:~$ cat logs/maintenance.log.1
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
[ Tue, 13 Jan 2026 03:48:00 +0000 ] LibreNMS https://www.librenms.org/notifications.rss (48)
[ Tue, 13 Jan 2026 03:48:00 +0000 ] local misc/notifications.rss (53)
[ Tue, 13 Jan 2026 03:48:00 +0000 ] Updating DB  Done
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)
Cleared syslog entries older than 30 days (0 rows)

Here is ./validate.php

librenms@librenms:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 26.2.0-dev.6+bf2f15234 (2026-01-13T03:27:41+00:00)
DB Schema | 2025_12_05_205509_devices_add_mtu_status (362)
PHP       | 8.4.10
Python    | 3.10.12
Database  | MariaDB 10.6.22-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.9.3
[OK]    Dependencies up-to-date.
[OK]    Database Connected
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

Can anyone point me in the right direction?

Thanks,
C

i am also looking into some issues with the fdb-table module.
the logs are located in the Librenms install directory in /logs/librenms.logs

you have to look on the node that does the discovery if you have a distributed setup.

alternatively you can do at manual capture in the GUI while looking in librenms.log

in my logs i can see something like
[2026-01-26T08:04:15][ALERT] INFO: device:discover “some-device-name” (661) discovered in 38.809s
[2026-01-26T08:04:58][CRITICAL] Exception: Illuminate\Database\QueryException SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: ‘’ for column librenms.ports_fdb.port_id at row 1 (Connection: mysql, Host: “some_IP_Address”, Port: 3306, Database: librenms, SQL: insert into ports_fdb (port_id, mac_address, vlan_id, device_id, created_at, updated_at) values (, bc8d1f60b747, 11128, 661, 2026-01-26 08:04:58, 2026-01-26 08:04:58)) @ /data/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:838

hope it helps :slight_smile:

Thanks for this :slight_smile:

I have the same issue: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value:

[2026-01-25T06:37:21][CRITICAL] Exception: Illuminate\Database\QueryException SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `librenms`.`ports_fdb`.`port_id` at row 1 (Connection: mysql, Host: localhost, Port: 3306, Database: librenms, SQL: insert into `ports_fdb` (`port_id`, `mac_address`, `vlan_id`, `device_id`, `created_at`, `updated_at`) values (, e83935254954, 2080, 5, 2026-01-25 06:37:21, 2026-01-25 06:37:21)) @ /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php:838

I’ll see if I can find anything on Google to fix this.

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