Git Product home page Git Product logo

glpi-agent's Introduction

GLPI Agent GLPI Agent

GLPI Agent CI GLPI Agent Packaging Github All Releases Twitter Follow

Summary

The GLPI Agent is a generic management agent. It can perform a certain number of tasks, according to its own execution plan, or on behalf of a GLPI server acting as a control point.

Description

This agent is based on a fork of FusionInventory agent and so works mainly like FusionInventory agent. It introduces new features and a new protocol to communicate directly with a GLPI server and its native inventory feature. Anyway it also keeps the compatibility with FusionInventory for GLPI plugin.

Download

Documentation

The GLPI Agent has its dedicated documentation project where any contribution will also be appreciated.

The documentation itself is readable online.

Documentation Status

Dependencies

Core

Minimum perl version: 5.8

Mandatory Perl modules:

  • File::Which
  • LWP::UserAgent
  • Net::IP
  • Text::Template
  • UNIVERSAL::require
  • XML::LibXML
  • Cpanel::JSON::XS

Optional Perl modules:

  • Compress::Zlib, for message compression
  • HTTP::Daemon, for web interface
  • IO::Socket::SSL, for HTTPS support
  • LWP::Protocol::https, for HTTPS support
  • Proc::Daemon, for daemon mode (Unix only)
  • Proc::PID::File, for daemon mode (Unix only)

Inventory task

Optional Perl modules:

  • Net::CUPS, for printers detection
  • Parse::EDID, for EDID data parsing
  • DateTime, for reliable timezone name extraction

Optional programs:

  • dmidecode, for DMI data retrieval
  • lspci, for PCI bus scanning
  • hdparm, for additional disk drive info retrieval
  • monitor-get-edid-using-vbe, monitor-get-edid or get-edid, for EDID data access
  • ssh-keyscan, for host SSH public key retrieval

Network discovery tasks

Mandatory Perl modules:

  • Thread::Queue

Optional Perl modules:

  • Net::NBName, for NetBios method support
  • Net::SNMP, for SNMP method support

Optional programs:

  • arp, for arp table lookup method support

Network inventory tasks

Mandatory Perl modules:

  • Net::SNMP
  • Thread::Queue

Optional Perl modules:

  • Crypt::DES, for SNMPv3 support

Wake on LAN task

Optional Perl modules:

  • Net::Write::Layer2, for ethernet method support

Deploy task

Mandatory Perl modules:

  • Digest::SHA
  • File::Copy::Recursive
  • Cpanel::JSON::XS
  • URI::Escape

Mandatory Perl modules for P2P Support:

  • Net::Ping
  • Parallel::ForkManager

MSI Packaging

Tools:

Mandatory Perl modules:

  • Perl::Dist::Strawberry

MacOSX Packaging

Tools:

Public databases

Related contribs

See CONTRIB to find references to GLPI Agent related scritps/files

Contacts

Project websites:

Project Telegram channel:

Please report any issues on project github issue tracker.

Active authors

Copyright 2006-2010 OCS Inventory contributors

Copyright 2010-2019 FusionInventory Team

Copyright 2011-2021 Teclib Editions

License

License: GPL v2

This software is licensed under the terms of GPLv2+, see LICENSE file for details.

Additional pieces of software

The glpi-injector script is based on fusioninventory-injector script:

  • author: Pascal Danek
  • copyright: 2005 Pascal Danek

GLPI::Agent::Task::Inventory::Vmsystem contains code from imvirt:

glpi-agent's People

Contributors

abondis avatar aiurlano avatar akrus avatar btry avatar ddurieux avatar devtom30 avatar dliroulet avatar dwizznodowin avatar fgudin avatar g-bougard avatar goneri avatar guillomovitch avatar hawke avatar juge2 avatar keyser75000 avatar kiniou avatar kournikola avatar maddingue avatar ncharles avatar nicolaseisen avatar pakdel avatar po1vo avatar pr-gh avatar pzeidler-dlr avatar remicollet avatar stoatwblr avatar tabad avatar urba avatar vincemacbuche avatar yannrouillard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glpi-agent's Issues

Toolbox Usage

Documentation

Yes, I read it

Solution search

Not applicable

Professional support

No response

Is your help request related to a problem?

I would like to try out the new GLPI Agent's features regarding network discovery and scan. However, when I access the Toolbox interface, there are no such options as to set up these tasks (see image below). I searched the documentation, but could not find anything related.

I'd also like to know if I can set up remote inventories (glpi-remote) using this plugin.

image

Expected behavior

I was hoping to see at least the menus shown in the images of this article: https://glpi-project.org/glpi-10-native-inventory/

Actually, I guess there should be even more menus to provide the features I mentioned above.

Actions you've considered

At first, I believed the options were limited because I hadn't set the --server option in the agent, but even after doing so, I didn't get the expected behavior.

Additional context

These are settings I am using:

glpi-agent --daemon  --color --httpd-trust=0.0.0.0/0 --server https://myglpi.com/front/inventory.php --no-fork --debug

PS: I am able to send local inventory to GLPI.

Toolbox settings:

# By default, a plugin is always disabled unless "disabled" is set to "no" or "0".
# You can uncomment the following line or set it in included configuration file
# at the end of this configuration
disabled = no

# Set base url matching for API
url_path = /toolbox

netdiscovery does not see the printer Godex, but snmpwalk see

Documentation

  • Yes, I do

Solution search

  • Yes, I do

Professional support

Yes, I know

Is your help request related to a problem?

No response

Expected behavior

> glpi-netdiscovery --first 192.168.0.242 --last 192.168.0.242 --credentials version:2c,community:public --debug
[debug] Logger backend Stderr initialized
[debug] initializing job 1
[debug] initializing block 192.168.0.242-192.168.0.242
[debug] Current run expiration timeout: soon
[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] #1, scanning 192.168.0.242
[debug] [thread 1] #1, - scanning 192.168.0.242 with SNMP, credentials 1: no result, no response from host 192.168.0.242
[debug] [thread 1] #1, - scanning 192.168.0.242 with netbios: no result
[debug] [thread 1] #1, - scanning 192.168.0.242 with echo ping: success
[debug] [thread 1] #1, - scanning 192.168.0.242 in arp table: no result
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <DNSHOSTNAME>192.168.0.242</DNSHOSTNAME>
      <IP>192.168.0.242</IP>
    </DEVICE>
    <MODULEVERSION>4.4</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>
[debug] [thread 1] termination
[debug] All netdiscovery threads terminated

Actions you've considered

> snmpwalk -v 2c -c public 192.168.0.242
SNMPv2-MIB::sysDescr.1.1 = STRING: MST-SKL-G530
SNMPv2-MIB::sysDescr.1.2 = STRING: 000000
SNMPv2-MIB::sysDescr.1.3 = STRING: BOOT :1.007
SNMPv2-MIB::sysDescr.1.4 = STRING: F/W : G530 V1.100 (Dec 19 2019 16:23:16-01)

SNMPv2-MIB::sysDescr.1.5 = STRING: PCB : 248010

SNMPv2-MIB::sysDescr.1.6 = STRING: Mac Address : 00-1d-9a-07-c5-1e
SNMPv2-MIB::sysDescr.1.7 = STRING: 192.168.0.242
SNMPv2-MIB::sysDescr.1.8 = STRING: 00 Ready
SNMPv2-MIB::sysDescr.1.9 = STRING: Total printing length 00000499 METER(S)
SNMPv2-MIB::sysDescr.20.1 = STRING: PaperOut Error happens 0 times

SNMPv2-MIB::sysDescr.20.2 = STRING: Paper Jam Error happens 0 times

SNMPv2-MIB::sysDescr.20.3 = STRING: Ribbon Out Error 0 times

SNMPv2-MIB::sysDescr.20.4 = STRING: Door Open Error happens 0 times

SNMPv2-MIB::sysDescr.20.5 = STRING: Rewinder Full Error 0 times

SNMPv2-MIB::sysDescr.20.6 = STRING: File System Full Error happens 0 times

SNMPv2-MIB::sysDescr.20.7 = STRING: Name Not Found Error 0 times

SNMPv2-MIB::sysDescr.20.8 = STRING: NameDuplicate Error happens 0 times

SNMPv2-MIB::sysDescr.20.10 = STRING: Cutter Jam Error happens 0 times

SNMPv2-MIB::sysDescr.20.11 = STRING: TPH Over Heat Error happens 0 times

HOST-RESOURCES-MIB::hrDeviceStatus.1 = INTEGER: running(2)
SNMPv2-MIB::sysDescr.1.1 = STRING: MST-SKL-G530
Error: OID not increasing: HOST-RESOURCES-MIB::hrDeviceStatus.1
 >= SNMPv2-MIB::sysDescr.1.1

Additional context

No response

Silent installation of GLPI-Agent

Hello,
is it possible to do a silent installation of glpi-agent from the command line?
If so, what are the commands?
thanks in advance

httpd-trust error

Bug reporting acknowledgment

  • Yes, I read it

Professional support

No response

Describe the bug

I configured httpd-trust like with fusioninventory agent:

httpd-trust: 192.168.1.210, 192.168.1.208

In log file I get:

[Wed Oct 27 08:12:28 2021][error] unable to get address for ' 192.168.1.208': Unknown host.

To reproduce

  1. Start GLPI-Agent-1.0-beta1-x64.msi
  2. "HTTP Server Options: Set embedded HTTP server options"
  3. Trusted IPs field > set 192.168.1.210, 192.168.1.208
  4. Finish install.

or

  1. HKEY_LOCAL_MACHINE\SOFTWARE\GLPI-Agent
  2. httpd-trust
  3. value: 192.168.1.210, 192.168.1.208

Expected behavior

All hosts listed are trusted and no log errors generate.

Operating system

Windows

GLPI Agent version

1.0

GLPI version

9.5.6

FusionInventory for GLPI version

Older (See additional context below)

Additional context

FusionInventory 9.5.0+1.0

[package] fusioninventory-agent detect and remove

As glpi-agent replaces fusioninventory-agent, I suggest adding an extra step in installers to detect settings from fusioninventory and optionally uninstall it.

BTW: Currently glpi-agent uses the same local port as fusioninventory by default, and this will cause conflicts.

macOS: certificate should be stored in the Keychain, not inside GLPI-Agent.app/etc

Documentation

  • Yes, I do

Professional support

Still not applicable

Is your feature request related to a problem?

It is bad practice to require dynamic configuration to be placed within an app bundle on macOS, since this prevents signing and notarisation of the app (see also #32). In the context of certificates, macOS has a secure keystore called the Keychain. This is the correct place for certificates to be stored and read by applications. This allows the certificates to be securely deployed via MDM.

Expected behavior

The GLPI certificate should be stored and read from the macOS Keychain.

Alternatives you've considered

N/A.

Additional context

No response

Bad encoding in username during inventory

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

When the agent inventories a computer with a username containing accent, the encoding is broken in GLPI.

image

In the inventory json file:

image

The encoding is broken in "softwares" too when the username appears.
It was working fine with GLPI 9.5.5 and Fusion Inventory.

To reproduce

Inventories a computer with a logged user containing accent ex "frédéric"

Expected behavior

Username should be frédéric not frédéric

Operating system

Windows

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.0-rc4

Additional context

No response

Incorrect Russian encoding in inventory

Bug reporting acknowledgment

  • Yes, I read it

Professional support

No response

Describe the bug

After running the agent with fusioninventory 9.5+3.0 server-side plugin there is garbage in computer inventory - programs
Suppose there are encoding conversion malfunctions on agent side since FI agent reports with correctly displayed characters
Computer_software
Unix(LF)/UTF8 xml inventory file contents:
изображение

To reproduce

  1. Install GLPI-Inventory plugin on Windows 10 with default Russian language and Russian region
  2. Initiate inventory with GLPI-Inventory plugin with https://glpi/plugins/fusioninventory/ server setting
  3. Check GLPI - Assets - Computers - computer with inventory information - software

Expected behavior

Expected correct display of russian language instead of garbage characters

Operating system

Windows

GLPI Agent version

1.0-beta1-x64

GLPI version

Older (See additional context below)

FusionInventory for GLPI version

9.5+3.0

Additional context

GLPI 9.5.5

macOS: preferences should be in a preference domain, not inside GLPI-Agent.app/etc

Documentation

  • Yes, I do

Professional support

Still not applicable

Is your feature request related to a problem?

It is outdated and bad practise to require config to be added to an application bundle on macOS, as it means that the app cannot be signed and notarised. The current version of GLPI-Agent.app requires config being added to GLPI-Agent.app/etc.

Configuration is best supplied via preferences domain (e.g. org.glpi.agent), so that it can be configured with a configuration profile for deployment via MDM, or preferences PLIST file (/Library/Preferences/org.glpi.agent.plist). Failing that, configuration files should be placed elsewhere, such as /Library/Application Support/GLPI.

I expect that this behaviour will be enforced by Apple at some point in the future, so it's worth you considering these changes now.

Expected behavior

I should be able to configure the agent via configuration profile, preferences PLIST file, or from a file placed in a conventional location for macOS which does not break the ability to notarize the app.

Alternatives you've considered

N/A.

Additional context

No response

[Windows] Command line with ADDLOCAL option don't copy glpi-agent.exe

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Hi,

with ADDLOCAL option, the msi don't copy the glpi-agent.exe file here : C:\Program Files\GLPI-Agent\perl\bin

To reproduce

  1. msiexec /i "F:\GLPI-Agent-1.0-x64.msi" /quiet RUNNOW=1 SERVER='https://test.fr/' ADD_FIREWALL_EXCEPTION=1 ADDLOCAL=feat_DEPLOY,feat_COLLECT HTTPD_TRUST=0.0.0.0/0
    Missing the glpi-agent.exe
  2. msiexec /i "F:\GLPI-Agent-1.0-x64.msi" /quiet RUNNOW=1 SERVER='https://test.fr/' ADD_FIREWALL_EXCEPTION=1 HTTPD_TRUST=0.0.0.0/0
    the glpi-agent.exe is here ... :)

