Giter VIP home page Giter VIP logo

fusioninventory / fusioninventory-agent Goto Github PK

View Code? Open in Web Editor NEW
250.0 37.0 125.0 33.72 MB

FusionInventory Agent

Home Page: http://fusioninventory.org/

License: GNU General Public License v2.0

Perl 83.35% Shell 0.73% Python 0.04% CSS 0.01% Smarty 0.07% Roff 15.47% PHP 0.03% VBScript 0.31%
perl inventory system-information fusioninventory edid agent daemon snmp network-discovery network-inventory

fusioninventory-agent's Introduction

FusionInventory Agent

Travis Build Status Appveyor Build status CircleCI Build status

Summary

The FusionInventory 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 with fusioninventory plugin, acting as a control point.

Description

See FusionInventory solution overview

Dependencies

Core

Minimum perl version: 5.8

Mandatory Perl modules:

  • File::Which
  • LWP::UserAgent
  • Net::IP
  • Text::Template
  • UNIVERSAL::require
  • XML::TreePP

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:

  • Archive::Extract
  • Digest::SHA
  • File::Copy::Recursive
  • JSON::PP
  • URI::Escape

Mandatory Perl modules for P2P Support:

  • Net::Ping
  • Parallel::ForkManager

Related contribs

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

Contacts

Project websites:

Project mailing lists:

Project IRC channel:

  • #FusionInventory on FreeNode IRC Network

Please report any issues on Github.

Copyrights

Copyright 2006-2010 OCS Inventory contributors

Copyright 2010-2021 FusionInventory Team

Copyright 2011-2021 Teclib Editions

License

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

Additional pieces of software

The fusioninventory-injector script:

  • author: Pascal Danek
  • copyright: 2005 Pascal Danek

FusionInventory::Agent::Task::Inventory::Input::Virtualization::Vmsystem contains code from imvirt:

fusioninventory-agent's People

Contributors

abondis avatar aiurlano avatar akrus avatar ddurieux avatar devtom30 avatar dliroulet avatar dwizznodowin avatar fgudin avatar g-bougard avatar goneri avatar guillomovitch avatar hawke avatar jungmann avatar keyser75000 avatar kiniou avatar kournikola avatar lgautrot avatar maddingue avatar ncharles avatar nicolaseisen avatar pakdel avatar po1vo avatar pr-gh avatar pzeidler-dlr avatar remicollet avatar tabad avatar urba avatar vincemacbuche avatar wolvverine 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fusioninventory-agent's Issues

fusioninventory agent and plugin

is any possible to get by agent all info from hdd S.M.A.R.T. and with compare with drivedb.h ( smartmontools drive database file). Info from fast smart hdd test should be sent to glpi and put to disk info. This info should be stored last 3 or more test and compare potential indicators of imminent electromechanical failure.
When something wrong will starts with disk (potential failure) for instance Reallocated Sectors Count or Read Error Rate grow then technician should be inform that something wrong aproach.

What do u think about that feature?

iLO inventory on windows

This addon is based on linux counterpart and will attempt to identify the iLO interface on a windows machine.

Tested on windows 2003 server with hponcfg 3.1.1.0

package FusionInventory::Agent::Task::Inventory::Win32::iLO;

use strict;
use warnings;
use Socket;

use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::Network;

sub isEnabled {
    return canRun("C:\\Program\ Files\\HP\\hponcfg\\hponcfg.exe");
}

sub _parseHponcfg {
    my (%params) = @_;

    my $handle = getFileHandle(%params);

    return unless $handle;

    my $interface = {
        DESCRIPTION => 'Management Interface - HP iLO',
        TYPE        => 'ethernet',
        MANAGEMENT  => 'iLO',
        STATUS      => 'Down',
    };
    my $name='';
    my $domainname='';
    my $resolvedip='';

    while (my $line = <$handle>) {

   # windows hponcfg adds an extra space before '/>'
   # this may be different on other versions
        if ($line =~ /<IP_ADDRESS VALUE="($ip_address_pattern)" \/>/) {
            $interface->{IPADDRESS} = $1 unless $1 eq '0.0.0.0';
        $resolvedip = $1 unless $1 eq '0.0.0.0';
        }
        if ($line =~ /<SUBNET_MASK VALUE="($ip_address_pattern)" \/>/) {
            $interface->{IPMASK} = $1;
        }
        if ($line =~ /<GATEWAY_IP_ADDRESS VALUE="($ip_address_pattern)" \/>/) {
            $interface->{IPGATEWAY} = $1;
        }
   if ($line =~ /<DNS_NAME VALUE="(\S+)" \/>/) {
       $name=$1;
   }
   if ($line =~ /<DOMAIN_NAME VALUE="(\S+)" \/>/) {
       $domainname=$1;
   }
        if ($line =~ /<NIC_SPEED VALUE="([0-9]+)" \/>/) {
            $interface->{SPEED} = $1;
        }
        if ($line =~ /<ENABLE_NIC VALUE="Y" \/>/) {
            $interface->{STATUS} = 'Up';
        }
        if ($line =~ /not found/) {
            chomp $line;
            $params{logger}->error("error in hponcfg output: $line")
                if $params{logger};
        }
    }
    close $handle;

    if ((!$name eq '') && ($resolvedip eq '')) {
       if (!$domainname eq '') {
           $name = $name . '.' . $domainname ;
       }
     if (defined inet_aton($name)) { 
       $resolvedip = inet_ntoa(inet_aton($name));
       $interface->{IPADDRESS} = $resolvedip;
     }
       }

    $interface->{IPSUBNET} = getSubnetAddress(
        $interface->{IPADDRESS}, $interface->{IPMASK}
    );

    return $interface;
}

sub doInventory {
    my (%params) = @_;

    my $inventory = $params{inventory};
    my $logger    = $params{logger};

    my $entry = _parseHponcfg(
        logger => $logger,
        command => '"c:\Program Files\HP\hponcfg\hponcfg" /a /w output.txt && type output.txt'

    );

    $inventory->addEntry(
        section => 'NETWORKS',
        entry   => $entry
    );
}

