glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Add cartridge levels survey for printers by cartridge type and low level cartridge notifications

Open kabassanov opened this issue 1 year ago • 4 comments

In previous GLPI versions, printer cartridge levels survey by cartridge reference and low level notifications were managed by FusionInventory and AdditionalAlerts plugins. Facing difficulties to maintain an up to date GLPI with the corresponding FusionInventory plugin, and as recent GLPI versions include native printer snmp inventory, I decided to bring these features directly to GLPI. The implementation is slightly different:

  • A cartridge item must be associated to one of the cartridge types as reported by inventory (through the cartridge item form)
  • In order to get a cartridge notification (in the UI or through an e-mail notification), the cartrige must be previously installed/declared on a given printer
  • Supplies with states defined as WARNING or BAD are automatically reported without further level threshold consideration
  • Supplies level based on remaining pages numbers are not supported actually
  • Corresponding notification template translation must be rewritten as tinymce does not allow FOREACH loops in a TR html tag. ~~- SQL queries should be rewritten using the array construction format~~
  • Language translations should be added.
Q A
Bug fix? no
New feature? yes/no
BC breaks? no
Deprecations? no
Tests pass? yes

kabassanov avatar Jun 04 '23 20:06 kabassanov