Printer supplies change state whenever discovery runs

Tags: #<Tag:0x00007fdb7d0c2500>

With PR#12699, on every periodic discovery run, this printer’s supply state shows a change, ie paper tray replaced or toner cartridge being empty:

    2021-04-02 18:35:11             Toner Black Toner Cartridge is empty
    2021-04-02 18:35:11             Toner MP TRAY was replaced (new level: 100%)
    2021-04-02 12:35:11             Toner Black Toner Cartridge is empty
    2021-04-02 12:35:11             Toner MP TRAY was replaced (new level: 100%)
    2021-04-02 06:35:11             Toner MP TRAY was replaced (new level: 100%)
    2021-04-02 06:35:10             Toner Black Toner Cartridge is empty
    2021-04-02 00:35:11             Toner Black Toner Cartridge is empty
    2021-04-02 00:35:11             Toner MP TRAY was replaced (new level: 100%)

(neither of these state changes are actually the case.)

The device in question is:

Brother NC-6800h, Firmware Ver.1.01 (08.12.12),MID 84UB05
System Name hl5370dw
Resolved IP 10.0.0.146
Hardware HL-5370DW [001ba90ba752]
Operating System Brother Printer 1.01
Serial B9J154306
Object ID .1.3.6.1.4.1.2435.2.3.9.1

Here is the output of validate.php:

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

Component Version
LibreNMS 21.3.0-57-g6616727a9
DB Schema 2021_02_09_122930_migrate_to_utf8mb4 (205)
PHP 7.4.16
Python 3.6.9
MySQL 10.5.9-MariaDB-1:10.5.9+maria~bionic
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

In another instance of librenms running earlier code, there aren’t such changes with each discovery run.