1;

fusioninventory 2.3.17 et Windows NT 4

Bonjour

J'utilise encore un serveur Windows NT 4 (4.00.1381) et lorsque je veux installer fusioninventory 2.3.17 j'obtiens le message "Le point d'entrée de procédure CreateHardLinkW est introuvable dans la bibliothèque de liaisons dynamique KERNEL32.DLL". Le titre de la fenêtre est "perl.exe - Point d'entrée non trouvé". Cette erreur apparaît quand je choisis l'option "Comme un service windows"
L'installation se fait pourtant sans autre problème et va jusqu'au bout.

Je sais que Windows NT 4 est largement dépassé mais j'ai besoin de ce serveur pour des raisons personnelles.

Ensuite j'ai désinstallé le produit, je l'ai réinstallé mais j'ai choisi l'option "Manuellement" (au lieu de service windows). A noter que l'option "comme une tâche windows" est grisée (???)
Cette fois l'installation s'est faite jusqu'au bout sans message d'erreur. J'ai coché la case "lancer un inventaire à la fin de l'installation". et là le même message d'erreur est apparu.

Merci de votre aide

download failed

Hello,

Our FusionInventory used for deploying software install was working quite well, but suddendly:

  • We cannot remove Audit / Files / Actions from the web ui
  • Packages cannot be downloaded by agents (error: 2016-09-22 18:30:48 Erreur Files download:PDFXVE5.x64.msi download failed)

I started an agent with debug=2 to get some informations in order to diagnose but I can't find where is the issue, here is the log below.
May you give me some help in order to diagnose this problem ?

Mathieu

