You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-06-05 10:49:18

Tussana
Guest
Registered: 2017-03-29
Posts: 8

Aucunes tâches ne s'éxécutent

Bonjour,

J'ai un gros problème avec Fusion inventory 9.2+2.0 l'agent 2.4-2 installé en local sur le serveur et GLPI 9.2.3
Mes plages IP sont rentrées, mes tâches aussi avec le bon agent la bonne cible et acteurs.

Cron Ok :

* * * * * /usr/bin/php7.0 /var/www/glpi/front/cron.php ?>/dev/null

Mais aucunes tâches ne s'exécutent et j'ai aucunes erreurs dans les logs du coup je sèche.

Si quelqu'un a une idée je suis preneur

Offline

#2 2018-06-05 17:21:05

Tussana
Guest
Registered: 2017-03-29
Posts: 8

Re: Aucunes tâches ne s'éxécutent

Logs de l'agent

[debug] Logger backend File initialised
[debug] FusionInventory Agent (2.4-2)
[debug] Configuration directory: /etc/fusioninventory
[debug] Data directory: /usr/share/fusioninventory
[debug] Storage directory: /var/lib/fusioninventory-agent
[debug] Lib directory: /usr/share/fusioninventory/lib
[debug] [target local0] Next server contact planned for Tue Jun  5 18:02:04 2018
[debug] [target server0] Next server contact planned for Tue Jun  5 17:57:35 2018
[debug] Available tasks:
[debug] - Inventory: 1.4
[debug] - Deploy: 2.5
[debug] - WakeOnLan: 2.2
[debug] - WMI: 0.3
[debug] - Collect: 2.4.0
[debug] - NetDiscovery: 2.6
[debug] - NetInventory: 2.6
[debug] Planned tasks:
[debug] - Inventory: 1.4
[debug] - Deploy: 2.5
[debug] - WakeOnLan: 2.2
[debug] - WMI: 0.3
[debug] - Collect: 2.4.0
[debug] - NetDiscovery: 2.6
[debug] - NetInventory: 2.6
[debug] Build platform: Debian Linux dev 66d9e9f6
[debug] Build date: Fri Jan 26 14:07:31 UTC 2018
[debug] Running in foreground mode
[info] running task Inventory
[debug] Running FusionInventory::Agent::Task::Inventory::AccessLog
[debug] Running FusionInventory::Agent::Task::Inventory::Generic
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Arch
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Battery
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Bios
[debug] Running FusionInventory::Agent::Task::Inventory::Virtualization
[debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem
[debug] Running FusionInventory::Agent::Task::Inventory::Linux
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Memory
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Memory
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Ports
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Slots
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Domains
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Drives
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Environment
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Firewall
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Firewall::Systemd
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Hostname
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Networks
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Controllers
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Modems
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Sounds
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Printers
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Processes
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Remote_Mgmt
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::SSH
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Screen
[debug] retrieving EDID data:
[debug] - reading /sys/devices content: no result
[debug] - running monitor-get-edid-using-vbe command: command not available
[debug] - running monitor-get-edid command: command not available
[debug] - running get-edid command: command not available
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares::Deb
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Storages
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Timezone
[debug] Using strftime to get the timezone name
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::USB
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Users
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro::OSRelease
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Drives
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Inputs
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Networks
[debug] retrieving interfaces list:
[debug] - running /sbin/ip command: success
[debug] looking for interface speed from syscall:
[debug] - retrieving interface speed from syscall: syscall failed
[debug] looking for interface speed from syscall:
[debug] - retrieving interface speed from syscall: syscall failed
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Storages
[debug] retrieving devices list:
[debug] - reading /sys/block content: success
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Uptime
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Videos
[debug] retrieving display information:
[debug] - running ddcprobe command: command not available
[debug] - reading Xorg log file: unable to get Xorg PID
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386::CPU
[debug] Running FusionInventory::Agent::Task::Inventory::Provider
[debug] last state file '/var/lib/fusioninventory-agent/__LOCAL__/last_state' doesn't exist
[debug] Section MODEMS has changed since last inventory
[debug] Section MEMORIES has changed since last inventory
[debug] Section CONTROLLERS has changed since last inventory
[debug] Section NETWORKS has changed since last inventory
[debug] Section STORAGES has changed since last inventory
[debug] Section PORTS has changed since last inventory
[debug] Section REGISTRY has changed since last inventory
[debug] Section SOUNDS has changed since last inventory
[debug] Section SOFTWARES has changed since last inventory
[debug] Section BIOS has changed since last inventory
[debug] Section SLOTS has changed since last inventory
[debug] Section INPUT has changed since last inventory
[debug] Section DRIVES has changed since last inventory
[debug] Section MONITORS has changed since last inventory
[debug] Section PRINTERS has changed since last inventory
[debug] Section HARDWARE has changed since last inventory
[debug] Section VIDEOS has changed since last inventory
[info] Inventory saved in /tmp/serv-glpi-1-2018-04-24-09-21-21.ocs
[debug] Deploy task not compatible with local target
[debug] WakeOnLan task not compatible with local target
[debug] Collect task not compatible with local target
[debug] NetDiscovery task not compatible with local target
[debug] NetInventory task not compatible with local target
[debug] [http client] Using Compress::Zlib for compression
[info] sending prolog request to server server0
[info] running task Inventory
[debug] Running FusionInventory::Agent::Task::Inventory::AccessLog
[debug] Running FusionInventory::Agent::Task::Inventory::Generic
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Arch
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Battery
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Bios
[debug] Running FusionInventory::Agent::Task::Inventory::Virtualization
[debug] Running FusionInventory::Agent::Task::Inventory::Virtualization::Vmsystem
[debug] Running FusionInventory::Agent::Task::Inventory::Linux
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Memory
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Memory
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Ports
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Dmidecode::Slots
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Domains
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Drives
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Environment
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Firewall
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Firewall::Systemd
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Hostname
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Networks
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Controllers
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Modems
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::PCI::Sounds
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Printers
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Processes
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Remote_Mgmt
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::SSH
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Screen
[debug] retrieving EDID data:
[debug] - reading /sys/devices content: no result
[debug] - running monitor-get-edid-using-vbe command: command not available
[debug] - running monitor-get-edid command: command not available
[debug] - running get-edid command: command not available
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Softwares::Deb
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Storages
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Timezone
[debug] Using strftime to get the timezone name
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::USB
[debug] Running FusionInventory::Agent::Task::Inventory::Generic::Users
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Distro::OSRelease
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Drives
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Inputs
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Networks
[debug] retrieving interfaces list:
[debug] - running /sbin/ip command: success
[debug] looking for interface speed from syscall:
[debug] - retrieving interface speed from syscall: syscall failed
[debug] looking for interface speed from syscall:
[debug] - retrieving interface speed from syscall: syscall failed
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Storages
[debug] retrieving devices list:
[debug] - reading /sys/block content: success
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Uptime
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::Videos
[debug] retrieving display information:
[debug] - running ddcprobe command: command not available
[debug] - reading Xorg log file: unable to get Xorg PID
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386
[debug] Running FusionInventory::Agent::Task::Inventory::Linux::i386::CPU
[debug] Running FusionInventory::Agent::Task::Inventory::Provider
[debug] Section HARDWARE has changed since last inventory
[debug] [http client] Using Compress::Zlib for compression
[info] running task Deploy
[info] No Deploy job enabled or Deploy support disabled server side.
[debug] WakeOnLan task execution not requested
[info] running task Collect
[info] No Collect job enabled or Collect support disabled server side.
[debug] NetDiscovery task execution not requested
[debug] NetInventory task execution not requested

Offline

#3 2018-06-06 16:51:51

Isonic
Guest
From: Rennes
Registered: 2018-03-25
Posts: 29

Re: Aucunes tâches ne s'éxécutent

regarde si tu as un répertoire html en plus a mettre

* * * * * /usr/bin/php7.0 /var/www/glpi/front/cron.php ?>/dev/null

correctif

* * * * * /usr/bin/php7.0 /var/www/html/glpi/front/cron.php &>/dev/null

Tu rentre ça dans la crontab de www-data


GLPI 9.2.2 / Debian 9 x64 / php7.0 / mariaDB /FusionInventory 9.1+1.0

Offline

#4 2018-06-07 15:01:00

Tussana
Guest
Registered: 2017-03-29
Posts: 8

Re: Aucunes tâches ne s'éxécutent

Isonic wrote:

regarde si tu as un répertoire html en plus a mettre

* * * * * /usr/bin/php7.0 /var/www/glpi/front/cron.php ?>/dev/null

correctif

* * * * * /usr/bin/php7.0 /var/www/html/glpi/front/cron.php &>/dev/null

Tu rentre ça dans la crontab de www-data


Non non je suis bien dans /var/www/glpi

Mon fichier de conf ressemble à ça, il y'a quelque chose que j'ai mal renseigné ?

# fusioninventory agent configuration

# all defined values match default
# all commented values are examples


#
# Target definition options
#

# send tasks results to an OCS server
#server = http://server.domain.com/ocsinventory
# send tasks results to a FusionInventory for GLPI server
server = https://glpi.com/plugins/fusioninventory/
# write tasks results in a directory
local = /tmp

#
# Task definition options
#

# disable software deployment tasks
#no-task = deploy
tasks = inventory,deploy,inventory

#
# Target scheduling options
#

# maximum delay before first target, in seconds
delaytime = 3600
# do not contact the target before next scheduled time
lazy = 0

#
# Inventory task specific options
#

# do not list local printers
# no-category = printer
# allow to scan user home directories
scan-homedirs = 0
# allow to scan user profiles
scan-profiles = 0
# save the inventory as HTML
html = 0
# timeout for inventory modules execution
backend-collect-timeout = 180
# always send data to server
force = 0
# additional inventory content file
additional-content =

#
# Package deployment task specific options
#

# do not use peer to peer to download files
no-p2p = 0

#
# Network options
#

# proxy address
proxy =
# user name for server authentication
user =
# password for server authentication
password =
# CA certificates directory
ca-cert-dir =
# CA certificates file
ca-cert-file = /etc/ssl/certs/glpi.com.pem
# do not check server SSL certificate
no-ssl-check = 1
# connection timeout, in seconds
timeout = 180

#
# Web interface options
#

# disable embedded web server
no-httpd = 0
# network interface to listen to
httpd-ip =
# network port to listen to
httpd-port = 62354
# trust requests without authentication token
httpd-trust =

#
# Logging options
#

# Logger backend, either Stderr, File or Syslog (Stderr)
logger = Stderr
# log file
logfile = /var/log/fusioninventory.log
# maximum log file size, in MB
#logfile-maxsize = 0
# Syslog facility
logfacility = LOG_DAEMON
# Use color in the console
color = 0

#
# Execution mode options
#

# add given tag to inventory results
tag =
# debug mode
debug = 1

# time to wait to reload config (0 means no reload, it's default value)
# conf-reload-interval = 0

# Since 2.4, you can include all .cfg files from a folder or any given file
# For example:
#   1. file "conf.d/tag.cfg" contains "tag = 'entity123'"
#      using "include 'conf.d' will set tag to 'entity123'
#   2. file "/etc/production/glpi-tag" contains "tag = 'entity123'"
#      using "include '/etc/production/glpi-tag' will set tag to 'entity123'
# Remark:
#   1. Prefer to use full path to avoid confusion, but be aware relative paths are
#      relative against current config file folder
#   2. A parameter set in included file can be over-rided if set again after the directive
#   3. *.cfg files are read in order in folder, it's better to prefix them with a number
#   4. Package maintainers are encouraged to use this feature to avoid conflict
#      during upgrades after configuration update
#
include "conf.d/"
#include "agent.local"

Offline

#5 2018-06-07 16:34:06

Tussana
Guest
Registered: 2017-03-29
Posts: 8

Re: Aucunes tâches ne s'éxécutent

Deploy task not compatible with local target --> Ça me parait bizarre non ?

Last edited by Tussana (2018-06-07 16:36:24)

Offline

#6 2018-06-08 12:33:28

Tussana
Guest
Registered: 2017-03-29
Posts: 8

Re: Aucunes tâches ne s'éxécutent

Bon pour moi c'est clairement un bug du plugin, en ligne de commande je scanne bien ce que je veux. Mon cron est ok mes tâches, créneau horaire de même, communauté snmp bien configurée mais rien ne se lance depuis GLPI.
Petite particularité je suis en https

Offline

Board footer

Powered by FluxBB