> For the complete documentation index, see [llms.txt](https://help.glpi-project.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.glpi-project.org/tutorials/fr/inventory/collect_data.md).

# Collecte de données

{% hint style="info" %}
**Information**

Le plugin GLPI Inventory est disponible dans le menu **`Administration`** > **`GLPI Inventory`**\
S'il n'est pas installé, veuillez aller dans le **marketplace**, et installer le plugin GLPI Inventory

\
![Texte alternatif](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-bebdcd7a6d61d2ae847303ed728a772ad3cbfa14%2Finventaire_pc-1.png?alt=media)
{% endhint %}

## Déclaration d'une donnée à interroger

{% hint style="info" %}
**Information**

Dans l'exemple suivant, nous allons vérifier que l'utilisateur a l'icône thunderbird sur son bureau (qui dans ce cas est une application portable).
{% endhint %}

Allez dans **`administration`** > **`GLPI Inventory`** > **`tâches`** > **`informations ordinateur`**

<div align="left"><img src="https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-19fbc3fbde4250ea4052114f5daa51eea07d8798%2Fcollect-1.png?alt=media" alt=""></div>

Puis créez un nouvel élément **`ajouter`** :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-974caa73fc65090031fc828c1e27eddf788951fe%2Fcollect-2.png?alt=media)

La fenêtre suivante vous permettra de saisir les informations suivantes :

* Un nom
* Un commentaire
* Un type
  * Registre
  * [WMI](broken://spaces/QFOh36etagWOcP9q4ECb/pages/uyV7vc1BgpEAKyDInQFN#comment-configurer-la-collecte-wmi)
  * Recherche d'un fichier
* Actif ou non
* Visible dans une sous-entité ou non

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-ca21516fb9347495261f72bcb8b7306f314c4c74%2Fcollect-3.png?alt=media)

Une fois que vous avez cliqué sur **`Ajouter`**, un onglet **`Configuration de collecte`** apparaît dans le menu de gauche, vous permettant de configurer la collecte de données pour l'une des trois options suivantes, selon le type choisi :

* WMI Windows
* Recherche de fichier
* Registre Windows

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-bef0290d32ce4785d35cbbcbec3dece2a33f75d9%2Fcollect-4.png?alt=media)

## Création de la tâche

Allez dans **`administration`** > **`GLPI Inventory`** > **`tâches`** > **`gestion des tâches`**

<div align="left"><img src="https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-d03e2ff9d5be479ce5eff71efa8ec2b0152bbc86%2Fcollect-5.png?alt=media" alt=""></div>

Puis créez une nouvelle tâche avec **`ajouter`** :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-912ab7d869fe7127b9431aeffdc801105acb0a71%2Fcollect-6.png?alt=media)

Créez la tâche :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-43125f7e291a7f8dcd8437955c0a95e68d7aed44%2Fcollect-7.png?alt=media)

Puis dans **`Configuration de job`**, ajoutez un job :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-5575d294ca6345ce411c79725ef83c17bcbf2979%2Fcollect-8.png?alt=media)

Et configurez le job de collecte dans cette tâche :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-039b39ab27decf2dfc48580ae3fc5377b2cb0f3d%2Fcollect-9.png?alt=media)

Une fois le job activé, préparé et repris par l'agent, vous pouvez voir le résultat de l'exécution du job ici :

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-27d06bbcf41515bd05f10c17d53f7c75b4215eb4%2Fcollect-10.png?alt=media)

Dans la fiche ordinateur, un nouvel onglet **`Informations de collecte`** apparaît avec la valeur trouvée pour le fichier :

<div align="left"><img src="https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-e94461ba1c5a235701ee8e2234dee75293d96b50%2Fcollect-11.png?alt=media" alt=""></div>

![](https://1227510999-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmRzI15ndDbFHGd5BnM4%2Fuploads%2Fgit-blob-f574270ec2e2e42a746eebb7110072bf33e8fb1f%2Fcollect-12.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.glpi-project.org/tutorials/fr/inventory/collect_data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