Expected behavior

the first command line need to copy glpi-agent.exe :)

Thank you :)

Operating system

Windows

GLPI Agent version

1.0

GLPI version

Not applicable

GLPIInventory plugin or FusionInventory for GLPI plugin version

Not applicable

Additional context

No response

Collect task

Hello, with
glpi 9.5.5/fusioninventory 3/GLPI-Agent_v1.0-git0dbfed3d
I have a few collect task (files and register) that works but I cannot see any result anywhere.
in inventory/computer I just see the tasks performed
immagine
immagine

But don't find any tab "collect information" or something that shows me the collected information in the inventory
I did the same test with the fusioninventory agent 2.6 having the same results
Any idea?

[http client] communication error: 400 Bad Request, Protocol not supported

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

No response

Is your help request related to a problem?

Sorry to bother you but my agent keeps complaining about :
[http client] communication error: 400 Bad Request, Protocol not supported

When trying to run a deploy task

I don't know what is wrong

Expected behavior

It should ask the server for task, and do nothing, since there are no task deployed, like it does with fusion inventory

Actions you've considered

I tried to find what is wrong with my installation or current configuration, without success...

Additional context

I am using GLPI 10.0.0-rc1 with GLPI Inventory 1.0.0-rc4
Server is running with FastCGI behind IIS.

Wrong soft installation date format

Installation date for software may be wrong formatted, see above example.

SOFTWARE IN THE LIST THAT CAUSE THE ISSUE:
<SOFTWARES> <ARCH>x86_64</ARCH> <FROM>registry</FROM> <GUID>AutoCAD 2021 - English</GUID> <INSTALLDATE>10/30/2021</INSTALLDATE> <NAME>Autodesk AutoCAD 2021 - English</NAME> <PUBLISHER>Autodesk</PUBLISHER> <SYSTEM_CATEGORY>application</SYSTEM_CATEGORY> <UNINSTALL_STRING>XXXXXXXXXXXXXXXXXXXXX</UNINSTALL_STRING> <VERSION>24.0.47.0</VERSION> </SOFTWARES>

Originally posted by @JTrotta in glpi-project/glpi#10294 (comment)

How can I deploy the agent on the domain using command prompt ?

I'm trying to replace Fusion Inventory Agent with GLPI Agent with silent installation. I can't figure out what are the arguments though. I've seen in the glpi-agent-deployment.vbs that the SetupLocation uses the link to download the release but there is still no release on GitHub. So I tried to use PsExec to remotely install, and it kinda seems to work beacause it exits with error code 0 but there isn't the glpi service installed.
Here is what the cmd returns :
image
And here is the command that I used :
psexec \\SEXTANS -u ******* -p ******** -h -i "C:\Windows\System32\msiexec.exe" /a "\\eros\commun\Service Informatique\Fusioninventory\GLPI-A-1.0-x64.msi" /quiet RUNNOW=1 EXECMODE=SERVICE SERVER='http://myserver/glpi/plugins/fusioninventory/' NO-SSL-CHECK=1
I've seen that one of the arguments used in the vbs script was RUNNOW=1 so I tried to do the same syntax but I guess it's not working. But I need to use the no-ssl-check argument.
I'd be glad if you could help me to make a silent install !

Access Denied

Bug reporting acknowledgment

Yes, I read it

Professional support

No response

Describe the bug

Dear,

I have install the BETA GLPI 10 and the Agent 1.0

but impossible to wake up the agent remotely

I have try :

HTTPD_TRUST='192.168.12.0/24' (lan where is install GLPI) i have try : Access denied

HTTPD_TRUST='192.168.12.5' (ip of GLPI no result)

