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-12-01 13:09:21

nicolask
Member
From: Montpellier
Registered: 2022-12-01
Posts: 2

[SOLVED] Use of uninitialized value in pattern match (m//)

Hello

I deployed glpi-agent_1.4-1 with ansible on debian 10/11 servers (Bare Metal and VM).

For somes servers I have plenty of this error line in log when the agent start a new inventory.

glpi-agent[633402]: Use of uninitialized value in pattern match (m//) at /usr/share/glpi-agent/lib/GLPI/Agent/Task/Inventory/Linux/Videos.pm line 46.

The line 46 of Videos.pm file is :

44     my $xorgPid;
45     foreach my $process (getProcesses(logger  => $logger)) {
46         next unless $process->{CMD} =~ m{
47             ^
48             (?:
49                 /usr/bin
50                 |
51                 /usr/X11R6/bin
52                 |
53                 /etc/X11
54             )
55             /X
56         }x;
57         $xorgPid = $process->{PID};
58         last;
59     }


The inventory ends well, but how I can solve this error ?

Thanks in advance,

Nicolas.

Last edited by nicolask (2022-12-01 16:00:28)

Offline

#2 2022-12-01 13:27:25

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

Re: [SOLVED] Use of uninitialized value in pattern match (m//)

Hello Nicolas,

The "Video" inventory on linux has been reworked in current development branch.

So can you try the nightly build on these computers ?
A feedback would be appreciated to validate the current dev on video inventory ;-)


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

Offline

#3 2022-12-01 16:01:12

nicolask
Member
From: Montpellier
Registered: 2022-12-01
Posts: 2

Re: [SOLVED] Use of uninitialized value in pattern match (m//)

Hello
Thank you for your quick answer.
I confirm that GLPI Agent (1.5-gite9959f3a) solved the problem on debian 10/11.

Bonne journée from Montpellier wink

Nicolas.

Offline

Board footer

Powered by FluxBB