InfotelGLPI / printercounters

Plugin Printercounters for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
14 stars 9 forks source link

Crontask "PluginPrintercountersErrorItem" didn't run and "Immediate record" fails from error printers when "Error items" function is enabled #83

Open eduardomozart opened 3 years ago

eduardomozart commented 3 years ago

When a printer fails to obtain SNMP information (e.g. it's Ethernet cable is unplugged), the column "status" from glpi_plugin_printercounters_items_recordmodels table is changed for "1" (for indicating an error status, I believe).

When I enable the function "Error items" at the plug-in settings, the crontask "PluginPrintercountersErrorItem" should be run every 24 hours when an user access GLPI, but it simply doesn't happen. I had to run the crontask manually. Even running it manually and knowing that the printer is communicable, it successfully communicates with the printer with error but the "status" column from glpi_plugin_printercounters_items_recordmodels table isn't updated, and the counters isn't updated at the "Records" tab of the printer.

When I try to do a "Immediate record" with the printer with error, I receive the following message: "No printers to search".

When I disable the "Error items" function, I can successfully query the printer through "Immediate record" buttom and the counters are updated. The column "status" from glpi_plugin_printercounters_items_recordmodels table isn't updated and keep it as "1" status.