HTTPD_TRUST='127.0.0.1/32,192.168.12.5' (OK for local wake up http://localhost:62354/now)

HTTPD_TRUST='127.0.0.1/32,192.168.12.0/24' (OK for local wake up http://localhost:62354/now , access denied http://ipofagent:62354/now ) i can just view agent status

This is GLPI Agent 1.0
The current status is waiting

and i can't have toolbox interface

before i have complet install with fusioninventory agent and no problem to wake up agent remotly

To reproduce

SetupOptions = "/quiet RUNNOW=1 HTTPD_TRUST='192.168.15.0/24' SERVER='https://GLPILOCALDNS/front/inventory.php' NO_TASK='' NO_SSL_CHECK=1 ADD_FIREWALL_EXCEPTION=1"

Expected behavior

be able to wake up the agent remotely

Operating system

Windows

GLPI Agent version

1.0

GLPI version

10.0.0-beta

GLPIInventory plugin or FusionInventory for GLPI plugin version

10.0.0-rc2

Additional context

No response

Wrong monitor serial number

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

If I use Powershell, I get a serial number for example: 123007

By checking the resulting html of the agent, I can see: 0001e34f

Powershell code:


ForEach ($Monitor in Get-WmiObject WmiMonitorID -Namespace root\wmi) {  
    $Name = Decode $Monitor.UserFriendlyName -notmatch 0
    $Serial = Decode $Monitor.SerialNumberID -notmatch 0

    echo "$Name, $Serial"
}

To reproduce

Impossible to reproduce without a monitor with a specific serial number

Expected behavior

The agent should not change the serial number.

Operating system

Windows

GLPI Agent version

1.0

GLPI version

9.5.6

GLPIInventory plugin or FusionInventory for GLPI plugin version

Older (See additional context below)

Additional context

FusionInventory 9.5.0+1.0

The same problem was with the Fusion Inventory agent. I was hoping the GLPI did it better, but unfortunately it's the same.

Incorrect encoding when importing from an Android agent

Hi,
The inventory agent I use is: GLPI Android Agent (version 2020/01/07)
FusionInventory 9.5.0+1.0 on GLPI 9.5.1. The server is Ubuntu 18.04.1
The dataterminal: Urovo i6200s, Android 5.5
Inventory programs, which have Russian names, or if the tag is to write in the Russian language is incorrect unreadable encoding in GLPI.
33321
33322

Inventory of Windows agent is not imported in server

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

i have installed glpi 10.0.0-beta in docker
also i have two agent - one for ubuntu (actually launched under wsl) and one for windows
there is only one options which i set for both agent - server url. in both case this is http://localhost:8010

glpi is start and work normally - i can access to it and fill entities
after i launch glpi-agent i see following records in administration -> inventory -> agents:
image

after that i go to assets -> computer and see only one item which is inventory by linux agent:
image

Output from agent:

Config: F:/glpi-agent/etc/conf.d/00-install.cfg configuration file still loaded
[debug] Logger backend Stderr initialized
[debug] GLPI Agent (1.0)
[debug] Configuration directory: F:/glpi-agent/etc
[debug] Data directory: F:/glpi-agent/share
[debug] Storage directory: F:\glpi-agent\var
[debug] Lib directory: F:/glpi-agent/perl/agent
[debug] [target server0] Next server contact planned for Fri Dec 17 16:12:29 2021
[debug] Available tasks:
[debug] - Collect: 2.6
[debug] - Deploy: 2.8
[debug] - ESX: 2.6
[debug] - Inventory: 1.10
[debug] - NetDiscovery: 4.4
[debug] - NetInventory: 4.4
[debug] - RemoteInventory: 0.9
[debug] - WakeOnLan: 2.2
[debug] target server0: glpi
[debug] Planned tasks for server0: Collect,NetDiscovery,NetInventory,Inventory,ESX,WakeOnLan,RemoteInventory,Deploy
[debug] Provided by Teclib Edition
[debug] Installer built on Fri Dec 10 18:29:15 2021 UTC
[debug] Built with Strawberry Perl 5.34.0
[debug] Built on github actions windows image for glpi-project/glpi-agent repository
[debug] Running in foreground mode
[debug] [http client] FC295698: Using Compress::Zlib for compression
[info] sending contact request to server0
[debug] Collect task not supported by GLPI server
[debug] NetDiscovery task not supported by GLPI server
[debug] NetInventory task not supported by GLPI server
[info] running task Inventory
[info] New inventory from pc-027.domain.local-2021-12-16-14-10-09 for server0
[debug] Running GLPI::Agent::Task::Inventory::AccessLog
[debug] Running GLPI::Agent::Task::Inventory::Generic
[debug] Running GLPI::Agent::Task::Inventory::Generic::Batteries
[debug] Running GLPI::Agent::Task::Inventory::Generic::Databases
[debug] Running GLPI::Agent::Task::Inventory::Generic::Drives
[debug] Running GLPI::Agent::Task::Inventory::Generic::Firewall
[debug] Running GLPI::Agent::Task::Inventory::Generic::Networks
[debug] Running GLPI::Agent::Task::Inventory::Generic::OS
[debug] Running GLPI::Agent::Task::Inventory::Generic::Remote_Mgmt
[debug] Running GLPI::Agent::Task::Inventory::Generic::SSH
[debug] Running GLPI::Agent::Task::Inventory::Generic::Screen
[debug] Running GLPI::Agent::Task::Inventory::Generic::Softwares
[debug] Running GLPI::Agent::Task::Inventory::Generic::Storages
[debug] Running GLPI::Agent::Task::Inventory::Generic::Timezone
[debug] Using DateTime::TimeZone to get the timezone name
[debug] Running GLPI::Agent::Task::Inventory::Provider
[debug] Running GLPI::Agent::Task::Inventory::Virtualization
[debug] Running GLPI::Agent::Task::Inventory::Virtualization::Docker
[debug] Running GLPI::Agent::Task::Inventory::Virtualization::HyperV
[debug] Running GLPI::Agent::Task::Inventory::Win32
[debug] Running GLPI::Agent::Task::Inventory::Win32::Hardware
[debug] Running GLPI::Agent::Task::Inventory::Win32::CPU
[debug] Running GLPI::Agent::Task::Inventory::Virtualization::Wsl
Use of uninitialized value $1 in concatenation (.) or string at F:/glpi-agent/perl/agent/GLPI/Agent/Task/Inventory/Virtualization/Wsl.pm line 158.
[debug] Running GLPI::Agent::Task::Inventory::Win32::Bios
[debug] Running GLPI::Agent::Task::Inventory::Vmsystem
[debug] Running GLPI::Agent::Task::Inventory::Win32::AntiVirus
[debug] Found Windows Defender (state=0x61100)
[debug] Running GLPI::Agent::Task::Inventory::Win32::Chassis
[debug] Running GLPI::Agent::Task::Inventory::Win32::Controllers
[debug] Running GLPI::Agent::Task::Inventory::Win32::Drives
[debug] Running GLPI::Agent::Task::Inventory::Win32::Environment
[debug] Running GLPI::Agent::Task::Inventory::Win32::Firewall
[debug] Running GLPI::Agent::Task::Inventory::Win32::Inputs
[debug] Running GLPI::Agent::Task::Inventory::Win32::License
[debug] Running GLPI::Agent::Task::Inventory::Win32::Memory
[debug] Running GLPI::Agent::Task::Inventory::Win32::Modems
[debug] Running GLPI::Agent::Task::Inventory::Win32::Networks
[debug] Running GLPI::Agent::Task::Inventory::Win32::OS
[debug] Running GLPI::Agent::Task::Inventory::Win32::Ports
[debug] Running GLPI::Agent::Task::Inventory::Win32::Printers
[debug] Running GLPI::Agent::Task::Inventory::Win32::Slots
[debug] Running GLPI::Agent::Task::Inventory::Win32::Softwares
[debug] 'scan-profiles' configuration parameter disabled, ignoring software in user profiles
[debug] Running GLPI::Agent::Task::Inventory::Win32::Sounds
[debug] Running GLPI::Agent::Task::Inventory::Win32::Storages
[debug] Running GLPI::Agent::Task::Inventory::Win32::USB
[debug] Running GLPI::Agent::Task::Inventory::Win32::Users
[debug] Running GLPI::Agent::Task::Inventory::Win32::Videos
[debug] Section DRIVES has changed since last inventory
[debug] Section FIREWALL has changed since last inventory
[debug] Section LICENSEINFOS has changed since last inventory
[debug] Section MONITORS has changed since last inventory
[debug] Section VIRTUALMACHINES has changed since last inventory
[debug] [http client] C19628CC: Using Compress::Zlib for compression
[debug] inventory format: Removing MONITORS PORT value as not of integer type: 'HDMI'
[debug] inventory format: Removing MONITORS PORT value as not of integer type: 'DVI'
[debug] inventory format: Removing MONITORS PORT value as not of integer type: 'VGA'
[debug] ESX task not supported by GLPI server
[debug] WakeOnLan task not compatible with local target
[debug] Remote inventory task execution disabled: no supported target
[debug] Deploy task not supported by GLPI server

after what i updated to nightly build of agent and rerun it. this is output:

Config: F:/glpi-agent-nightly/etc/conf.d/00-install.cfg configuration file still loaded
[info] sending contact request to server0
[info] running task Inventory
[info] New inventory from pc-027.domain.local-2021-12-16-14-10-09 for server0
Use of uninitialized value $1 in concatenation (.) or string at F:/glpi-agent-nightly/perl/agent/GLPI/Agent/Task/Inventory/Virtualization/Wsl.pm line 158.
[info] running task Collect
[error] [http client] Got empty response
[info] No job schedule returned from server at http://localhost:8010/front/inventory.php
[info] running task ESX
[error] [http client] Got empty response
[info] No job schedule returned from server at http://localhost:8010/front/inventory.php
[info] running task Deploy
[error] [http client] Got empty response
[info] No job schedule returned from server at http://localhost:8010/front/inventory.php

To reproduce

  • install glpi 10.0.0-beta
  • download windows inventory agent zip
  • set server url
  • launch glpi-agent.bat

Expected behavior

inventory information appear in GLPI web interface

Operating system

Windows, Linux

GLPI Agent version

1.0, Nightly build (git version in additional context below)

GLPI version

development release (See additional context below)

FusionInventory for GLPI version

No response

Additional context

No response

Incorrect agent version is reported

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

After installing agent 1.0.0 and going to computer: port still shows: This is GLPI Agent 1.0-beta1

To reproduce

  1. Clean installation of the latest agent (there was no beta on the computer)
  2. Go to https://computer:port
  3. Check agent version

Expected behavior

I would like to see version 1.0.0 here - then I know that when updating on stations where I had a beta version, the agent is actually in the latest version.

Operating system

Windows

GLPI Agent version

1.0

GLPI version

9.5.6

GLPIInventory plugin or FusionInventory for GLPI plugin version

No response

Additional context

It is not critical, but it would be nice if it displayed correctly - such a cosmetic change :)

Second thing I noticed - after installation and 'Force an Inventory' I did not find info about installation on Assets > Computers > computername > History tab. But I see GLPI-Agent on Software tab.

Remote Management - Supremo

Documentation

Yes, I read it

Professional support

No response

Is your feature request related to a problem?

Hello,

If it's possible to support Supremo Remote Desktop, as it's almost the same as TeamViewer

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Supremo
ClientID REG_DWORD 0xXXXXXXXX

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\teamviewer
ClientID REG_DWORD 0xXXXXXXXX

Expected behavior

The Supremo ID to be shown in the Remote Management category of the computers

Alternatives you've considered

N/A

Additional context

No response

ESXI (vmware) - install on esxi !!!? how

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

Still not applicable

Is your help request related to a problem?

how i install agent on esxi ?

Expected behavior

.

Actions you've considered

.

Additional context

.

Support for Office 2019 license

Documentation

Yes, I read it

Professional support

Yes, I know

Is your feature request related to a problem?

Yes, Office 2019 license are not inventoried by GLPI-Agent.

Expected behavior

Inventory is done and I can find the information in GLPI.

Alternatives you've considered

FusionInventory agent is also lacking this as pointed by FusionInventory Agent #896 issue

Additional context

No response

Monitors serial is not showing properly

I have checked the Dell D2020H Monitor serial number is not showing properly in GLPI-9.5.5 and fusioninventory-agent is 2.6. and GLPI-9.5.4 and fusioninventory-agent is 2.5. It is showing service tag instead of serial number.

output is :

AP///////wAQrB7xSU04QQoeAQMOKxh46mnVolZPoCgPUFSlSgBxT4HAgQCpwAEBAQEBAQEBMCpAyGCEZDAYUBMAsPMQAAAeAAAA/wBKTktWWDIzCiAgICAgAAAA/ABERUxMIEQyMDIwSAogAAAA/QA4TB5QEQAKICAgICAgACU=
DELL D2020H
10/2020
Dell Inc.
VGA
JNKVX23

I don't know why it is convert into Base64. Could you please help to me in this case it would be great. Even Acer monitors also.
So i want original serial number instead of coverting Base 64 and it is coming alphanumberic.

Could you please look into this issue

500 Can't connect

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

No response

Is your help request related to a problem?

[error] [http client] communication error: 500 Can't connect to XXX.fr:443 (Bad file descriptor)
[error] No answer from server at https://XXX.fr/plugins/fusioninventory/

Expected behavior

No error in the logs and information sent to GLPI

Actions you've considered

Should we use http?

Additional context

No response

Error on manual inventory creation

Version: GLPI-Agent-1.0-gitcfde44b6_arm64.pkg

Attempting to create a manual inventory via

./glpi-agent --server=URL

Generates the following error

Execution failure:.
Can't write in /Applications/GLPI-Agent.app/var at /Applications/GLPI-Agent.app/agent/FusionInventory/Agent/Storage.pm line 29.

Add documentation on option "ca-cert-dir"

Documentation

  • Yes, I do

Solution search

  • Yes, I do

Professional support

Yes, I know

Is your help request related to a problem?

No response

Expected behavior

I expect the documentation to tell us hown to use the "ca-cert-dir" configuration.

Actions you've considered

I tried to search Online, but without success.

Additional context

Hello,

In the case of a CA change, we don't want our agents to get disconnected from GLPI.
I see that ca-cert-dir option is made to be able to put multiple CA certificates.
But the documentation says "Indexed Certificates". I don't know how to index them, I tried multiple time to find how to do it without success.
Maybe can you give me a hint, or maybe add the way to do it in the documentation?

Thanks :)

data collection tasks not running

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

No response

Is your help request related to a problem?

Tasks are not executed, in my case it was necessary to collect data. By activating the task, setting the execution time, specifying the goals and performers, and I only get the status prepared, after which it does not change the status. At the same time, GLPI 9.5.6 was deployed with the Fusion Inventory agent and, having performed the same configuration, the tasks are executed, and the agents transmit the data I need to understand that the configuration is performed correctly and I did not find a difference in the task settings in the versions. Based on the above, I ask you to help figure out why the tasks are not being completed.

Expected behavior

A data collection job is running and I am getting the values I need from the registry

Actions you've considered

I created other tasks, changed the time intervals and changed the type of collected resources.
As a result, errors were found, but I do not know how to fix them.

Additional context

log output:
[2022-01-25 16:23:47] glpiphplog.WARNING: *** PHP User Warning (512): �H81:0 ?>4:;NG5=8O. �A;8 �K 8A?>;L7C5B5 ?@>:A8-A5@25@, =0AB@>9B5 53>. (Operation timed out after 5000 milliseconds with 0 out of 0 bytes received) in /var/www/html/glpi/src/Toolbox.php at line 1430
Backtrace :
src/Toolbox.php:1430 trigger_error()
src/GLPINetwork.php:304 Toolbox::callCurl()
src/Marketplace/View.php:134 GLPINetwork::isServicesAvailable()
src/Marketplace/View.php:259 Glpi\Marketplace\View::checkRegistrationStatus()
src/Marketplace/View.php:114 Glpi\Marketplace\View::discover()
src/CommonGLPI.php:687 Glpi\Marketplace\View::displayTabContentForItem()
ajax/common.tabs.php:107 CommonGLPI::displayStandardTab()

[2022-01-25 17:14:03] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 17:15:01] glpiphplog.CRITICAL: *** Uncaught Exception Error: Class 'Queryparam' not found in /var/www/html/glpi/marketplace/glpiinventory/inc/taskjobstate.class.php at line 671
Backtrace :
src/CronTask.php:1001 PluginGlpiinventoryTaskjobstate::cronCleantaskjob()
front/cron.php:82 CronTask::launch()

[2022-01-25 17:28:44] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Mode has not been set in /var/www/html/glpi/src/Agent/Communication/AbstractRequest.php at line 433
Backtrace :
front/inventory.php:72 Glpi\Agent\Communication\AbstractRequest->getResponse()

[2022-01-25 17:28:44] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Mode has not been set in /var/www/html/glpi/src/Agent/Communication/AbstractRequest.php at line 433
Backtrace :
front/inventory.php:72 Glpi\Agent\Communication\AbstractRequest->getResponse()

[2022-01-25 17:28:45] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Mode has not been set in /var/www/html/glpi/src/Agent/Communication/AbstractRequest.php at line 433
Backtrace :
front/inventory.php:72 Glpi\Agent\Communication\AbstractRequest->getResponse()

[2022-01-25 17:44:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 18:14:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 18:44:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 19:14:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 19:44:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 20:14:02] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 20:44:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 21:14:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 21:44:02] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 22:14:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

[2022-01-25 22:44:01] glpiphplog.WARNING: *** PHP User Warning (512): Mising system_user config in /var/www/html/glpi/src/PendingReasonCron.php at line 70
Backtrace :
src/PendingReasonCron.php:70 trigger_error()
src/CronTask.php:1001 PendingReasonCron::cronPendingreason_autobump_autosolve()
front/cron.php:82 CronTask::launch()

*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '5', '2022-01-26 12:22:20', '2022-01-26 12:22:20')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:954 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}
[2022-01-26 12:59:16] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 352
*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '5', '2022-01-26 12:59:16', '2022-01-26 12:59:16')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}
[2022-01-26 15:46:58] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 352
*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '5', '2022-01-26 15:46:57', '2022-01-26 15:46:57')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}
[2022-01-27 00:03:28] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 352
*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '5', '2022-01-27 00:03:28', '2022-01-27 00:03:28')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}
[2022-01-27 15:30:36] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 352
*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '6', '2022-01-27 15:30:35', '2022-01-27 15:30:35')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:954 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}
[2022-01-27 15:44:34] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 352
*** MySQL query error:
SQL: INSERT INTO glpi_computerantiviruses (name, manufacturers_id, signature_version, is_active, is_uptodate, antivirus_version, is_dynamic, computers_id, date_creation, date_mod) VALUES ('Windows Defender', '1', '1.303.25.0', '', '1', '', '1', '6', '2022-01-27 15:44:34', '2022-01-27 15:44:34')
Error: Incorrect integer value: '' for column GLPI.glpi_computerantiviruses.is_active at row 1
Backtrace :
src/DBmysql.php:1180
src/CommonDBTM.php:652 DBmysql->insert()
src/CommonDBTM.php:1242 CommonDBTM->addToDB()
src/Inventory/Asset/Antivirus.php:138 CommonDBTM->add()
src/Inventory/Asset/MainAsset.php:751 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:672 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1496 RuleImportAsset->executeActions()
src/RuleCollection.php:1583 Rule->process()
src/Inventory/Asset/MainAsset.php:515 RuleCollection->processAllRules()
src/Inventory/Inventory.php:658 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:324 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:318 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:83 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:292 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:212 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front/inventory.php:57 Glpi\Agent\Communication\AbstractRequest->handleRequest()
{"user":"[email protected]"}

