InfotelGLPI / printercounters

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

No daily snmp requests once every two days #48

Open kabassanov opened 5 years ago

kabassanov commented 5 years ago

Hi,

I defined a cron running once per day in order to retrieve printers counters.

It works once, then the next day counters are missing with this in the log file:

Mon, 10 Dec 2018 00:11:01 +0100 /usr/share/glpi/plugins/printercounters/scripts/run.php started 18184 Started 18185 Started 18187 Started 18189 Started Aucune imprimante à interroger Aucune imprimante à interroger Aucune imprimante à interroger Aucune imprimante à interroger 18184 ended, waiting for 3 running son process 18187 ended, waiting for 2 running son process 18189 ended, waiting for 1 running son process 18185 ended, waiting for 0 running son process Mon, 10 Dec 2018 00:11:01 +0100 /usr/share/glpi/plugins/printercounters/scripts/run.php ended

Sometimes, counters of first 4 printers (from 14) are retrieved and there is no particular message in logs.

Could it be an issue with remaining timers to next query?

amma35 commented 5 years ago

hi,

What is the periodicity indicated in each printer?

kabassanov commented 5 years ago

Hi,

1 day.

keha35 commented 5 years ago

Hi,

Can you try with the latest release ?

kabassanov commented 5 years ago

Hmm,

Am I wrong or there is something strange in the last release?

-rw-r--r-- 1 1002 apache 6887 11 déc. 09:41 setup.php

setup.php: 'version' => '1.5.0',

keha35 commented 5 years ago

Hi,

I've update the release, can you try with it?

kabassanov commented 5 years ago

Hi,

The plugin is seen as non CSRF compliant, probably due to the version in the folder name. I renamed it and it works. I'll keep you in touch about requests frequency...

kabassanov commented 5 years ago

Hi, It seems that queries are sent in a regular way every 2 days, even if my configuration asks to do it every day…

keha35 commented 5 years ago

Hi,

Have you configure the printer to be import automaticly?

kabassanov commented 5 years ago

Do you mean this? conf-releve

keha35 commented 5 years ago

Yes and in the plugin configuration did you configure it like this ? image

kabassanov commented 5 years ago

Yes.