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 2024-02-27 11:08:08

FernandoGietz
Member
Registered: 2024-02-23
Posts: 2

Creating a rule to assign a category to a software

Good morning everyone,

I would like to create a rule so that when the GLPI agent inventories software, the program is assigned to a specific category.

Example:

When the GLPI agent detects Audacity, instead of inventorying it in the "application" category, I would like it to be categorized under "Base Software".

I have tried to create a rule for this from the server rule manager, but the rule either does not work or the criteria are not met for some reason.

[Rule]
*Name: Actualización de categoría
*logic operator: "AND"
*Active: Yes
[Criteria]
Editor -> exists
Editor -> containts:  Audacity
[Action]
Fields: Category
Action type: Assign
Value: Software Base

GLPI Server Version: 10.0.11

Agent Version: 1.7.1

GLPI Inventory Plugin Version: 1.3.5

Best regards,

<rules>
<rule>
<entities_id>Root Entity</entities_id>
<sub_type>RuleSoftwareCategory</sub_type>
<ranking>2</ranking>
<name>Actualizacion de categoria</name>
<description>Actualiza la categoria a Base</description>
<match>AND</match>
<is_active>1</is_active>
<comment>Actualiza la categoria a Software Base</comment>
<is_recursive>0</is_recursive>
<uuid>a3e92bda-e509fb39-65d8739952a042.64780423</uuid>
<condition>0</condition>
<date_creation>2024-02-23 11:29:45</date_creation>
<rulecriteria>
<criteria>manufacturer</criteria>
<condition>8</condition>
<pattern>1</pattern>
</rulecriteria>
<rulecriteria>
<criteria>manufacturer</criteria>
<condition>2</condition>
<pattern>Audacity</pattern>
</rulecriteria>
<ruleaction>
<action_type>assign</action_type>
<field>softwarecategories_id</field>
<value>Software base</value>
</ruleaction>
</rule>
</rules>

Offline

Board footer

Powered by FluxBB