You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-16 10:54:59

supertramp4
Member
Registered: 2022-06-13
Posts: 28

GLPI 10 Inventory Plugin - Tasks not running

Hi, Using GLPI 10.0.1 + GLPI Inventory 1.0.1 + Glpi Agent 1.2 ( there are no other plugin's ) running on a Windows server under Apache, PHP, and MariaDB, and this is a new installation ( rather than upgrade )

I have just 1 GLPI Inventory plugin task which is a simple network discovery job, and no matter what i try, it will not run according to the timeslots.
Task Settings :
- Re-prepare a target-actor : Unchecked
- Active : Checked
- Schedule Start : Blank ( have also tried define a start date but no difference)
- Schedule End : Blank  ( have also tried define a end date but no difference)
- Preparation Timeslot : Setup for 0800 - 0815 each day
- Execution Timeslot : Setup for 0830 - 0845 each day
- Wakeup interval : 1 Min
- Num of Agents : 1
Job Configuration
- Module Method : Network Discovery
- Targets : Linked to an IP Range
- Actors : Linked to same PC with the GLPI Agent

Automatic action - taskscheduler and Automatic action - wakeupAgents
- Run Frequency : 1 Min
- Run Mode : CLI
- status : Scheduled

There is a windows scheduled task job calling \front\cron.php each minute, and in the \_logs\pluginGlpiinventory-jobs.log i am seeing entries like
  2022-06-16 08:04:40 [@NT3]
  Preparing tasks jobs, task id:
  2022-06-16 08:05:40 [@NT3]
  Preparing tasks jobs, task id:

\_logs\cron.log
  2022-06-16 08:04:40 [@NT3]
  External #1: Launch mailgate
  2022-06-16 08:04:40 [@NT3]
  External #2: Launch queuednotification
  2022-06-16 08:04:41 [@NT3]
  External #3: Launch taskscheduler
  2022-06-16 08:04:41 [@NT3]
  External #4: Launch wakeupAgents


Looking at the GLPI Inventory plugin Task Execution
- Prepared 0
- Not yet done : 0
- Running :0
- completed :1
- Cancelled : 0
- In error : 0

Attempting to start manually using the "Force Start" does not seem to do anything?
The only way i have been able to get the job to run is in the Task Execution, expanding out the completed job, and "restarting selected job"
Its important to note, that when it does run, then it works correctly.

The Inventory Agent is configured with network discovery enabled, as is the GLPI Agent

Im not seeing any errors in \_logs_php_error.log

The aim is simple, i want to be able to run the task every day at 0800 approx

What am i missing?

Last edited by supertramp4 (2022-06-16 11:15:27)

Offline

#2 2022-06-17 10:54:24

supertramp4
Member
Registered: 2022-06-13
Posts: 28

Re: GLPI 10 Inventory Plugin - Tasks not running

Hi,
Can anyone provide any guidance. This is the heart of the system and needs to work.
Has anyone else got a similar scenario working in 10.0.1 , or should i try fusioninventory ?

Happy to try anything but its difficult when i can't seem to find much documentation on setting up GLPI Inventory?
Thanks

Offline

#3 2022-06-17 17:25:42

Opcero
Member
Registered: 2022-06-03
Posts: 8

Re: GLPI 10 Inventory Plugin - Tasks not running

I'm in the same boat as you and haven't yet been able to get the network discovery to work.  I've had good success simply pushing out the agent to all the domain computers via GPO and having them report back.  It would be nice to be able to pull in the printers and IP phones though...

Last edited by Opcero (2022-06-17 17:26:07)

Offline

#4 2022-06-21 13:57:31

dogz
Member
Registered: 2022-06-15
Posts: 5

Re: GLPI 10 Inventory Plugin - Tasks not running

Opcero wrote:

I'm in the same boat as you and haven't yet been able to get the network discovery to work.  I've had good success simply pushing out the agent to all the domain computers via GPO and having them report back.  It would be nice to be able to pull in the printers and IP phones though...


Hi Opcero,

I have't yet been able to get the network discovery and Agent report to work. I would like to know how you have them report back via Glpi native agent. I have search the solution for a long time, but still can't work it out.

I setup Glpi 10.0.0.0 and 10.0.0.1 on Alpine Linux version 3.16.0, Glpi-agent 1.1/1.2/1.3 on windows platform.

May I PM you or email to you? I have read your other replies and are very worthy to me. Would you please advise me? thank you in advance.

Offline

#5 2022-06-22 13:51:26

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI 10 Inventory Plugin - Tasks not running

Hi there,

about the documentation, as GlpiInventory is based on the same code than FI plugin, you can just check the FI documentation for tasks creation.

For tasks, you also need to have them installed with an agent, FI or GLPI. And in the plugin, after the inventory is done, the agent configuration should be edited to enable tasks setup.

A point people often miss is the used iprange must have at least one SNMP credential associated.

Just for information, a task must be "prepared" by the plugin before it can be started. This is the purpose of the "force start" button when making manual tests.
If you're using the plugin scheduling, you must be sure the server can contact the agents: the agent must be listening on its 62354 TCP port and no firewall should block this exchange.

Hope this help


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#6 2023-09-18 19:35:50

rikardoperu
Member
From: Perú
Registered: 2023-08-28
Posts: 4

Re: GLPI 10 Inventory Plugin - Tasks not running

Hello, I also have the same problem, I configure the parameters but the Jobs do not run, there are some logs to know what is happening on ubutu server for GLPI 10.0.9 (Agent 1.5)

Offline

#7 2023-10-06 19:13:33

csarmento
Member
Registered: 2023-10-06
Posts: 1

Re: GLPI 10 Inventory Plugin - Tasks not running

Same here.

Scarse instructions, cannot start a network discovery job.

Offline

Board footer

Powered by FluxBB