AnyDesk Client Application customized for Linux and macOS.

Documentation

Yes, I read it

Professional support

I still have but want a public following to inform the community

Is your feature request related to a problem?

Hi @g-bougard,

As stated in the Issue #59 (and solved for MS-Windows), ultimately Linux and Apple macOS presents a specific directory for custom installations of the customized AnyDesk Client Application, with this file tree :

On Linux (rhel 8.5 RPM modified installation) :

[homebrewtainy@homebrewtainy-dev ~]# ls -alZ /etc/any*
/etc/anydesk:
total 24
drwxr-xr-x.   2 root root system_u:object_r:etc_t:s0    73  6 févr. 15:10 .
drwxr-xr-x. 155 root root system_u:object_r:etc_t:s0 12288  6 févr. 15:10 ..
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0     0  6 févr. 15:10 connection_trace.txt
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0  2762  6 févr. 15:10 service.conf
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0   519  6 févr. 15:11 system.conf

/etc/anydesk_ad_########:
total 24
drwxr-xr-x.   2 root root system_u:object_r:etc_t:s0    73  6 févr. 15:41 .
drwxr-xr-x. 155 root root system_u:object_r:etc_t:s0 12288  6 févr. 15:41 ..
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0     0  6 févr. 15:41 connection_trace.txt
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0  2762  6 févr. 15:41 service.conf
-rw-r--r--.   1 root root system_u:object_r:etc_t:s0   531  6 févr. 15:42 system.conf
[homebrewtainy@homebrewtainy-dev ~]#

On macOS (Big Sur DMG installation) :

homebrewtainy@Mac-de-homebrewtainy ~ % ls -al /etc/anydesk_ad_########
total 32
drwxr-xr-x   8 root  staff   256  6 fév 17:11 .
drwxr-xr-x  86 root  wheel  2752  6 fév 17:39 ..
drwx------   2 root  staff    64  6 fév 17:11 AnyDesk
-rw-rw-r--   1 root  staff   182  6 fév 17:22 connection_trace.txt
drwx------   2 root  staff    64  6 fév 17:11 incoming
-rw-rw-r--   1 root  staff  2952  6 fév 17:22 service.conf
-rw-rw-r--   1 root  staff   512  6 fév 18:15 system.conf
-rw-r--r--   1 root  staff   229  6 fév 17:11 user.conf
homebrewtainy@Mac-de-homebrewtainy ~ %

Expected behavior

Here is the information to complete the possible improvement of the GLPI-Agent Remote Management module.

Alternatives you've considered

Thank you for your attention.

Regards.

Additional context

No response

Agent crash loop when using ADMX

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

When deploying configuration for agent by GPO with the given ADMX, something goes wrong.

Here is a screen of registry with keys created by .msi:

image

Here is a screen of registry with keys created by ADMX:

image

It looks like some keys are not getting parsed properly because when we try to repair the installation using the installer this is what get parsed:

image

And the agent crash loop while trying to contact the server with a misleading error:

[Mon Feb 14 11:40:28 2022][info] GLPI Agent service starting
[Mon Feb 14 11:40:29 2022][info] GLPI Agent memory usage: WSS=3670016 PFU=82358272
[Mon Feb 14 11:40:29 2022][info] target server0: next run: Mon Feb 14 11:40:20 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:29 2022][info] target server0: server https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:30 2022][info] sending prolog request to server0
[Mon Feb 14 11:40:30 2022][error] [http client] communication error: 500 Can't connect to [REDACTED]:443 (Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.)
[Mon Feb 14 11:40:30 2022][error] No answer from server at https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:30 2022][info] target server0: next run: Mon Feb 14 11:40:30 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:31 2022][info] target server0: server https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:31 2022][info] sending prolog request to server0
[Mon Feb 14 11:40:31 2022][error] [http client] communication error: 500 Can't connect to [REDACTED]:443 (Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.)
[Mon Feb 14 11:40:31 2022][error] No answer from server at https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:31 2022][info] target server0: next run: Mon Feb 14 11:40:31 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:32 2022][info] target server0: server https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:32 2022][info] sending prolog request to server0
[Mon Feb 14 11:40:32 2022][error] [http client] communication error: 500 Can't connect to [REDACTED]:443 (Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.)
[Mon Feb 14 11:40:32 2022][error] No answer from server at https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:32 2022][info] target server0: next run: Mon Feb 14 11:40:32 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:33 2022][info] target server0: server https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:33 2022][info] sending prolog request to server0
[Mon Feb 14 11:40:33 2022][error] [http client] communication error: 500 Can't connect to [REDACTED]:443 (Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu.)
[Mon Feb 14 11:40:33 2022][error] No answer from server at https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:33 2022][info] target server0: next run: Mon Feb 14 11:40:33 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Mon Feb 14 11:40:34 2022][info] target server0: server https://[REDACTED]/plugins/glpiinventory/index.php

I guess there is a try-catch around the request and the request cannot be made because of a wrong timeout parameter.

I hope all my infos can help :

To reproduce

Install the agent and try to edit the config trought GPO ADMX

Expected behavior

No crash

Operating system

Windows

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.0-rc4

Additional context

I also saw that there is no documentation for the paremeter "conf-reload-interval" and it's not possible to edit it during installation or trought ADMX.

Error with proxy plugin

Documentation

  • Yes, I do

Solution search

  • Yes, I do

Professional support

Yes, I know

Is your help request related to a problem?

I´m triying to configure glpi-agent proxy plugin. I get the service up. Then, from another agent I configure the following URL in server: http://PROXY_AGENT_IP/proxy/glpi.

When agent sent inventory to proxy I can see this logs:

image

I don't see any errors, but I can't see the inventory on the server either.

Expected behavior

Getting the inventory on server side.

Actions you've considered

I have added the parameters (only_local_store = no | local_store = /tmp ) but it doesn't generate the file locally either.

Additional context

No response

[1.0-beta1] Unable to access agent httpd interface after remote installation

Bug reporting acknowledgment

  • Yes, I read it

Professional support

Yes, I know

Describe the bug

I don't know if it's the msi problem - when I install fusioninventory-agent - it works. The service does not start with glpi-agent and I do not have an answer by http.

And BTW. In file glpi-agent-packaging.pl:
$result .= $ident ." ". qq[ <RegistryKey Root="HKLM" Key="Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\[ProductCode]">\n];
But in .vbs:
strCurrentSetupVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\GLPI-Agent\DisplayVersion")

Checking if the subkey exist in vbs will always fail because DisplayVersion is in: Uninstall\{FA01074A-6BF8-1014-B0E8-F9F8208C43AB}

To reproduce

  1. First try with psexec:

psexec.exe \\computername -s msiexec.exe /i "\\computername\c$\temp\glpi-agent-1.0-beta1-x64.msi" RUNNOW=1 EXECMODE=service NO_SSL_CHECK=1 HTTPD_TRUST=192.168.1.11 HTTPD_PORT=61111 SERVER='https://server.com/plugins/fusioninventory/' LOGFILE='C:\GLPI\glpi-agent.log' LOCAL='C:\GLPI\' /quiet

  1. Second try with vbs - setup option like before.

Expected behavior

It would be nice to get a reply over http

http://computername:61111

Operating system

Windows

GLPI Agent version

1.0-beta1

GLPI version

9.5.6

FusionInventory for GLPI version

9.5+3.0

Additional context

Agent installed correctly (except for the no-service issue). It communicates with the server without errors. But I need ToolBox :)

Installation using the graphical interface does not cause this problem.

retrieve wsl instances and add them to virtualmachines node

wsl -l -v to know all instance and their state (stopped, running for example)

image

current memory usage can be retrieved in the task manager (vmmem process)
image
max memory is the same as the host machine but i read it can be limited

processors numbers is the same as the host machine

for other informations (example getting uuid) you can run commands though wsl in windows:
wsl <linux-command>

maybe wmi also have informations but i didn't found any informations

https://wiki.ubuntu.com/WSL

ESX task failure with glpi 10-beta

Hi @g-bougard

i force task ESX from GLPI and run cmd on agent.