[Thu Sep 22 18:30:45 2016][info] running task Deploy
[Thu Sep 22 18:30:45 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/?action=getConfig&machineid=M90-06-2016-09-22-14-43-39&task[Deploy]=2.0.4
[Thu Sep 22 18:30:46 2016][debug] Free space on C:\Program Files\FusionInventory-Agent\var\http..__support.prosernat.com_plugins_fusioninventory_\deploy: 153865
[Thu Sep 22 18:30:46 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=getJobs&machineid=M90-06-2016-09-22-14-43-39
[Thu Sep 22 18:30:46 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&part=job&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&currentStep=checking&msg=starting
[Thu Sep 22 18:30:46 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&currentStep=checking&msg=all%20checks%20are%20ok&part=job&uuid=57e40709e9128&status=ok&machineid=M90-06-2016-09-22-14-43-39
[Thu Sep 22 18:30:46 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&part=job&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&currentStep=downloading&msg=downloading%20files
[Thu Sep 22 18:30:46 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&part=file&msg=fetching%20PDFXVE5.x64.msi&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&machineid=M90-06-2016-09-22-14-43-39&uuid=57e40709e9128&part=file&msg=retrying%20PDFXVE5.x64.msi&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&part=file&machineid=M90-06-2016-09-22-14-43-39&uuid=57e40709e9128&currentStep=downloading&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&msg=fetching%20PDFXVE5.x64.msi
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&machineid=M90-06-2016-09-22-14-43-39&uuid=57e40709e9128&part=file&msg=retrying%20PDFXVE5.x64.msi&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&part=file&msg=fetching%20PDFXVE5.x64.msi&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&part=file&msg=retrying%20PDFXVE5.x64.msi&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading
[Thu Sep 22 18:30:47 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading&msg=fetching%20PDFXVE5.x64.msi&part=file&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39
[Thu Sep 22 18:30:48 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&part=file&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39&currentStep=downloading&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&msg=retrying%20PDFXVE5.x64.msi
[Thu Sep 22 18:30:48 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&currentStep=downloading&msg=fetching%20PDFXVE5.x64.msi&part=file&uuid=57e40709e9128&machineid=M90-06-2016-09-22-14-43-39
[Thu Sep 22 18:30:48 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&msg=retrying%20PDFXVE5.x64.msi&currentStep=downloading&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&machineid=M90-06-2016-09-22-14-43-39&uuid=57e40709e9128&part=file
[Thu Sep 22 18:30:48 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&msg=fetching%20PDFXVE5.x64.msi&currentStep=downloading&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3&machineid=M90-06-2016-09-22-14-43-39&uuid=57e40709e9128&part=file
[Thu Sep 22 18:30:48 2016][debug2] http://support.prosernat.com/plugins/fusioninventory/b/deploy/?action=setStatus&msg=PDFXVE5.x64.msi%20download%20failed&currentStep=downloading&machineid=M90-06-2016-09-22-14-43-39&status=ko&uuid=57e40709e9128&part=file&sha512=9ebc6d6061868e68166c7ade617d0f42a8107a291cfc3c7e129b1b5eadd38b3262d1806efda9532fe84c1c8525471a795172b27b55fa9616b63fbcf686c6f0b3
[Thu Sep 22 18:30:48 2016][debug] Free space on C:\Program Files\FusionInventory-Agent\var\http..__support.prosernat.com_plugins_fusioninventory_\deploy: 153865

Useless threads

Straight to the point, there is never ever more than one NetInventory or NetDiscovery thread just because fusioninventory-for-glpi by design never provides more than one device in a taskjob.

I'm not sure sure which issue this is: agent's or FusionInventory's, but it seems to me running jobs in parallel on the agent would be much easier to implement. Though i don't know if the server can process concurrent requests/responses from an agent.

Memory not inventored

In paravirtualised linux (Centos 6.7 on Citrix Xen), memory information are not present because dmidecode can't gather informations

Can you add an other method to gather global memory information ?

Regards

CitrixXen server vm's don't get collected if they have spaces in names.

Example :

[root@xendsfmaster Virtualization]# xl list -v
Name                                        ID   Mem VCPUs  State   Time(s)   UUID                            Reason-Code   Security Label
Domain-0                                     0   738     4     r-----  3438256.3 8f778ca0-54be-4542-9116-c4218b5f210a        -                -
SQL LUBSS227                                 5  1536     2     -b----  2772491.0 388b226f-c388-143b-df2e-ad33492c1540        -                -
SQL LUBSS239                                 7  1024     1     -b----  580091.4 827414a9-b4fb-3e8a-fbc3-6fa58c3284e1        -                -
SQL LUBSS237                                16  2048     4     r-----  5301766.1 ce821f07-fa63-adba-8af7-267abf28eb62        -                -
SQL LUBSS235                                19  2047     4     -b----  1471086.6 e51451ee-03ca-bc20-86e9-90b505a6aab3        -                -
IIS LUBSIIS12                               20  2048     4     -b----  173538.5 b2afd223-feab-d776-a6b4-dad4eb86e8cc        -                -
SQL LUBSS245                                39  1024     2     -b----  483318.9 02ac72e2-480c-15a6-0408-684ed5282718        -                -
SQL LUBSS238                                40  2048     2     -b----  2110749.7 2aba2946-1d3b-6454-49bf-c28f53609ede        -                -
SQL LUBSS242                                41  2000     4     r-----  1278597.0 5a2cd34b-dd62-c866-85a6-3977b68ec835        -                -
SQL LUBSS218                                42  2000     2     -b----  859175.2 c510954a-988b-fdbb-aaee-0c40246c17fe        -                -
SQL REL LUBSS223                            56  6000     4     r-----  858397.7 2c0e4bf8-ed7f-562d-ca58-ccd6de1ed180        -                -
SQL LUBSS230                                59  1535     4     -b----  312675.3 7f1baf17-15e8-e671-c9e0-0dbdf29b83e4        -                -
SQL REL LUBSS215                            60  3000     4     -b----   36118.3 dcc99669-6a11-1e57-c84e-cf11f00eb7ae        -                -
SQL REL LUBSS221                            61  2048     4     -b----   58178.9 9b9a08ca-37d7-1c81-199a-ac9ebb43c3c0        -                -

This fails to parse, because agent assumes that there are no spaces in vm names and splits fields by space, assuming that field 2 is vmid.

An initial concept would be to find the index of "ID" column and make the first split at this position.

Error installing agent 2.3.18 on Centos 5.11

Hello,

I'm getting the following error when trying to install the new version, 2.3.18 on my Centos 5.11

Missing Dependency: perl(Data::Structure::Util) is needed by package fusioninventory-agent-2.3.18-2.1.noarch (home_guillomovitch)

After user deletion FusionInventory crash

Hello,

One of my users with admin rights permission created new domain account in wrong domain (we have multiple domains).
So I deleted that user from domain.

From this time I cannot inventory Windows Server.

OS: Windows Server 2012,
FIA: 2.3.17,

[Thu Feb 11 11:39:34 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Ports
[Thu Feb 11 11:39:34 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Printers
[Thu Feb 11 11:39:35 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Slots
[Thu Feb 11 11:39:35 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Softwares
[Thu Feb 11 11:39:36 2016][warning] 'scan-profiles' configuration parameter disabled, ignoring software in user profiles
[Thu Feb 11 11:39:39 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Sounds
[Thu Feb 11 11:39:39 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Storages
[Thu Feb 11 11:39:39 2016][debug2] executing hdparm -I /dev/hda
[Thu Feb 11 11:39:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::USB
[Thu Feb 11 11:39:53 2016][debug] Running FusionInventory::Agent::Task::Inventory::Win32::Users

And in the eventvwr I have 2 errors:

  • System

    • Provider
      [ Name] Application Error
    • EventID 1000
      [ Qualifiers] 0
      Level 2
      Task 100
      Keywords 0x80000000000000
    • TimeCreated
      [ SystemTime] 2016-02-11T10:39:56.000000000Z
      EventRecordID 577563
      Channel Application
      Computer SERVER.poznan.tbhydro.net
      Security
  • EventData

    perl.exe
    5.22.0.1
    556cd8b3
    OLEAUT32.dll
    6.2.9200.17194
    54753e82
    c0000005
    000000000002c869
    e958
    01d164b843207e1f
    C:\Program Files\FusionInventory-Agent\perl\bin\perl.exe
    C:\Windows\system32\OLEAUT32.dll
    ca17d6f0-d0ab-11e5-943c-00224d67e6f8

Second:

  • System
    • Provider
      [ Name] Application Error
    • EventID 1000
      [ Qualifiers] 0
      Level 2
      Task 100
      Keywords 0x80000000000000
    • TimeCreated
      [ SystemTime] 2016-02-11T10:39:56.000000000Z
      EventRecordID 577563
      Channel Application
      Computer SERVER.poznan.tbhydro.net
      Security
  • EventData
    perl.exe
    5.22.0.1
    556cd8b3
    OLEAUT32.dll
    6.2.9200.17194
    54753e82
    c0000005
    000000000002c869
    e958
    01d164b843207e1f
    C:\Program Files\FusionInventory-Agent\perl\bin\perl.exe
    C:\Windows\system32\OLEAUT32.dll
    ca17d6f0-d0ab-11e5-943c-00224d67e6f8

Virtualbox VM can't get the serial number / uuid of the virtualmachine defined on host

When not have serialnumber on Virtualbox machine (I have problem on a windows), we can get the UUID in section System Information. This UUID is the uuid of the VM in host side

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: innotek GmbH
        Version: VirtualBox
        Release Date: 12/01/2006
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 128 kB
        Characteristics:
                ISA is supported
                PCI is supported
                Boot from CD is supported
                Selectable boot is supported
                8042 keyboard services are supported (int 9h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: innotek GmbH
        Product Name: VirtualBox
        Version: 1.2
        Serial Number: 0
        UUID: 2961ECF6-7E94-488D-AE0D-E427123078B3
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: Virtual Machine

Support for iLO interfaces that don't report IP but dns name.

I've noticed that if ilo interface has dns name instead of IP, it doesn't get reported.

This small patch makes FA look for dns name and translates it into IP address, and the iLO interface appears on the list of interfaces of a given machine.

This diff is against 2.2.3-8 from debian wheezy. It should apply easily, though.


--- iLO.pm  2012-06-14 00:00:00.000000000 +0200
+++ /usr/share/fusioninventory/lib/FusionInventory/Agent/Task/Inventory/Input/Linux/iLO.pm  2016-07-15 12:54:11.058693554 +0200
@@ -2,6 +2,7 @@

 use strict;
 use warnings;
+use Socket;

 use FusionInventory::Agent::Tools;
 use FusionInventory::Agent::Tools::Network;
@@ -23,8 +24,12 @@
         MANAGEMENT  => 'iLO',
         STATUS      => 'Down',
     };
+    my $name='';
+    my $domainname='';

     while (my $line = <$handle>) {
+
+   
         if ($line =~ /<IP_ADDRESS VALUE="($ip_address_pattern)"\/>/) {
             $interface->{IPADDRESS} = $1 unless $1 eq '0.0.0.0';
         }
@@ -34,6 +39,12 @@
         if ($line =~ /<GATEWAY_IP_ADDRESS VALUE="($ip_address_pattern)"\/>/) {
             $interface->{IPGATEWAY} = $1;
         }
+   if ($line =~ /<DNS_NAME VALUE="(\w+)"\/>/) {
+       $name=$1;
+   }
+   if ($line =~ /<DOMAIN_NAME VALUE="(\S+)"\/>/) {
+       $domainname=$1;
+   }
         if ($line =~ /<NIC_SPEED VALUE="([0-9]+)"\/>/) {
             $interface->{SPEED} = $1;
         } 
@@ -47,6 +58,14 @@
         }
     }
     close $handle;
+
+    if (!$name eq '') {
+       if (!$domainname eq '') {
+           $name = $name . '.' . $domainname ;
+       }
+       $interface->{IPADDRESS} = inet_ntoa(inet_aton($name));
+       }
+
     $interface->{IPSUBNET} = getSubnetAddress(
         $interface->{IPADDRESS}, $interface->{IPMASK}
     );

[repository] Branches clean-up

Hi all,

this repository hosts 32 branches and actually I know only one active (2.3.x), and only one more of interest (master for future 2.4.x).

I'll soon take time to review other branches and check if we really need to keep them, or even merge part of them. But I'll appreciate if any concerned people can report his though or ideas and if he knows about branchs to just delete. For example, I don't think we would do any maintenance on 2.1.x & 2.2.x and I think tags are sufficients there.

Cannot add a singe entry via additional-content (OPERATINGSYSTEM)

Hello!

I need a possibility to push some values in OPERATINGSYSTEM section from XML file.
But now only ARRAY is permitted. So i prepared a small patch to avoid this situation.
Patch is:


diff -Nur a/lib/FusionInventory/Agent/Inventory.pm b/lib/FusionInventory/Agent/Inventory.pm
--- a/lib/FusionInventory/Agent/Inventory.pm    2014-11-06 23:29:02.000000000 +0200
+++ b/lib/FusionInventory/Agent/Inventory.pm    2016-01-30 19:32:04.829689503 +0200
@@ -159,6 +159,10 @@
                     $self->setHardware($content->{$section});
                     last SWITCH;
                 }
+                if ($section eq 'OPERATINGSYSTEM') {
+                    $self->setOperatingSystem($content->{$section});
+                    last SWITCH;
+                }
                 if ($section eq 'BIOS') {
                     $self->setBios($content->{$section});
                     last SWITCH;

lxc skips machines due to lxc-ls -1 padding.

lxc-ls -1 pads output with spaces/tabs, and machines with shorter names get skipped from futher processing because they fail the regexp check.

The fix is to do

$line =~ s/ *$//g;

right before
next unless $line =~ m/^(\S+)$/;

in _getVirtualMachines in Lxc.pm file.

I'll post a diff against master in a moment.

debian package and fusioninventory-agent.pid

Hello,

little bug in debian package of fusioninventory-agent 2.3.15 when start agent as daemon, fusioninventory-agent.pid is created in /var/lib/fusioninventory-agent/ but service script (in /etc/init.d) try to read pid in /var/run/ so stop and restart doesn't work.

FI agent has no sane way to disable compression of transmitted data

To achive this you must hide or remove Compress::Zlib and gzip binary. Needed for debug purposes.

From new() of FusionInventory::Agent::HTTP::Client::OCS :

    # check compression mode
    if (Compress::Zlib->require()) {
        # RFC 1950
        $self->{compression} = 'zlib';
        $self->{ua}->default_header('Content-type' => 'application/x-compress-zlib');
        $self->{logger}->debug(
            $log_prefix .
            'Using Compress::Zlib for compression'
        );
    } elsif (canRun('gzip')) {
        # RFC 1952
        $self->{compression} = 'gzip';
        $self->{ua}->default_header('Content-type' => 'application/x-compress-gzip');
        $self->{logger}->debug(
            $log_prefix .
            'Using gzip for compression'
        );
    } else {
        $self->{compression} = 'none';
        $self->{ua}->default_header('Content-type' => 'application/xml');
        $self->{logger}->debug(
            $log_prefix .
            'Not using compression'
        );
    }

version 2.3.17

Add timezone inventory

To extend the <OPERATINGSYSTEM> anchor :)

Something to take in account here is that timezones representation tend to differ between systems:

What I would propose in this case would be to have a mandatory attribute that contains the derivation from UTC, that is an actual consensus between all systems, and another one that would give a timezone representation, as given by stfrtime %Z or something else:

<TIMEZONE>
    <NAME>CEST</NAME>
    <OFFSET>+0200</OFFSET>
</TIMEZONE>

The NAME would use the Windows format on Windows machines: that is to be expected.

bug d'affichage dans Firefox

GLPI 0.90.3 - FI 0.90+1.3

Dans Plugins/FusionInventory/Paquet/[Paquet d'exemple]/ cadre Actions
Une commande "trop longue" sort de ce cadre.

Reproduit avec :
Firefox 47.0 x64 et x86 (Win7 x64 pro)
Firefox 46.0 sur OpenSUSE LEAP x86_64
fusioninventory_0 90_1 3_glpi_0 90 3_ff_47 0

OK avec :
Win7 x64 pro
opera 37.0.2178.43
fusioninventory_0 90_1 3_glpi_0 90 3_opera_37 0 2178 43

IE 11.0.9600.18134 x86
IE 11.0.9600.18134 x64
fusioninventory_0 90_1 3_glpi_0 90 3_ie_11 0 9600 18314

snmpwalk vs snmpbulkwalk

Wishlist: Use snmpbulkwalk wherever possible. It's 5-20 times faster than snmpwalk

Problem: snmpbulkwalk isn't available on snmp v1 targets.

It's taking 18 minutes to get all data out of one of my switches (some snmpd implementations are really bad). Switching to snmpbulk would speed this up and reduce switch cpu load as a bonus.

Unexpected behaviour of the Collect task

When you use the Collect task to fetch an agent's host registry, there's something rather peculiar when it comes to perl/agent/FusionInventory/Agent/Tools/Win32.pm. Namely, we're trying to match-and-split registry paths with the following regex (and a slightly differrent one for paths without values) :

$params{path} =~ m{^(HKEY_\S+)/(.+)/([^/]+)}

I'm no Perl expert, but I print-debugged the groups extracted from such regexes. Given a path of

HKEY_LOCAL_MACHINE/CurrentControlSet/Control/Session Manager/Environment/TEMP

I get the three results groups as HKEY_LOCAL_MACHINE/CurrentControlSet/Control, Session Manager/Environment and TEMP

Virtual Machines not inventored (XenServer 6.2) Fusion Inventory Agent 2.3.17

Virtual Machines not inventored and no error logs about task FusionInventory::Agent::Task::Inventory::Virtualization::XenCitrixServer
Only display message: [debug2] executing xe vm-list but no other log about that task.

Here the logs:

[Wed Mar 9 11:38:47 2016][info] running task ESX
[Wed Mar 9 11:38:47 2016][debug2] http://x.x.x.x/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php?action=getConfig&task[ESX]=2.2.1&machineid=xenserver-02-2016-03-08-12-06-38
[Wed Mar 9 11:38:47 2016][info] ESX support disabled server side.
[Wed Mar 9 11:38:47 2016][info] running task Inventory
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::AIX disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Controllers disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::LVM disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Memory disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Modems disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Networks disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Slots disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Sounds disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::AIX::Videos disabled: implicit dependency FusionInventory::Agent::Task::Inventory::AIX not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::BSD disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Alpha disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::MIPS disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Memory disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Networks disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::SPARC disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Storages::Megaraid disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD::Storages not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::Uptime disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::BSD::i386 disabled: implicit dependency FusionInventory::Agent::Task::Inventory::BSD not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::PCI::Videos disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Rudder disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Softwares::Deb disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Softwares::Gentoo disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Softwares::Pacman disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Softwares::Slackware disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Storages::3ware disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::Storages::HP disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Generic::USB disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::HPUX disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Bios disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Controllers disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::MP disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Memory disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Networks disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Slots disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::HPUX::Uptime disabled: implicit dependency FusionInventory::Agent::Task::Inventory::HPUX not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::ARM disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::ARM::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::ARM not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Alpha disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::Alpha::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::Alpha not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Distro::NonLSB disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::MIPS disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::MIPS::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::MIPS not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Networks::iLO disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::PowerPC disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::PowerPC::Bios disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::PowerPC not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::PowerPC::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::PowerPC not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::SPARC disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::SPARC::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::SPARC not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Storages::Lsilogic disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Storages::Megacli disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Storages::Megaraid disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::Storages::ServeRaid disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Linux::m68k disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Linux::m68k::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Linux::m68k not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::MacOS disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Bios disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Hostname disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::License disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Memory disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Networks disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Printers disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Sound disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::USB disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Uptime disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::MacOS::Videos disabled: implicit dependency FusionInventory::Agent::Task::Inventory::MacOS not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Solaris disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Bios disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Controllers disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Memory disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Networks disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Slots disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Solaris::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Solaris not enabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Hpvm disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::HyperV disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Jails disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Libvirt disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Lxc disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Parallels disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Qemu disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::SolarisZones disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::VirtualBox disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Virtuozzo disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::VmWareDesktop disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::VmWareESX disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Vserver disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Virtualization::Xen disabled
[Wed Mar 9 11:38:47 2016][debug2] module FusionInventory::Agent::Task::Inventory::Win32 disabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::AntiVirus disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Bios disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::CPU disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Chassis disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Controllers disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Drives disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Environment disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Inputs disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::License disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Slots disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Softwares disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Sounds disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Storages disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::USB disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Users disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug2] FusionInventory::Agent::Task::Inventory::Win32::Videos disabled: implicit dependency FusionInventory::Agent::Task::Inventory::Win32 not enabled
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::AccessLog
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Arch
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Battery
[Wed Mar 9 11:38:47 2016][debug2] executing dmidecode
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Bios
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Memory
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Ports
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Slots
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Domains
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Environment
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Hostname
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Ipmi
[Wed Mar 9 11:38:47 2016][debug2] executing ipmitool lan print
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Controllers
[Wed Mar 9 11:38:47 2016][debug2] executing lspci -v -nn
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Modems
[Wed Mar 9 11:38:47 2016][debug2] executing lspci -v -nn
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Sounds
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Printers
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Processes
[Wed Mar 9 11:38:47 2016][debug2] executing ps -A -o user,pid,pcpu,pmem,vsz,tty,etime,command
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::SSH
[Wed Mar 9 11:38:47 2016][debug2] executing ssh-keyscan 127.0.0.1
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Screen
[Wed Mar 9 11:38:47 2016][debug] retrieving EDID data:
[Wed Mar 9 11:38:47 2016][debug] - reading /sys/devices content: no result
[Wed Mar 9 11:38:47 2016][debug] - running monitor-get-edid-using-vbe command: command not available
[Wed Mar 9 11:38:47 2016][debug] - running monitor-get-edid command: command not available
[Wed Mar 9 11:38:47 2016][debug] - running get-edid command: command not available
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares
[Wed Mar 9 11:38:47 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares::RPM
[Wed Mar 9 11:38:47 2016][debug2] executing rpm -qa --queryformat '%{NAME}\t%{ARCH}\t%{VERSION}-%{RELEASE}\t%{INSTALLTIME:date}\t%{SIZE}\t%{VENDOR}\t%{SUMMARY}\n'
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Storages
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Generic::Users
[Wed Mar 9 11:38:48 2016][debug2] executing who
[Wed Mar 9 11:38:48 2016][debug2] executing last
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro::LSB
[Wed Mar 9 11:38:48 2016][debug2] executing lsb_release -a
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Drives
[Wed Mar 9 11:38:48 2016][debug2] executing df -P -T -k
[Wed Mar 9 11:38:48 2016][debug2] executing blkid -w /dev/null /dev/sdb1
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Inputs
[Wed Mar 9 11:38:48 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::LVM
[Wed Mar 9 11:38:48 2016][debug2] executing lvs -a --noheading --nosuffix --units M -o lv_name,vg_uuid,lv_attr,lv_size,lv_uuid,seg_count
[Wed Mar 9 11:38:49 2016][debug2] executing pvs --noheading --nosuffix --units M -o pv_name,pv_fmt,pv_attr,pv_size,pv_free,pv_uuid,pv_pe_count,vg_uuid
[Wed Mar 9 11:38:49 2016][debug2] executing vgs --noheading --nosuffix --units M -o vg_name,pv_count,lv_count,vg_attr,vg_size,vg_free,vg_uuid,vg_extent_size
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Memory
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Networks
[Wed Mar 9 11:38:49 2016][debug2] executing netstat -nr
[Wed Mar 9 11:38:49 2016][debug] retrieving interfaces list:
[Wed Mar 9 11:38:49 2016][debug2] executing /sbin/ip addr show
[Wed Mar 9 11:38:49 2016][debug] - running /sbin/ip command: success
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Networks::FibreChannel
[Wed Mar 9 11:38:49 2016][debug2] executing systool -c fc_host -v
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Networks::FibreChannel
[Wed Mar 9 11:38:49 2016][debug2] executing systool -c fc_host -v
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Storages
[Wed Mar 9 11:38:49 2016][debug] retrieving devices list:
[Wed Mar 9 11:38:49 2016][debug2] executing /sbin/fdisk -l
[Wed Mar 9 11:38:49 2016][debug] - reading /sys/block content: success
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Storages::Adaptec
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Uptime
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::Videos
[Wed Mar 9 11:38:49 2016][debug] retrieving display information:
[Wed Mar 9 11:38:49 2016][debug] - running ddcprobe command: command not available
[Wed Mar 9 11:38:49 2016][debug] - reading Xorg log file: unable to get Xorg PID
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386::CPU
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Virtualization
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem
[Wed Mar 9 11:38:49 2016][debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::XenCitrixServer
[Wed Mar 9 11:38:49 2016][debug2] executing xe vm-list

[Wed Mar 9 11:38:49 2016][debug] Section HARDWARE has changed since last inventory
[Wed Mar 9 11:38:49 2016][debug] [http client] Using Compress::Zlib for compression
[Wed Mar 9 11:38:49 2016][debug2] [http client] sending message:

FusionInventory Agent not collecting TeamViewer ID for Windows

  • FusionInventory Agent 2.3.18
  • GLPI 9.1.1
  • FusionInventory Plugin 9.1+1.0
  • TeamViewer 11.0.53254HC

remote_mgmt field has null value in GLPI.

on Windows this can be retrieved from the registry
32 bit = HKLM\SOFTWARE\TeamViewer\ClientID
64bit = HKLM\SOFTWARE\Wow6432Node\TeamViewer\ClientID

FusionInventory-agent for Windows fails to start installation with /server or/and /httpd-trust argument

I'm trying to install fusioninventory agent from command line, and every time that I'm adding the /server="http://internal-IP/glpi/plugins/fusioninventory" the installation stops and opens a new browser tab with the User Guide. I've also noticed that strange behavior when added /httpd-trust=internal-IP

Even stranger is that if I pass an empty string ( /server="" ) the installation continues normally.

I've tried the arguments with both latest versions 2.3.17 and 2.3.18 but both of them failed.

Impossible deployé des applications

Depuis la mise à jour en 2.3.17 avec glpi 0.90 et fusion inventory 0.90+1.0 voici le message d'erreur dans le s logs de l'agent au moment du déploiement :

[Thu Oct 15 11:34:35 2015][info] running task Deploy
[Thu Oct 15 11:34:35 2015][debug2] http://glpi/glpi/plugins/fusioninventory/?action=getConfig&machineid=LAFVIE504.FONTALVIE.TOULOUGES.LOCAL-2015-10-07-08-06-22&task[Deploy]=2.0.4
[Thu Oct 15 11:34:35 2015][debug2] http://glpi/glpi/plugins/fusioninventory//plugins/fusioninventory/b/deploy/?action=getJobs&machineid=LAFVIE504.FONTALVIE.TOULOUGES.LOCAL-2015-10-07-08-06-22
[Thu Oct 15 11:34:35 2015][error] [http client] communication error: 404 Not Found
[Thu Oct 15 11:34:35 2015][debug] bad JSON: No answer from server.

OpenSUSE 42.1 - installation

Bonjour,

serveur : GLPI 0.90+1.3
pc : OpenSUSE 42.1 x64 - 4.1.21-14 FI-agent 2.3.17 installé avec les sources

pour avoir un agent fonctionnel (au moins l'inventaire), j'ai du installer les modules Perl
suivants :
ExtUtils::MakeMaker::CPANfile
Parse::PMFile
HTTP::Proxy
HTTP::Server::Simple
HTTP::Server::Simple::Authen
IO::Capture::Stderr
IPC::Run
JSON
NET::SNMP
POE::Component::Client::Ping
Test::Compile
Test::Deep
Test::Exception
Test::MockModule
Test::MockObject
Test::NoWarnings
Test::Template
Proc::Daemon
XML::Simple
XML::TreePP
File::Copy::Recursive (sinon, déploiement impossible)

J'ai également du copier à la main le fichier PMFile.pm pour venir à bout des installations.
Pour l'instant, La sortie de Makefile.PL me donne toujours deux modules introuvables :
POE::Component::Client::Ping
Test::MockModule
Pour autant, l'agent s'installe.

Lorsque je lance un inventaire en appelant fusioninventory-agent, deux erreurs :
unknown configuration directive daemon at /usr/local/share/fusioninventory/lib/FusionInventory/Agent/Config.pm line 174, <$handle> line 116.
unknown configuration directive no-fork at /usr/local/share/fusioninventory/lib/FusionInventory/Agent/Config.pm line 174, <$handle> line 118.

J'ajoute en pièce-jointe les logs de l'agent, allégé de l'inventaire.
FI.log.txt

a++
mlrx

Files collection with regexps

I've set up a file collection test using a regexp; and I get the following error:

[error] Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE .php/ at /usr/share/fusioninventory/lib/FusionInventory/Agent/Task/Collect.pm line 368.

I'm using the 2.3.18 release of the agent.

For reference, here is the JSON output from the server, looks like the filter/regexp part is the cause:

{
    "jobs": [{
        "function": "findFile",
        "dir": "\/var\/www",
        "limit": "5",
        "recursive": "1",
        "filter": {
            "regex": "*.php",
            "is_file": "1",
            "is_dir": "0"
        },
        "uuid": "5804dabea0b86",
        "_sid": "1"
    }, {
        "function": "findFile",
        "dir": "\/var\/www",
        "limit": "10",
        "recursive": "1",
        "filter": {
            "regex": "*.*",
            "is_file": "1",
            "is_dir": "0"
        },
        "uuid": "5804dabea0b86",
        "_sid": "3"
    }]
}

Fusioninventory SSL with macos is not possible.

Hello,

I can't compile Fusioninventory with SSL support for MacOS X (because my glpi serveur only accept https connexion), i try to activate IO::Socket::SSL but i've got some errors about openssl include then module isn't disponible into fusioninventory.

I use Darkomen78 script to compile it, I0::Socket::SSL est disable by default in there.

A github snapshot does not constitute a self-contained distribution

The current 2.3.18 source distribution found on github is just a repository snapshot, and is not self-contained for installation. An attempt to 'run perl Makefile.PL' produces the following error:
Can't locate inc/Module/Install.pm in @inc

The proper way to produce a ready to install source distribution is to run 'make dist', and distribute the resulting tar.gz file.

Inventaire bloqué à cause de vmware-cmd

Bonjour,

lors d'un inventaire de mon poste avec fusioninventory-agent je me retrouve bloqué sur la commande vmware-cmd -l

[debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386 [debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386::CPU [debug] Running FusionInventory::Agent::Task::Inventory::Virtualization [debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::VmWareESX [debug2] executing vmware-cmd -l
La commande vmware-cmd -l me demande une authentification pour se connecter a un esx en local
donc pendant l’exécution de fusioninventory-agent il ne se passe rien comme il n'a aucun identifiant définis.
Je suis obliger de ctrl+c pour continuer l'inventaire et il se fini normalement.

Pour vmware-cmd il s'agit du SDK de vsphere 6 que j'ai installé pour un plugin pour shinken, dans mon cas il s'agit de check_esx3.pl donc je ne peux pas supprimer le sdk de vsphere qui pose problème sinon mon plugin ne fonctionne plus

le man de vmware-cmd

> Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
>           vmware-cmd -s <options> <server-action> <arguments>
> 
>      Options:
>        Connection Options:
>           -H or --server <host>            specifies an ESX host or a vCenter Server
>           -h or --vihost <target host>     specifies a target host if host is a virtual center
>           -O <port>                        specifies an alternative port
>           -Q <protocol>                    specifies an alternative protocol
>           -U or --username <username>      specifies a username
>           -P or --password <password>      specifies a password
>           --sessionfile                    specifies a sessionfile path
>           --passthroughauth                specifies a login by sspi option
>           --credstore                      specifies to fetch Credential store information
>           --encoding                       specifies encoding option
>        General Options:
>           -h More detailed help.
>           -q Quiet. Minimal output
>           -v Verbose.
> 
>      Server Operations:
>        vmware-cmd -l
>        vmware-cmd -s register <config_file_path> <datacenter> <resource pool>
>        vmware-cmd -s unregister <config_file_path>
> 
>      VM Operations:
>        vmware-cmd <cfg> getstate
>        vmware-cmd <cfg> start <powerop_mode>
>        vmware-cmd <cfg> stop <powerop_mode>
>        vmware-cmd <cfg> reset <powerop_mode>
>        vmware-cmd <cfg> suspend <powerop_mode>
>        vmware-cmd <cfg> setguestinfo <variable> <value>
>        vmware-cmd <cfg> getguestinfo <variable>
>        vmware-cmd <cfg> getproductinfo <prodinfo>
>        vmware-cmd <cfg> connectdevice <device_name>
>        vmware-cmd <cfg> disconnectdevice <device_name>
>        vmware-cmd <cfg> getconfigfile
>        vmware-cmd <cfg> getuptime
>        vmware-cmd <cfg> answer
>        vmware-cmd <cfg> gettoolslastactive
>        vmware-cmd <cfg> hassnapshot
>        vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
>        vmware-cmd <cfg> revertsnapshot
>        vmware-cmd <cfg> removesnapshots
> 
> Synopsis: /usr/bin/vmware-cmd OPTIONS
> 
> 
> Common VI options:
>    --config (variable VI_CONFIG)
>       Location of the VI Perl configuration file
>    --credstore (variable VI_CREDSTORE)
>       Name of the credential store file defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows
>    --encoding (variable VI_ENCODING, default 'utf8')
>       Encoding: utf8, cp936 (Simplified Chinese), iso-8859-1 (German), shiftjis (Japanese)
>    --help
>       Display usage information for the script
>    --passthroughauth (variable VI_PASSTHROUGHAUTH)
>       Attempt to use pass-through authentication
>    --passthroughauthpackage (variable VI_PASSTHROUGHAUTHPACKAGE, default 'Negotiate')
>       Pass-through authentication negotiation package
>    --password (variable VI_PASSWORD)
>       Password
>    --portnumber (variable VI_PORTNUMBER)
>       Port used to connect to server
>    --protocol (variable VI_PROTOCOL, default 'https')
>       Protocol used to connect to server
>    --psc (variable VI_PSC)
>       Platform services controller's hostname or IP
>    --savesessionfile (variable VI_SAVESESSIONFILE)
>       File to save session ID/cookie to utilize
>    --server (variable VI_SERVER, default 'localhost')
>       VI server to connect to. Required if url is not present
>    --servicepath (variable VI_SERVICEPATH, default '/sdk/webService')
>       Service path used to connect to server
>    --sessionfile (variable VI_SESSIONFILE)
>       File containing session ID/cookie to utilize
>    --url (variable VI_URL)
>       VI SDK URL to connect to. Required if server is not present
>    --username (variable VI_USERNAME)
>       Username
>    --verbose (variable VI_VERBOSE)
>       Display additional debugging information
>    --version
>       Display version information for the script

Sinon en config je suis sous ubuntu 14.04.4, avec fusioninventory-agent en 2.3.17 et fusioninventory en 0.90+1.3
Pour le sdk vsphere version 6.0.0-3561779

fusioninventory agent and plugin

is any possible to get by agent all info from hdd S.M.A.R.T. and with compare with drivedb.h ( smartmontools drive database file). Info from fast smart hdd test should be sent to glpi and put to disk info. This info should be stored last 3 or more test and compare potential indicators of imminent electromechanical failure.
When something wrong will starts with disk (potential failure) for instance Reallocated Sectors Count or Read Error Rate grow then technician should be inform that something wrong aproach.

What do u think about that feature?

Not accepting all Registry values

GLPI-FusionInventory-2.3.17-x64 on WinX does not seem to be honoring the "no-category" reg string.

I have tested other strings such as "server", which are used. (Restarting the service frequently). I have also run: perl.exe fusioninventory --no-category="Printer" with success.

I am stumped what this could be, if not a bug, but haven't found the problem myself yet.

Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Collect"

Hello,

I've make a new install of your agent (and the glpi fusioninventory server) and I have the following issues :

1 - I have a fusioninventory-daemon command who appears. Is it normal ?

2 - When I launch the following command :

fusioninventory-agent -s http://192.168.x.x/glpi/plugins/fusioninventory/ --debug

I have the following error :

Agent seems standby at this moment :

...
[debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::VmWareESX

I have to make Ctrl + C to exit and after I have this error :

[debug] Section DRIVES has changed since last inventory
[debug] [http client] Using Compress::Zlib for compression
[error] Can't locate object method "isEnabled" via package "FusionInventory::Agent::Task::Collect" at /usr/local/share/fusioninventory/lib/FusionInventory/Agent.pm line 335.
[debug] WakeOnLan task execution not requested
[debug] NetDiscovery task execution not requested

Is there a way to solve this please ?

Thank you in advance for your help.

FusionInventory Agent (2.3.16)

inventory stopping with error timeout 500 with agent > 2.3.10 and FusionDirectory 1.0.9.x

Hello,

we have a plugin in FusionDirectory that allow to store the inventory inside the ldap to be able to linked them to system and see it directly into the system object.

Until 2.3.10.x there where no issue and everything goes well, now with 2.3.16 and 2.3.17 all i get is error timeout 500 in exactly the same configuration.

What i see is that the network entries is never filled right, in 2.3.10.x i got all interfaces in 2.3.16/17 all i got is lo.

What kind of debug do you need to check this to and how to get it ?

Cheers

Agent 2.3.18 error Perl multithread

Hi,

I noticed an error on my servers with new agent 2.3.18.
Sometimes no inventory is recovered.
In the logs of the agent appeared errors
unexpected error in FusionInventory Agent :: :: :: Inventory Task :: Win32 :: []: Thread already detached at ../agent/FusionInventory/Agent/Tools/Win32.pm line 501.

Comparing versions 2.3.17 and 2.3.18 there is new functions for multithreading management for Win32 / OLE calls inventories for Windows.
It seems that threads are still running in background.
Restarting the service solve the problem.

I noticed this on Windows 2003/2008/2012
(GLPI 0.90.5 / fusioninventory-glpi 0.90+1.4)

Erreur de segmentation

Il arrive parfois que l'agent plante lors d'un inventaire avec très peu d'informations en retour

# fusioninventory-agent --debug
Erreur de segmentation
La dernier action dans les logs de l'agent
[Mon May 30 16:10:44 2016][debug] [thread 2] - scanning 192.168.xxx.xxxwith SNMP, credentials 3: no result
[Mon May 30 16:10:44 2016][debug] [thread 2] termination
[Mon May 30 16:10:44 2016][debug] cleaning 2 worker threads

Et dans /var/log/messages de mon serveur
May 30 16:10:44 svrh03 kernel: fusioninventory[21603] general protection rip:3c3607e6ab rsp:7ffff9e69e20 error:0

RHEL 6.7

Hi,
Trying to install agent on vm RHEL 6.7, keeps complaining about supposedly missing perl(Net::IP) and perl(XML::Simple), which are installed ....
(using yum install fusioninventory-agent)

Any workaround or explanation ?
Thanks,
Joel

Citrix Xenserver 6.5 VMs issue

I used FI agent 2.3.18, and has some issue with Xenserver 6.5
When running Xen.pm module it's collect only running VMs.
Module XenCitrixServer.pm don't working, because have wrong regexp. I sended pull request #149 about it.
Fixed XenCitrixServer.pm collect all VMs well, but Xen.pm working also and running VMs collected twice.

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.