Hi All,
For a while now, a few days at least, I’ve been getting the alert that some devices have not polled successfully. When I look into this in “unpolled devices” it is always printers - some desktop printers and some photocopiers, and it seems that the poller process is crashing towards the end.
The problems seem to be a little sporadic and don’t show for all printers or even the same printer every time. Out of 130 printers it seems to affect about 6 printers in any given polling session.
Here are some logs as requested:
librenms@ubuntu-srv:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 21.3.0-44-g422d1195c
DB Schema | 2021_02_09_122930_migrate_to_utf8mb4 (205)
PHP | 7.4.3
Python | 3.8.5
MySQL | 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool | 1.7.2
SNMP | NET-SNMP 5.8
====================================
[OK] Composer Version: 2.0.11
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
Here are the logs for a Toshiba photo copier/printer/scanner:
Discovery log: https://p.libren.ms/view/a49b48e6
Poller log with error: https://p.libren.ms/view/a4162c16
The interesting bit is right at the end:
Checking toner Drawer 2... 0 %
Checking toner Drawer 3... 19 %
In Grammar.php line 136:
Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, int given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 886
Here is a Lexmark desktop printer exhibiting the same issue:
Discovery log: https://p.libren.ms/view/4acfb469
Poller log with error: https://p.libren.ms/view/96717b41
Seems to be the same error:
Checking toner Maintenance Kit... 100 %
Checking toner Tray 1... 0 %
In Grammar.php line 136:
Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, int given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 886
No firmware changes have happened with any of the printers that I’m aware of and I don’t recall seeing this problem for long - maybe a few days to a week or so.
The server is Ubuntu Server 20.04.2 LTS and gets Ubuntu updates applied automatically (unattended updates) and also LibreNMS updates automatically.