C:\Program Files\GLPI-Agent>glpi-agent.bat --logger=stderr --debug --debug --tasks=ESX
[debug] Logger backend Stderr initialized
[debug] Logger backend File initialized
[debug] GLPI Agent (1.1-git31840f5c)
[debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[debug] Data directory: C:/Program Files/GLPI-Agent/share
[debug] Storage directory: C:\Program Files\GLPI-Agent\var
[debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[debug] [target server0] Next server contact planned for Wed Jan  5 13:34:17 2022
[debug2] getAvailableTasks() : add of task Collect version 2.7
[debug2] getAvailableTasks() : add of task Deploy version 2.9
[debug2] getAvailableTasks() : add of task ESX version 2.7
[debug2] getAvailableTasks() : add of task Inventory version 1.10
[debug2] getAvailableTasks() : add of task NetDiscovery version 4.4
[debug2] getAvailableTasks() : add of task NetInventory version 4.4
[debug2] getAvailableTasks() : add of task RemoteInventory version 0.9
[debug2] Preparing execution plan
[debug] Available tasks:
[debug] - Collect: 2.7
[debug] - Deploy: 2.9
[debug] - ESX: 2.7
[debug] - Inventory: 1.10
[debug] - NetDiscovery: 4.4
[debug] - NetInventory: 4.4
[debug] - RemoteInventory: 0.9
[debug] target server0: server http://GLPI-Serveur/plugins/glpiinventory
[debug] Planned tasks for server0: ESX
[debug] Provided by Teclib Edition
[debug] Installer built on Sat Dec 25 02:17:49 2021 UTC
[debug] Built with Strawberry Perl 5.34.0
[debug] Built on github actions windows image for glpi-project/glpi-agent repository
[debug] Running in foreground mode
[info] target server0: server http://GLPI-Serveur/plugins/glpiinventory
[debug] [http client] 39A91910: Using Compress::Zlib for compression
[info] sending contact request to server0
[debug2] [http client] 39A91910: sending message:
{
   "action": "contact",
   "deviceid": "GLPI-Agent.dom1-2021-12-30-10-26-09",
   "enabled-tasks": [
      "esx"
   ],
   "installed-tasks": [
      "collect",
      "deploy",
      "esx",
      "inventory",
      "netdiscovery",
      "netinventory",
      "remoteinventory"
   ],
   "name": "GLPI-Agent",
   "tag": "Tag,
   "version": "1.1-git31840f5c"
}
[debug2] format: Zlib
[debug2] [http client] 39A91910: received message:
{"expiration":24,"status":"ok"}
[info] running task ESX
[debug2] http://GLPI-Serveur/plugins/glpiinventory?action=getConfig&machineid=GLPI-Agent.dom1-2021-12-30-10-26-09&task[ESX]=2.7
[info] No ESX job enabled or ESX support disabled server side.

Edit, second test i have an error

C:\Program Files\GLPI-Agent>glpi-agent.bat --logger=stderr --debug --debug --tasks=ESX
[debug] Logger backend Stderr initialized
[debug] Logger backend File initialized
[debug] GLPI Agent (1.1-git31840f5c)
[debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[debug] Data directory: C:/Program Files/GLPI-Agent/share
[debug] Storage directory: C:\Program Files\GLPI-Agent\var
[debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[debug] [target server0] Next server contact planned for Wed Jan  5 13:41:25 2022
[debug2] getAvailableTasks() : add of task Collect version 2.7
[debug2] getAvailableTasks() : add of task Deploy version 2.9
[debug2] getAvailableTasks() : add of task ESX version 2.7
[debug2] getAvailableTasks() : add of task Inventory version 1.10
[debug2] getAvailableTasks() : add of task NetDiscovery version 4.4
[debug2] getAvailableTasks() : add of task NetInventory version 4.4
[debug2] getAvailableTasks() : add of task RemoteInventory version 0.9
[debug2] Preparing execution plan
[debug] Available tasks:
[debug] - Collect: 2.7
[debug] - Deploy: 2.9
[debug] - ESX: 2.7
[debug] - Inventory: 1.10
[debug] - NetDiscovery: 4.4
[debug] - NetInventory: 4.4
[debug] - RemoteInventory: 0.9
[debug] target server0: server http://GLPI-Serveur/plugins/glpiinventory
[debug] Planned tasks for server0: ESX
[debug] Provided by Teclib Edition
[debug] Installer built on Sat Dec 25 02:17:49 2021 UTC
[debug] Built with Strawberry Perl 5.34.0
[debug] Built on github actions windows image for glpi-project/glpi-agent repository
[debug] Running in foreground mode
[info] target server0: server http://GLPI-Serveur/plugins/glpiinventory
[debug] [http client] 192001E3: Using Compress::Zlib for compression
[info] sending contact request to server0
[debug2] [http client] 192001E3: sending message:
{
   "action": "contact",
   "deviceid": "GLPI-Agent-2021-12-30-10-26-09",
   "enabled-tasks": [
      "esx"
   ],
   "installed-tasks": [
      "collect",
      "deploy",
      "esx",
      "inventory",
      "netdiscovery",
      "netinventory",
      "remoteinventory"
   ],
   "name": "GLPI-Agent",
   "tag": "Tag",
   "version": "1.1-git31840f5c"
}
[debug2] format: Zlib
[debug2] [http client] 192001E3: received message:
{"expiration":24,"status":"ok"}
[info] running task ESX
[debug2] http://GLPI-Serveur/plugins/glpiinventory?action=getConfig&task[ESX]=2.7&machineid=GLPI-Agent-2021-12-30-10-26-09
[debug2] http://GLPI-Serveur/plugins/glpiinventory/b/esx/?action=getJobs&machineid=GLPI-Agent-2021-12-30-10-26-09
[info] Got 1 VMware host(s) to inventory.
[error] Undefined subroutine &GLPI::Agent::Task::ESX::uuid_to_string called at C:/Program Files/GLPI-Agent/perl/agent/GLPI/Agent/Task/ESX.pm line 202.

Originally posted by @bbreton09 in glpi-project/glpi#10162 (comment)

Virtual machine is not imported into assets->computers

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

No response

Is your help request related to a problem?

I can't import the virtual machine in assets->computers. The virtual machine is displayed in the GLPI Inventory plugin, but I have not progressed beyond this point.

Virtual machines are deployed through the Hyper-V hypervisor.

Expected behavior

After installing the agent on the virtual machine, I want to see it added to assets->computers

Actions you've considered

Installed the latest nightly builds, changed import rules

Additional context

No response

AnyDesk Remote Mgmt Inventory and the customized version of its Client Application.

Documentation

Yes, I read it

Professional support

I still have but want a public following to inform the community

Is your feature request related to a problem?

A large part of the " AnyDesk Client Software " installations are done with a "customized" version of it.

This method allows the creation of a deployment package containing preconfigurations, security rules, branding, and more.
https://youtu.be/KbRKzDWd-BA?list=PLlEnzX2FLqbs_GC8rUUn4I5rwMJFwki8n

In this case, AnyDesk Software GmbH must assign a "prefix" attached to the user account which generated the "Customized AnyDesk Client".
This deployment behavior is commonly used on MS-Windows environments

This results in a _anydesk_config folder no longer in the expected form C:\ProgramData\AnyDesk\system.conf but in this form:
C:\ProgramData\AnyDesk\ad_#hexnum#\system.conf for example C:\ProgramData\AnyDesk\ad_a0b2c3d4\system.conf
This form of configuration file is then ignored by the inventory Inventory\Generic\Remote_Mgmt\AnyDesk.pm

Expected behavior

Is there a way to allow the AnyDesk.pm module to consider these installation configurations, as they are officially offered by AnyDesk Software GmbH?

Alternatives you've considered

The GLPI Agent being installed, on MS-Windows, by running an MSI file, manual modification, on a case-by-case basis, of the AnyDesk.pm file is not a sustanable solution.

Thank you for your attention.

Regards.

Additional context

No response

Add an option to migrate from Fusion Inventory to GLPI Agent ?

Documentation

Yes, I read it

Professional support

Yes, I know

Is your feature request related to a problem?

Not really a problem, but an improvement

Expected behavior

I would like to get a flag to be able to uninstall Fusion Inventory when installating GLPI agent.

Alternatives you've considered

At the moment, we have to deploy two GPO, one that uninstall Fusion Inventory, one that install GLPI Agent.

Additional context

I know there was an option built in the Fusion Inventory to uninstall OCS Inventory.
It could be a good idea to get the same option to uninstall Fusion Inventory Agent when installing GLPI Agent.

Otherwise, the agent works great :)

How to install glpi-agent automaticly with msiexec ?

Hi !
I'd like ton install with a GPO glpi-agent on all the computer in my company. I created a file .bat with msiexec but i don't know the parameters to specify the server name an accept the licence...
Can you help me please ?

Thank you ;)

glpi-injector: JSON validate error, properties not allowed

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

GLPI-Server: 10.0.0-RC1 in docker-App-Stack
GLPI-Agent: 1.1 (release) on Windows 10 Pro x64 21H2, Powershell

tl;dr: i can not import a Kyocera Color Laser printer with snmp

I start a NET-Discovery with:
.\glpi-netdiscovery.bat --first=192.168.201.10 --last=192.168.201.25 --control --inventory --save="C:\Temp\glpi-agent" --debug --threads=5

The Import gives me:

$ .\glpi-injector.bat -v -d C:\Temp\glpi-agent\netdiscovery\ --url https://*********************/front/inventory.php --debug --debug
Loading C:\Temp\glpi-agent\netdiscovery\/192.168.201.12.xml...[B32B82B6] OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>

Loading C:\Temp\glpi-agent\netdiscovery\/192.168.201.14.xml...[B5A5BC6D] OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>

Loading C:\Temp\glpi-agent\netdiscovery\/192.168.201.15.xml...[6D25C8CE] ERROR: Array
(
    [0] => JSON does not validate. Violations:
Additional properties not allowed: hardware at #->$ref[inventory.schema.json]

)

FYI: Serial, Mac and Server URL changed for privacy

To reproduce

.\glpi-netdiscovery.bat --first=192.168.201.10 --last=192.168.201.25 --control --inventory --save="C:\Temp\glpi-agent" --debug --threads=5
.\glpi-injector.bat -v -d C:\Temp\glpi-agent\netdiscovery\ --url https://*********************/front/inventory.php --debug --debug

Expected behavior

should import without error

Operating system

Windows

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.0-rc4

Additional context

***.15.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHPORT />  <AUTHPROTOCOL />  <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>TA_UTAX Printing System</DESCRIPTION>
      <IP>192.168.201.15</IP>
      <IPS>
        <IP>192.168.201.15</IP>
      </IPS>
      <MAC>00:17:c8:99:99:99</MAC>
      <MANUFACTURER>Kyocera</MANUFACTURER>
      <MODEL>2507ci</MODEL>
      <NETBIOSNAME>NM8BB1ED</NETBIOSNAME>
      <SERIAL>RGT9999999</SERIAL>
      <SNMPHOSTNAME>NM8BB1ED</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>3 days, 20:11:03.77</UPTIME>
      <WORKGROUP>NM-NETPRINTERS</WORKGROUP>
    </DEVICE>
    <MODULEVERSION>5.0</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

***.14.xml (corct importing):

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHPORT />  <AUTHPROTOCOL />  <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>UTAX_TA Printing System</DESCRIPTION>
      <IP>192.168.201.14</IP>
      <IPS>
        <IP>192.168.201.14</IP>
      </IPS>
      <MAC>00:17:c8:99:99:99</MAC>
      <MANUFACTURER>Kyocera</MANUFACTURER>
      <MODEL>2506ci</MODEL>
      <SERIAL>VFL68888888</SERIAL>
      <SNMPHOSTNAME>NM28C0D6</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>3 days, 20:11:08.22</UPTIME>
    </DEVICE>
    <MODULEVERSION>5.0</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

Same happens with netinventory files, with even more errors.

 .\glpi-injector.bat -v -d C:\Temp\glpi-agent\netinventory\ --url https://**************************/front/inventory.php --debug --debug
Loading C:\Temp\glpi-agent\netinventory\/192.168.201.12.xml...[D7BC1FFD] OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>

Loading C:\Temp\glpi-agent\netinventory\/192.168.201.14.xml...[FA3F4337] ERROR: Array
(
    [0] => JSON does not validate. Violations:
Additional properties not allowed: copycolor at #->$ref[inventory.schema.json]->properties:content->properties:pagecounters

)

DEBUG: <?xml version="1.0"?>
<REPLY><ERROR>Array
(
    [0] =&gt; JSON does not validate. Violations:
Additional properties not allowed: copycolor at #-&gt;$ref[inventory.schema.json]-&gt;properties:content-&gt;properties:pagecounters

)
</ERROR></REPLY>

Loading C:\Temp\glpi-agent\netinventory\/192.168.201.15.xml...[2910A519] ERROR: Array
(
    [0] => JSON does not validate. Violations:
Additional properties not allowed: copycolor at #->$ref[inventory.schema.json]->properties:content->properties:pagecounters

)

Silent installation not possible with VBS script

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

I still have but want a public following to help the community

Is your help request related to a problem?

Unable to set up a silent installation via the VBS Script provided on the site.
I have used the /i /quiet options but it doesn't work, but when I remove them no problem via the graphical installation.
Here is my complete "SetupOptions" line:
SetupOptions = "/i /quiet ADD_FIREWALL_EXCEPTION=1 RUNNOW=1 HTTPD_TRUST='0.0.0.0/0' SERVER='http://192.1.6.223/front/inventory.php' TASKS=Deploy,Inventory,Collect"

Thanks for your answer and your time.

Expected behavior

I expected the agent to install properly and silently without any problems.

Actions you've considered

I have tried several different methods with only /i or only /quiet , or /S which is used in our current production script.
I also tried running it with the FusionInventory agent uninstalled or not (which works fine when the agent is on the user's machine)

Additional context

No response

[AGENT-GLPI] Uncaught Exception TypeError: Agent::requestAgent

Bug reporting acknowledgment

Yes, I read it

Professional support

No response

Describe the bug

I wanted to test the upgrade of a computer station on my GLPI 10 test version but I have a bug if I want to force the GLPI inventory to the computer station

I go back the first time the computer with the agent glpi see

But if I want to force an inventory or see the status of the agent from GLPI 10.0. The arrows turn loop

Does this functionality work with the Beta version of GLPI10 with AGENT_GLPI ?

To reproduce

1.Go to Computer
2. Go click inventor
Sans titre

Expected behavior

For test
http://localhost:62354/ ==> Glpi OK , information is OK

GLPI contact inventory is ko with error

Log

[2022-01-07 14:24:17] glpiphplog.WARNING:   *** PHP Warning (2): Undefined variable $response in /var/www/html/glpi10beta/src/Agent.php at line 584
  Backtrace :
  src/Agent.php:608                                  Agent->requestAgent()
  ajax/agent.php:54                                  Agent->requestInventory()
  
[2022-01-07 14:24:17] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: Agent::requestAgent(): Return value must be of type GuzzleHttp\Psr7\Response, null returned in /var/www/html/glpi10beta/src/Agent.php at line 584
  Backtrace :
  src/Agent.php:608                                  Agent->requestAgent()
  ajax/agent.php:54                                  Agent->requestInventory()

Operating system

Linux

GLPI Agent version

Nightly build (git version in additional context below)

GLPI version

10.0.0-beta

GLPIInventory plugin or FusionInventory for GLPI plugin version

Not applicable

Additional context

No response

ERROR: XML not well formed!

Bug reporting acknowledgment

Yes, I read it

Professional support

No response

Describe the bug

Inventory task running, but don't sending it to server due to the XML not well formed! error!. Agent visible in Glpi server.

[Tue Feb 15 09:47:01 2022][info] GLPI Agent service starting
[Tue Feb 15 09:47:02 2022][info] [http server] HTTPD service started on port 62354
[Tue Feb 15 09:47:03 2022][info] GLPI Agent memory usage: WSS=3731456 PFU=102486016
[Tue Feb 15 09:47:03 2022][info] target server0: next run: Tue Feb 15 10:35:23 2022 - http://[REDACTED]/front/inventory.php
[Tue Feb 15 09:47:28 2022][info] target server0: server http://[REDACTED]/front/inventory.php
[Tue Feb 15 09:47:28 2022][info] sending prolog request to server0
[Tue Feb 15 09:47:28 2022][info] server0 answer shows it supports GLPI Agent protocol
[Tue Feb 15 09:47:28 2022][info] running task Deploy
[Tue Feb 15 09:47:28 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Tue Feb 15 09:47:28 2022][info] Deploy task not supported by server0
[Tue Feb 15 09:47:32 2022][info] running task ESX
[Tue Feb 15 09:47:32 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Tue Feb 15 09:47:32 2022][info] ESX task not supported by server0
[Tue Feb 15 09:47:36 2022][info] running task Collect
[Tue Feb 15 09:47:36 2022][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Tue Feb 15 09:47:36 2022][info] Collect task not supported by server0
[Tue Feb 15 09:47:37 2022][info] running task Inventory
[Tue Feb 15 09:47:37 2022][info] New inventory from [REDACTED]-2022-02-15-09-47-01 for server0
[Tue Feb 15 09:50:18 2022][error] [http client] communication error: 400 Bad Request
[Tue Feb 15 09:50:18 2022][error] [http client] unexpected content, starting with: <?xml version="1.0"?>
<REPLY><ERROR>XML not well formed!</ERROR></REPLY>
[Tue Feb 15 09:50:21 2022][info] target server0: next run: Tue Feb 15 10:48:09 2022 - http://[REDACTED]/front/inventory.php
[Tue Feb 15 09:50:21 2022][info] GLPI Agent memory usage: WSS=3387392 PFU=159903744
[Tue Feb 15 09:50:23 2022][info] running task Deploy: storage maintenance event

Running glpi-inventory --json > inventory.json and then injecting it to server, also ends with:

ERROR: XML not well formed!
These elements were not sent:
inventory.json

To reproduce

  1. Run Inventory task.

Expected behavior

Inject data to GLPI server.

Operating system

Windows

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

No response

Additional context

No response

[Windows] VBS script error function name

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

the variable name UninstallFusionInventoryAgent return error can't reassing variable.

I changed the variable name to RunUninstallFusionInventoryAgent and worked.

To reproduce

Double click on Windows PC

Expected behavior

This script should run silently.

Operating system

Windows

GLPI Agent version

1.0

GLPI version

10.0.0-beta

GLPIInventory plugin or FusionInventory for GLPI plugin version

10.0.0-rc2

Additional context

No response

No inventory in GLPI 10

Hi @g-bougard

I see a new problem with the agent:

I decided to deploy to multiple computers. (Same brand, model and configuration). Installing the agent manually (same agent, same version). On some computer everything is OK, inventory without problem. On others the agent goes up in GLPI but does not make any inventory. We don't even see the version of the agent.

The agent is present but the pc does not go up

Here log :

[Mon Jan 31 09:44:59 2022][info] GLPI Agent service starting
[Mon Jan 31 09:45:00 2022][info] [http server] HTTPD service started on port 62354
[Mon Jan 31 09:45:01 2022][info] GLPI Agent memory usage: WSS=3764224 PFU=104599552
[Mon Jan 31 09:45:01 2022][info] target server0: server https://glpi.SERVEUR/front/inventory.php
[Mon Jan 31 09:45:01 2022][info] sending prolog request to server0
[Mon Jan 31 09:45:01 2022][info] server0 answer shows it supports GLPI Agent protocol
[Mon Jan 31 09:45:08 2022][info] running task Inventory
[Mon Jan 31 09:45:08 2022][info] New inventory from LAPTOPFAILINVENTORY-2022-01-31-09-44-59 for server0
[Mon Jan 31 09:47:55 2022][info] GLPI Agent memory usage: WSS=3350528 PFU=165687296
[Mon Jan 31 09:48:18 2022][info] sending contact request to server0
[Mon Jan 31 09:48:22 2022][info] running task Inventory
[Mon Jan 31 09:48:22 2022][info] New inventory from LAPTOPFAILINVENTORY-2022-01-31-09-44-59 for server0
[Mon Jan 31 09:49:00 2022][info] GLPI Agent memory usage: WSS=3350528 PFU=168800256

brave_eMxY0BOuR9

Originally posted by @Deki60 in #42 (comment)

How to install the agent on MacOS (intel version)

I know how to install the FusionInventory Agent, I can modify the agent.cfg then install the package and it works perfectly. But It seems that it's not the same process for the GLPI Agent. How can I configure the agent ?

EDIT: if this information can help, one device is a Mac Pro on MacOS X El Capitan and the other one is a iMac Pro on MacOS Big Sur.

Pb in opensolaris/openindiana

Bug reporting acknowledgment

Yes, I read it

Professional support

No response

Describe the bug

Hello,

When executing remote task (with glpi-agent --tasks remoteinventory) i get this output :

Use of uninitialized value $id in pattern match (m//) at /usr/share/glpi-agent/lib/GLPI/Agent/Tools/Solaris.pm line 380.
Use of uninitialized value in numeric gt (>) at /usr/share/glpi-agent/lib/GLPI/Agent/Task/Inventory/Virtualization/SolarisZones.pm line 75.
Use of uninitialized value in numeric eq (==) at /usr/share/glpi-agent/lib/GLPI/Agent/Task/Inventory/Virtualization/SolarisZones.pm line 75.

Config :

  • Remote inventory with ssh
  • glpi-agent run on debian 10
  • remote server is on openindiana OpenIndiana (powered by illumos) SunOS 5.11 oi_151a9 May 2015

Best regards

To reproduce

just run glpi-agent remote task for a server with openindiana 151.

Expected behavior

no error message

Operating system

Linux, Other (See additional context below)

GLPI Agent version

1.0

GLPI version

9.5.6

GLPIInventory plugin or FusionInventory for GLPI plugin version

9.5+3.0

Additional context

No response

Page Code Trouble in inventory

Bug reporting acknowledgment

Yes, I read it

Professional support

I still have but want a public following to keep the community aware

Describe the bug

GLPI-Agent (MS-Windows x64) inventories send with page code char anomaly.

To reproduce

Fresh GLPI 10 beta installation ( GLPI master.0f54d02 nightly builds ) in french environment
Run fine
Latest Windows x64 GLPI Agent ( GLPI-Agent-1.1-git31840f5c-x64.msi nightly builds ) in french environment

Inventory planned has system service and run fine => computer is created in GLPI.
Some Assets, like " Software " returns with some text with diacritical characters (see screen capture bellow).

image

Informations sur le système, l'installation et la configuration
GLPI 10.0.0-dev ( => /usr/share/glpi)
Installation mode: TARBALL to FHS
Current language:fr_FR
Server
 
Operating system: Linux glpi.jdhweb.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Tue Dec 21 13:57:48 EST 2021 x86_64
PHP 8.0.14 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, bcmath, bz2, calendar, cgi-fcgi, ctype,
	curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring,
	mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, selinux, session, shmop, sockets, sodium, sqlite3, standard,
	sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
	upload_max_filesize="2M" 
Software: Apache/2.4.37 (AlmaLinux) ()
	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Server Software: MariaDB Server
	Server Version: 10.3.28-MariaDB
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: glpi_db_user@localhost/glpi_db
	Host info: Localhost via UNIX socket

PHP version (8.0.14) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
Database engine version (10.3.28) is supported.
The log file has been created successfully.
Write access to /var/lib/glpi/files/_cache has been validated.
Write access to /etc/glpi has been validated.
Write access to /var/lib/glpi/files/_cron has been validated.
Write access to /var/lib/glpi/files has been validated.
Write access to /var/lib/glpi/files/_dumps has been validated.
Write access to /var/lib/glpi/files/_graphs has been validated.
Write access to /var/lib/glpi/files/_lock has been validated.
Write access to /var/lib/glpi/files/_pictures has been validated.
Write access to /var/lib/glpi/files/_plugins has been validated.
Write access to /var/lib/glpi/files/_rss has been validated.
Write access to /var/lib/glpi/files/_sessions has been validated.
Write access to /var/lib/glpi/files/_tmp has been validated.
Write access to /var/lib/glpi/files/_uploads has been validated.
SELinux configuration is OK.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /usr/share/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /usr/share/glpi
GLPI_CONFIG_DIR: /etc/glpi
GLPI_VAR_DIR: /var/lib/glpi/files
GLPI_LOG_DIR: /var/log/glpi
GLPI_SYSTEM_CRON: 1
GLPI_INSTALL_MODE: TARBALL to HFS
GLPI_MARKETPLACE_DIR: /usr/share/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_DOC_DIR: /var/lib/glpi/files
GLPI_CACHE_DIR: /var/lib/glpi/files/_cache
GLPI_CRON_DIR: /var/lib/glpi/files/_cron
GLPI_DUMP_DIR: /var/lib/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/lib/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/lib/glpi/files/_locales
GLPI_LOCK_DIR: /var/lib/glpi/files/_lock
GLPI_PICTURE_DIR: /var/lib/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/lib/glpi/files/_plugins
GLPI_RSS_DIR: /var/lib/glpi/files/_rss
GLPI_SESSION_DIR: /var/lib/glpi/files/_sessions
GLPI_TMP_DIR: /var/lib/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/lib/glpi/files/_uploads
GLPI_INVENTORY_DIR: /var/lib/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /usr/share/glpi/locales
GLPI_VERSION: 10.0.0-dev
GLPI_SCHEMA_VERSION: 10.0.0-dev@e0e0feeb52f1b9c723920ea3e0ae2ff8e02b981f
GLPI_MARKETPLACE_PRERELEASES: 1
GLPI_MIN_PHP: 7.4.0
GLPI_YEAR: 2021
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/usr/share/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.5.3 in (/usr/share/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/usr/share/glpi/vendor/simplepie/simplepie/library)
mpdf/mpdf in (/usr/share/glpi/vendor/mpdf/mpdf/src)
michelf/php-markdown in (/usr/share/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/usr/share/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/usr/share/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/usr/share/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/usr/share/glpi/vendor/sabre/http/lib)
sabre/uri in (/usr/share/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/usr/share/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/usr/share/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/usr/share/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/usr/share/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/usr/share/glpi/vendor/sebastian/diff/src)
elvanto/litemoji in (/usr/share/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/usr/share/glpi/vendor/symfony/console)
scssphp/scssphp in (/usr/share/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/usr/share/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/usr/share/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/usr/share/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/usr/share/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/usr/share/glpi/vendor/ramsey/uuid/src)
psr/log in (/usr/share/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/usr/share/glpi/vendor/psr/simple-cache/src)
psr/cache in (/usr/share/glpi/vendor/psr/cache/src)
league/csv in (/usr/share/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/usr/share/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/usr/share/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/usr/share/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/usr/share/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/usr/share/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/usr/share/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/usr/share/glpi/vendor/symfony/cache)
html2text/html2text in (/usr/share/glpi/vendor/html2text/html2text/src)
symfony/dom-crawler in (/usr/share/glpi/vendor/symfony/dom-crawler)
twig/twig in (/usr/share/glpi/vendor/twig/twig/src)
twig/string-extra in (/usr/share/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
phpCas version 1.4.0 in (/usr/share/pear)
SQL replicas
 
Not active
Notifications
 
Way of sending emails: PHP
Plugins list
 

GLPI MariaDB Database build with : CHARACTER SET utf8 COLLATE utf8_general_ci

Log files

glpi-agent.log debug Level 1 log file
 
[Thu Jan  6 11:02:28 2022][debug] Logger backend File initialized
[Thu Jan  6 11:02:28 2022][debug] GLPI Agent (1.1-git31840f5c)
[Thu Jan  6 11:02:28 2022][debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[Thu Jan  6 11:02:28 2022][debug] Data directory: C:/Program Files/GLPI-Agent/share
[Thu Jan  6 11:02:28 2022][debug] Storage directory: C:\Program Files\GLPI-Agent\var
[Thu Jan  6 11:02:28 2022][debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[Thu Jan  6 11:02:28 2022][debug] [target server0] Next server contact planned for Thu Jan  6 11:33:28 2022
[Thu Jan  6 11:02:28 2022][debug] Available tasks:
[Thu Jan  6 11:02:28 2022][debug] - Collect: 2.7
[Thu Jan  6 11:02:28 2022][debug] - Deploy: 2.9
[Thu Jan  6 11:02:28 2022][debug] - Inventory: 1.10
[Thu Jan  6 11:02:28 2022][debug] - RemoteInventory: 0.9
[Thu Jan  6 11:02:28 2022][debug] target server0: server https://glpi.__Server-Name__.com/front/inventory.php
[Thu Jan  6 11:02:28 2022][debug] Planned tasks for server0: Deploy,RemoteInventory,Collect,Inventory
[Thu Jan  6 11:02:28 2022][debug] Provided by Teclib Edition
[Thu Jan  6 11:02:28 2022][debug] Installer built on Sat Dec 25 02:17:49 2021 UTC
[Thu Jan  6 11:02:28 2022][debug] Built with Strawberry Perl 5.34.0
[Thu Jan  6 11:02:28 2022][debug] Built on github actions windows image for glpi-project/glpi-agent repository
[Thu Jan  6 11:02:28 2022][info] GLPI Agent service starting
[Thu Jan  6 11:02:28 2022][debug] Trusted target ip: ____Server-Name-IPv6___/128, Server-Name-IPv4, ::ffff:5240:7913/128
[Thu Jan  6 11:02:28 2022][debug] Trusted client ip: 127.0.0.1/32, ::ffff:700:1/128, ::1/128
[Thu Jan  6 11:02:28 2022][debug] [http server] Trying to load Inventory Server plugin
[Thu Jan  6 11:02:28 2022][debug] [inventory server plugin] Initializing Inventory v1.1 Server plugin...
[Thu Jan  6 11:02:28 2022][debug] [inventory server plugin] Loading Inventory Server plugin configuration from C:/Program Files/GLPI-Agent/etc/inventory-server-plugin.cfg
[Thu Jan  6 11:02:28 2022][debug] [target listener] Next server contact planned for Thu Jan  6 12:00:17 2022
[Thu Jan  6 11:02:28 2022][debug] [http server] HTTPD Inventory Server plugin loaded but disabled
[Thu Jan  6 11:02:28 2022][debug] [http server] Trying to load Proxy Server plugin
[Thu Jan  6 11:02:29 2022][debug] [proxy server plugin] Initializing Proxy v2.1 Server plugin...
[Thu Jan  6 11:02:29 2022][debug] [proxy server plugin] Loading Proxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy-server-plugin.cfg
[Thu Jan  6 11:02:29 2022][debug] [http server] HTTPD Proxy Server plugin loaded but disabled
[Thu Jan  6 11:02:29 2022][debug] [http server] Trying to load SecondaryProxy Server plugin
[Thu Jan  6 11:02:29 2022][debug] [proxy2 server plugin] Initializing SecondaryProxy v1.1 Server plugin...
[Thu Jan  6 11:02:29 2022][debug] [proxy2 server plugin] Loading SecondaryProxy Server plugin configuration from C:/Program Files/GLPI-Agent/etc/proxy2-server-plugin.cfg
[Thu Jan  6 11:02:29 2022][debug] [http server] HTTPD SecondaryProxy Server plugin loaded but disabled
[Thu Jan  6 11:02:29 2022][debug] [http server] Trying to load SSL Server plugin
[Thu Jan  6 11:02:29 2022][debug] [ssl server plugin] Initializing SSL v1.0 Server plugin...
[Thu Jan  6 11:02:29 2022][debug] [ssl server plugin] Loading SSL Server plugin configuration from C:/Program Files/GLPI-Agent/etc/ssl-server-plugin.cfg
[Thu Jan  6 11:02:29 2022][debug] [http server] HTTPD SSL Server plugin loaded but disabled
[Thu Jan  6 11:02:29 2022][debug] [http server] Trying to load Test Server plugin
[Thu Jan  6 11:02:29 2022][debug] [server test plugin] Initializing Test v1.1-git31840f5c Server plugin...
[Thu Jan  6 11:02:29 2022][debug] [server test plugin] Loading Test Server plugin configuration from C:/Program Files/GLPI-Agent/etc/server-test-plugin.cfg
[Thu Jan  6 11:02:29 2022][debug] [http server] HTTPD Test Server plugin loaded but disabled
[Thu Jan  6 11:02:29 2022][debug] [http server] Trying to load ToolBox Server plugin
[Thu Jan  6 11:02:29 2022][debug] [toolbox plugin] Initializing ToolBox v1.0 Server plugin...
[Thu Jan  6 11:02:29 2022][debug] [toolbox plugin] Loading ToolBox Server plugin configuration from C:/Program Files/GLPI-Agent/etc/toolbox-plugin.cfg
[Thu Jan  6 11:02:29 2022][debug] [http server] HTTPD ToolBox Server plugin loaded but disabled
[Thu Jan  6 11:02:29 2022][info] [http server] HTTPD service started on port 62354
[Thu Jan  6 11:02:30 2022][debug] Agent memory usage before freeing memory: WSS=114667520 PFU=104742912
[Thu Jan  6 11:02:30 2022][info] GLPI Agent memory usage: WSS=3141632 PFU=104742912
[Thu Jan  6 11:02:30 2022][debug] Running in background mode
[Thu Jan  6 11:02:30 2022][info] target server0: server https://glpi.__Server-Name__.com/front/inventory.php
[Thu Jan  6 11:02:30 2022][debug] [http client] Using Compress::Zlib for compression
[Thu Jan  6 11:02:30 2022][info] sending prolog request to server0
[Thu Jan  6 11:02:31 2022][info] server0 answer shows it supports GLPI Agent protocol
[Thu Jan  6 11:02:31 2022][debug] new thread 3 to handle task Deploy
[Thu Jan  6 11:02:31 2022][info] running task Deploy
[Thu Jan  6 11:02:31 2022][error] [http client] Got empty response
[Thu Jan  6 11:02:31 2022][info] Deploy task not supported by server0
[Thu Jan  6 11:02:33 2022][debug] new thread 4 to handle task RemoteInventory
[Thu Jan  6 11:02:33 2022][debug] Remote inventory task execution disabled: no remote set
[Thu Jan  6 11:02:35 2022][debug] new thread 5 to handle task Collect
[Thu Jan  6 11:02:35 2022][info] running task Collect
[Thu Jan  6 11:02:35 2022][error] [http client] Got empty response
[Thu Jan  6 11:02:35 2022][info] Collect task not supported by server0
[Thu Jan  6 11:02:37 2022][debug] new thread 6 to handle task Inventory
[Thu Jan  6 11:02:37 2022][info] running task Inventory
[Thu Jan  6 11:02:37 2022][info] New inventory from rover-geek-2022-01-06-11-02-28 for server0
[Thu Jan  6 11:02:39 2022][debug] module GLPI::Agent::Task::Inventory::Win32::Bios disabled because of GLPI::Agent::Task::Inventory::Generic::Dmidecode::Bios
[Thu Jan  6 11:02:39 2022][debug] module GLPI::Agent::Task::Inventory::Win32::Memory disabled because of GLPI::Agent::Task::Inventory::Generic::Dmidecode
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::AccessLog
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Batteries
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Databases
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Battery
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Bios
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Hardware
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Win32
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Hardware
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Vmsystem
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Memory
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Ports
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Psu
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Dmidecode::Slots
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Drives
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Firewall
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Networks
[Thu Jan  6 11:02:39 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::OS
[Thu Jan  6 11:02:44 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Remote_Mgmt
[Thu Jan  6 11:02:44 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Remote_Mgmt::AnyDesk
[Thu Jan  6 11:02:44 2022][debug] Found AnyDesk ID : #########
[Thu Jan  6 11:02:44 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::SSH
[Thu Jan  6 11:02:45 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Screen
[Thu Jan  6 11:02:45 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Softwares
[Thu Jan  6 11:02:45 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Storages
[Thu Jan  6 11:02:45 2022][debug] Running GLPI::Agent::Task::Inventory::Generic::Timezone
[Thu Jan  6 11:02:45 2022][debug] Using DateTime::TimeZone to get the timezone name
[Thu Jan  6 11:02:46 2022][debug] Running GLPI::Agent::Task::Inventory::Provider
[Thu Jan  6 11:02:46 2022][debug] Running GLPI::Agent::Task::Inventory::Virtualization
[Thu Jan  6 11:02:46 2022][debug] Running GLPI::Agent::Task::Inventory::Virtualization::HyperV
[Thu Jan  6 11:02:46 2022][debug] Win32::OLE ERROR: Invalid namespace
[Thu Jan  6 11:02:46 2022][debug] Win32::OLE ERROR: Invalid namespace
[Thu Jan  6 11:02:46 2022][debug] Win32::OLE ERROR: Invalid namespace
[Thu Jan  6 11:02:46 2022][debug] Win32::OLE ERROR: Invalid namespace
[Thu Jan  6 11:02:46 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::CPU
[Thu Jan  6 11:02:47 2022][debug] Running GLPI::Agent::Task::Inventory::Virtualization::Wsl
[Thu Jan  6 11:02:47 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::AntiVirus
[Thu Jan  6 11:02:47 2022][debug] Found Windows Defender (state=0x61100)
[Thu Jan  6 11:02:47 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Chassis
[Thu Jan  6 11:02:47 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Controllers
[Thu Jan  6 11:02:48 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Drives
[Thu Jan  6 11:02:48 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Environment
[Thu Jan  6 11:02:48 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Firewall
[Thu Jan  6 11:02:48 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Inputs
[Thu Jan  6 11:02:48 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::License
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Modems
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Networks
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::OS
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Ports
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Printers
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Slots
[Thu Jan  6 11:03:03 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Softwares
[Thu Jan  6 11:03:03 2022][debug] 'scan-profiles' configuration parameter disabled, ignoring software in user profiles
[Thu Jan  6 11:03:06 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Sounds
[Thu Jan  6 11:03:06 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Storages
[Thu Jan  6 11:03:06 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::USB
[Thu Jan  6 11:03:07 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Users
[Thu Jan  6 11:03:08 2022][debug] Running GLPI::Agent::Task::Inventory::Win32::Videos
[Thu Jan  6 11:03:08 2022][debug] last state file 'C:\Program Files\GLPI-Agent\var/https..__glpi.__Server-Name__.com_front_inventory.php/last_state.json' doesn't exist
[Thu Jan  6 11:03:08 2022][debug] Section ANTIVIRUS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section BIOS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section CONTROLLERS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section CPUS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section DRIVES has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section HARDWARE has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section INPUTS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section MEMORIES has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section MONITORS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section NETWORKS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section OPERATINGSYSTEM has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section PRINTERS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section SOFTWARES has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section SOUNDS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section STORAGES has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] Section VIDEOS has changed since last inventory
[Thu Jan  6 11:03:08 2022][debug] [http client] 7ADBF182: Using Compress::Zlib for compression
[Thu Jan  6 11:03:14 2022][debug] target server0: init event for Deploy task
[Thu Jan  6 11:03:14 2022][debug] [target server0] New storage maintenance event on deploy task
[Thu Jan  6 11:03:15 2022][debug] target server0: init event for RemoteInventory task
[Thu Jan  6 11:03:16 2022][debug] target server0: init event for Collect task
[Thu Jan  6 11:03:17 2022][debug] target server0: init event for Inventory task
GLPI php-errors.log
 
[2022-01-06 11:02:31] glpiphplog.CRITICAL:   *** Uncaught Exception RuntimeException: Mode has not been set in /usr/share/glpi/src/Agent/Communication/AbstractRequest.php at line 433
  Backtrace :
  front/inventory.php:72                             Glpi\Agent\Communication\AbstractRequest->getResponse()

[2022-01-06 11:02:35] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Mode has not been set in /usr/share/glpi/src/Agent/Communication/AbstractRequest.php at line 433
Backtrace :
front/inventory.php:72 Glpi\Agent\Communication\AbstractRequest->getResponse()

Expected behavior

The problem is the same with manual agent inventory, from an administrator elevated PowerShell terminal, even with an active code page 65001 (UTF-8).

Texts should be displayed in UTF-8 with the correct diacritics

Operating system

Windows

GLPI Agent version

Nightly build (git version in additional context below)

GLPI version

10.0.0-beta, development release (See additional context below)

GLPIInventory plugin or FusionInventory for GLPI plugin version

Not applicable

Additional context

No response

[GLPI10] error 500 in netdiscovery

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Hi everyone,

i test inventory with glpi-inventory agent and his plugin but when i try to do a netdiscovery i've an error 500 like :

[info] running task NetDiscovery
[debug] initializing job 25
[debug] initializing block XX.XX.XX.XX-XX.XX.XX.XX
[debug] Current run expiration timeout: few minutes
[debug] [thread 1] creation
[debug] [http client] Using Compress::Zlib for compression
[debug] [thread 1] glpi-project/glpi-agent#1, scanning XX.XX.XX.XX
[debug] [thread 1] glpi-project/glpi-agent#1, full match for sysobjectID .1.3.6.1.4.1.367.1.1 in database
[debug] [thread 1] glpi-project/glpi-agent#1, /etc/glpi-agent/toolbox.yaml configuration not found
[debug] [thread 1] glpi-project/glpi-agent#1, sysobjectID match: xxxx-printer mib support enabled
[debug] [thread 1] glpi-project/glpi-agent#1, - scanning XX.XX.XX.XX with SNMP, credentials 2: success
[debug] [thread 1] glpi-project/glpi-agent#1, - scanning XX.XX.XX.XX with netbios: success
[debug] [thread 1] glpi-project/glpi-agent#1, - scanning XX.XX.XX.XX with echo ping: success
[debug] [thread 1] glpi-project/glpi-agent#1, - scanning XX.XX.XX.XX in arp table: no result
[debug] [thread 1] glpi-project/glpi-agent#1, [http client] Using Compress::Zlib for compression
[error] [thread 1] glpi-project/glpi-agent#1, [http client] communication error: 500 Internal Server Error
[debug] [thread 1] termination

The job on server side is successful but with "Processed: 0 Created: 0 Updated: 0".

Did he use a proxy for snmp scan ? for information this inventory work with GLPI 9.5.6 and fusioninventory-plugin.

Thank you in advance,

To reproduce

  1. Create a task in glpiinventory to discover snmp equipments.
  2. get the task ready
  3. lauch glpi-agent on the agent side with --debug

Expected behavior

Have a SNMP inventory who work.

Operating system

Linux

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.0-rc4

Additional context

No response

NetInventory task not supported by server

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Hi

I have installed glpi-agents v1.2-git73986331 nightly build with netdiscovery feauters on both OS: ubuntu 20.04, WIN10.
Then I tried run such commands:
glpi-netinventory --host 192.168.244.9 --credentials version:1,community:public --debug
and receive answer:

[debug] Logger backend Stderr initialized
[debug] Current run expiration timeout: 1.0 hour
[debug] creating 1 worker threads
[debug] [thread 1] creation
[debug] [thread 1] #1, scanning 0: 192.168.244.9
[debug] [thread 1] #1, full match for sysobjectID .1.3.6.1.4.1.11.2.3.9.1 in database
[debug] [thread 1] #1, /etc/glpi-agent/toolbox.yaml configuration not found
[debug] [thread 1] #1, sysobjectID match: hp-peripheral mib support enabled
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <CARTRIDGES>
        <TONERBLACK>WARNING</TONERBLACK>
      </CARTRIDGES>
      <INFO>
        <COMMENTS>HP ETHERNET MULTI-ENVIRONMENT,SN:PHBLL4R318,FN:3W91MXR,SVCID:28175,PID:HP LaserJet MFP M426dw</COMMENTS>
        <ID>0</ID>
        <IPS>
          <IP>192.168.244.9</IP>
        </IPS>
        <MAC>b4:b6:86:79:b0:f9</MAC>
        <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
        <MEMORY>256</MEMORY>
        <MODEL>HP LaserJet MFP M426dw</MODEL>
        <NAME>NPI79B0F9</NAME>
        <RAM>256</RAM>
        <SERIAL>PHBLL4R318</SERIAL>
        <TYPE>PRINTER</TYPE>
        <UPTIME>5 days, 09:23:44.51</UPTIME>
      </INFO>
      <PAGECOUNTERS>
        <DUPLEX>5909</DUPLEX>
        <TOTAL>52347</TOTAL>
      </PAGECOUNTERS>
      <PORTS>
        <PORT>
          <IFDESCR>LOOPBACK</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>180328942</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>LOOPBACK</IFNAME>
          <IFNUMBER>1</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>180328942</IFOUTOCTETS>
          <IFSPEED>0</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>24</IFTYPE>
        </PORT>
        <PORT>
          <IFDESCR>Ethernet</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>3152181283</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>0.00 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>Ethernet</IFNAME>
          <IFNUMBER>2</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>79980889</IFOUTOCTETS>
          <IFSPEED>10000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>6</IFTYPE>
          <IP>192.168.244.9</IP>
          <IPS>
            <IP>192.168.244.9</IP>
          </IPS>
          <MAC>b4:b6:86:79:b0:f9</MAC>
        </PORT>
        <PORT>
          <IFDESCR>wifi0</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>3207355893</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>8.53 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>wifi0</IFNAME>
          <IFNUMBER>3</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>1685</IFOUTOCTETS>
          <IFSPEED>10000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>6</IFTYPE>
          <MAC>5c:ea:1d:9f:90:f7</MAC>
        </PORT>
        <PORT>
          <IFDESCR>wifiUAP</IFDESCR>
          <IFINERRORS>0</IFINERRORS>
          <IFINOCTETS>0</IFINOCTETS>
          <IFINTERNALSTATUS>1</IFINTERNALSTATUS>
          <IFLASTCHANGE>8.59 seconds</IFLASTCHANGE>
          <IFMTU>1500</IFMTU>
          <IFNAME>wifiUAP</IFNAME>
          <IFNUMBER>4</IFNUMBER>
          <IFOUTERRORS>0</IFOUTERRORS>
          <IFOUTOCTETS>38091</IFOUTOCTETS>
          <IFSPEED>10000000</IFSPEED>
          <IFSTATUS>1</IFSTATUS>
          <IFTYPE>6</IFTYPE>
          <MAC>5c:ea:1d:9f:90:f7</MAC>
        </PORT>
      </PORTS>
    </DEVICE>
    <MODULEVERSION>5.0</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>
[debug] [thread 1] termination
[debug] All netinventory threads terminated

Then I run:
glpi-netdiscovery --host 192.168.244.9 --debug -i
and got the same answer. It looks like SNMP discovery works fine. But next I tried run this:
glpi-agent --logger=stderr --tasks netinventory --debug --server=http://my.server/glpi/front/inventory.php
and got this:

[debug] Logger backend Stderr initialized
[debug] GLPI Agent (1.2-git73986331)
[debug] Configuration directory: /etc/glpi-agent
[debug] Data directory: /usr/share/glpi-agent
[debug] Storage directory: /var/lib/glpi-agent
[debug] Lib directory: /usr/share/glpi-agent/lib
[debug] [target server0] Next server contact planned for Thu Feb 10 18:47:03 2022
[debug] Available tasks:
[debug] - Inventory: 1.10
[debug] - NetDiscovery: 5.0
[debug] - NetInventory: 5.0
[debug] - RemoteInventory: 1.0
[debug] - WakeOnLan: 2.2
[debug] target server0: server http://my.server/glpi/front/inventory.php
[debug] Planned tasks for server0: NetInventory
[debug] Built by Debian
[debug] Source time: 2022-02-09 02:12
[debug] Running in foreground mode
[info] target server0: server http://my.server/glpi/front/inventory.php
[debug] [http client] CB0653DB: Using Compress::Zlib for compression
[info] sending contact request to server0
[debug] [http client] Using Compress::Zlib for compression
[info] sending prolog request to server0
[debug] NetInventory task not supported by server

or this on WIN10:

[debug] Logger backend Stderr initialized
[debug] Logger backend File initialized
[debug] GLPI Agent (1.2-git73986331)
[debug] Configuration directory: C:/Program Files/GLPI-Agent/etc
[debug] Data directory: C:/Program Files/GLPI-Agent/share
[debug] Storage directory: C:\Program Files\GLPI-Agent\var
[debug] Lib directory: C:/Program Files/GLPI-Agent/perl/agent
[debug] [target server0] Next server contact planned for Thu Feb 10 20:32:24 2022
[debug] Available tasks:
[debug] - Collect: 2.8
[debug] - Deploy: 2.9
[debug] - Inventory: 1.10
[debug] - NetDiscovery: 5.0
[debug] - NetInventory: 5.0
[debug] - RemoteInventory: 1.0
[debug] target server0: server http://my.server/glpi/front/inventory.php
[debug] Planned tasks for server0: NetInventory
[debug] Provided by Teclib Edition
[debug] Installer built on Tue Feb  8 15:52:37 2022 UTC
[debug] Built with Strawberry Perl 5.34.0
[debug] Built on github actions windows image for glpi-project/glpi-agent repository
[debug] Running in foreground mode
[info] server0 is not ready yet, next server contact planned for Thu Feb 10 20:32:24 2022

And I can't receive data on my GLPI server. It looks like server does't work with SNMP discovery correctly.
Regular inventory works fine.
Any idea?

Also I tried send data manually:
glpi-injector -v -f C:\inv\netdiscovery\192.168.244.9.xml --url http://my.server/glpi/front/inventory.php
and got this:

Loading C:\inv\netdiscovery\192.168.244.9.xml...ERROR: Array
(
    [0] => JSON does not validate. Violations:
Additional properties not allowed: hardware at #->$ref[file~2///var/www/html/glpi/vendor/glpi-project/inventory_format/inventory.schema.json]

)

These elements were not sent:
C:\inv\netdiscovery\192.168.244.9.xml

Also I tried add Printer by import in menu: Administartion - Equipment - Import from xml, Then I got White screen and error in php.errors.log:

[2022-02-10 10:04:15] glpiphplog.CRITICAL:   *** Uncaught Exception RuntimeException: Array
(
    [0] => JSON does not validate. Violations:
Additional properties not allowed: hardware at #->$ref[file~2///var/www/html/glpi/vendor/glpi-project/inventory_format/inventory.schema.json]

)
 in /var/www/html/glpi/src/Inventory/Inventory.php at line 209
  Backtrace :
  src/Inventory/Request.php:318                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:217                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:86                       Glpi\Inventory\Request->networkDiscovery()
  src/Agent/Communication/AbstractRequest.php:271    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:210    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  src/Inventory/Conf.php:220                         Glpi\Agent\Communication\AbstractRequest->handleRequest()
  src/Inventory/Conf.php:162                         Glpi\Inventory\Conf->importContentFile()
  front/inventory.conf.php:45                        Glpi\Inventory\Conf->importFile()

Content of XML file discovered by glpi-netdiscovery:

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHPORT />  <AUTHPROTOCOL />  <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>HP ETHERNET MULTI-ENVIRONMENT,SN:PHBLL4R318,FN:3W91MXR,SVCID:28175,PID:HP LaserJet MFP M426dw</DESCRIPTION>
      <DNSHOSTNAME>192.168.244.9</DNSHOSTNAME>
      <IP>192.168.244.9</IP>
      <IPS>
        <IP>192.168.244.9</IP>
      </IPS>
      <MAC>b4:b6:86:79:b0:f9</MAC>
      <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
      <MODEL>HP LaserJet MFP M426dw</MODEL>
      <NETBIOSNAME>NPI79B0F9</NETBIOSNAME>
      <SERIAL>PHBLL4R318</SERIAL>
      <SNMPHOSTNAME>NPI79B0F9</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>5 days, 21:04:45.71</UPTIME>
      <WORKGROUP>WORKGROUP</WORKGROUP>
    </DEVICE>
    <MODULEVERSION>5.0</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

p/s Als I can't find additional sections for network inventory and ip ranges:

Screenshot_235

Could you help me enable it?

To reproduce

See on top.

Expected behavior

1

Operating system

Windows, Linux

GLPI Agent version

Nightly build (git version in additional context below)

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

development release (See additional context below)

Additional context

v1.2-git73986331 nightly build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.