You are not logged in.

Announcement

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

#1 2024-03-02 12:11:15

ApB
Member
Registered: 2010-11-22
Posts: 6

GLPI-agent after upgrade

Hi!
After upgrade glpi (from 8 to 10) There is a problem with the snmp polling of devices, at the same time, information from glpi-agent accept correctly.

There is an error in the task: The agent requests a configuration that has already been sent to it by the server. Most likely, a critical error occurred with the agent. If I'm start request from commandline, I'm see answer from device:


CONSOLE wrote:

glpi-netdiscovery --first 192.168.88.85 --last 192.168.88.85 community:public --debug
[debug] initializing job 1
[debug] initializing block 192.168.88.85-192.168.88.85
[debug] Current netdiscovery run expiration timeout: few minutes
[debug] using 1 netdiscovery worker
[debug] starting job 1 with 1 ip to scan using 1 worker
[debug] #1, scanning 192.168.88.85
[debug] #1, partial match for sysobjectID .1.3.6.1.4.1.1129.2.3.49.2 on manufacturer ID
[debug] #1, sysobjectID match: toshiba mib support enabled
[debug] #1, - scanning 192.168.88.85 with SNMP, credentials 1: success
[debug] #1, - scanning 192.168.88.85 with netbios: success
[debug] #1, - scanning 192.168.88.85 with echo ping: success
[debug] #1, - scanning 192.168.88.85 in arp table: no result
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>OKI OkiLAN 7400g Rev.01.00 10/100/1000BASE Ethernet Print Server: Attached to MB770 Rev.01.00: Oki Data Corporation.</DESCRIPTION>
      <DNSHOSTNAME>192.168.88.85</DNSHOSTNAME>
      <IP>192.168.88.85</IP>
      <IPS>
        <IP>127.0.0.1</IP>
        <IP>192.168.88.85</IP>
      </IPS>
      <MAC>00:80:91:b1:12:f1</MAC>
      <MANUFACTURER>Toshiba</MANUFACTURER>
      <MODEL>MB770</MODEL>
      <NETBIOSNAME>MFPB112F1</NETBIOSNAME>
      <SERIAL>AK62016977</SERIAL>
      <SNMPHOSTNAME>OKI-MB770-B112F1</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>3 days, 20:10:39.00</UPTIME>
      <USERSESSION>MFPB112F1</USERSESSION>
      <WORKGROUP>WORKGROUP</WORKGROUP>
    </DEVICE>
    <MODULEVERSION>6.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>
[debug] #1, #1, worker termination
[debug] #1, Netdiscovery worker terminated

The information received hints that the survey is taking place, which means that the received data is not being transmitted.

Question_1:

How is it possible to debug a task? Should I enable an additional or extended log? Right now I don't see any error messages in the standard /var/log

Question_2:

How can I force the survey task? Yes, there is a "boost" button, but a message appears that the start is scheduled for. How do I start a task "now"?

Offline

#2 2024-03-04 17:52:42

ApB
Member
Registered: 2010-11-22
Posts: 6

Re: GLPI-agent after upgrade

hi agane ...

after restart agent in log:

[Sun Mar  3 17:01:02 2024][debug] Configuration directory: /etc/glpi-agent
[Sun Mar  3 17:01:02 2024][debug] Data directory: /usr/share/glpi-agent
[Sun Mar  3 17:01:02 2024][debug] Storage directory: /var/lib/glpi-agent
[Sun Mar  3 17:01:02 2024][debug] Lib directory: /usr/share/glpi-agent/lib
[Sun Mar  3 17:01:02 2024][debug] [target server0] Next server contact planned for Mon Mar  4 14:22:18 2024
[Sun Mar  3 17:01:02 2024][debug] Available tasks:
[Sun Mar  3 17:01:02 2024][debug] - Inventory: 1.15
[Sun Mar  3 17:01:02 2024][debug] - NetDiscovery: 6.1
[Sun Mar  3 17:01:02 2024][debug] - NetInventory: 6.1
[Sun Mar  3 17:01:02 2024][debug] - RemoteInventory: 1.4
[Sun Mar  3 17:01:02 2024][debug] - WakeOnLan: 2.2
[Sun Mar  3 17:01:02 2024][debug] target server0: server http://it.domain.com
[Sun Mar  3 17:01:02 2024][debug] No planned task for server0
[Sun Mar  3 17:01:02 2024][debug] Trusted target ip: 192.168.44.44/32, ::ffff:c0a8:2c2c/128
[Sun Mar  3 17:01:02 2024][debug] agent reinit done.
[Sun Mar  3 17:01:02 2024][debug] [http server] HTTPD service stopped
[Sun Mar  3 17:01:02 2024][info] GLPI Agent exiting (9434)
[Sun Mar  3 17:01:02 2024][debug] [http server] HTTPD service stopped
[Sun Mar  3 17:01:02 2024][info] GLPI Agent exiting (79209)
[Sun Mar  3 17:01:47 2024][debug] Logger backend File initialized
[Sun Mar  3 17:01:47 2024][debug] GLPI Agent (1.7.1-1)
[Sun Mar  3 17:01:47 2024][debug] Configuration directory: /etc/glpi-agent
[Sun Mar  3 17:01:47 2024][debug] Data directory: /usr/share/glpi-agent
[Sun Mar  3 17:01:47 2024][debug] Storage directory: /var/lib/glpi-agent
[Sun Mar  3 17:01:47 2024][debug] Lib directory: /usr/share/glpi-agent/lib
[Sun Mar  3 17:01:47 2024][debug] [target server0] Next server contact planned for Mon Mar  4 14:22:18 2024
[Sun Mar  3 17:01:47 2024][debug] Available tasks:
[Sun Mar  3 17:01:47 2024][debug] - Inventory: 1.15
[Sun Mar  3 17:01:47 2024][debug] - NetDiscovery: 6.1
[Sun Mar  3 17:01:47 2024][debug] - NetInventory: 6.1
[Sun Mar  3 17:01:47 2024][debug] - RemoteInventory: 1.4
[Sun Mar  3 17:01:47 2024][debug] - WakeOnLan: 2.2
[Sun Mar  3 17:01:47 2024][debug] target server0: server http://it.domain.com
[Sun Mar  3 17:01:47 2024][debug] No planned task for server0
[Sun Mar  3 17:01:47 2024][debug] Built by Debian
[Sun Mar  3 17:01:47 2024][debug] Source time: 2023-12-22 15:13
[Sun Mar  3 17:01:47 2024][info] GLPI Agent starting
[Sun Mar  3 17:01:47 2024][debug] Skipping running daemon control based on PID file checking
[Sun Mar  3 17:01:47 2024][debug] GLPI Agent started in foreground
[Sun Mar  3 17:01:48 2024][debug] Trusted target ip: 192.168.44.44/32, ::ffff:c0a8:2c2c/128
[Sun Mar  3 17:01:48 2024][debug] [http server] Trying to load BasicAuthentication Server plugin
[Sun Mar  3 17:01:48 2024][debug] [basic authentication server plugin] Initializing BasicAuthentication v1.0 Server plugin...
[Sun Mar  3 17:01:48 2024][debug] [basic authentication server plugin] Loading BasicAuthentication Server plugin configuration from /etc/glpi-agent/basic-authentication-server-plugin.cfg
[Sun Mar  3 17:01:48 2024][error] [basic authentication server plugin] Plugin enabled without basic authentication fully setup
[Sun Mar  3 17:01:48 2024][info] [basic authentication server plugin] Plugin disabled on wrong configuration
[Sun Mar  3 17:01:48 2024][debug] [http server] HTTPD BasicAuthentication Server plugin loaded but disabled
[Sun Mar  3 17:01:48 2024][debug] [http server] Trying to load Inventory Server plugin
[Sun Mar  3 17:01:48 2024][debug] [inventory server plugin] Initializing Inventory v1.1 Server plugin...
[Sun Mar  3 17:01:48 2024][debug] [inventory server plugin] Loading Inventory Server plugin configuration from /etc/glpi-agent/inventory-server-plugin.cfg
[Sun Mar  3 17:01:48 2024][error] [inventory server plugin] Plugin enabled without token in configuration
[Sun Mar  3 17:01:48 2024][info] [inventory server plugin] Plugin disabled on wrong configuration
[Sun Mar  3 17:01:48 2024][debug] [http server] HTTPD Inventory Server plugin loaded but disabled
[Sun Mar  3 17:01:48 2024][debug] [http server] Trying to load Proxy Server plugin
[Sun Mar  3 17:01:49 2024][debug] [proxy server plugin] Initializing Proxy v2.3 Server plugin...
[Sun Mar  3 17:01:49 2024][debug] [proxy server plugin] Loading Proxy Server plugin configuration from /etc/glpi-agent/proxy-server-plugin.cfg
[Sun Mar  3 17:01:49 2024][debug] [http server] HTTPD Proxy Server plugin loaded but disabled
[Sun Mar  3 17:01:49 2024][debug] [http server] Trying to load SecondaryProxy Server plugin
[Sun Mar  3 17:01:49 2024][debug] [proxy2 server plugin] Initializing SecondaryProxy v1.1 Server plugin...
[Sun Mar  3 17:01:49 2024][debug] [proxy2 server plugin] Loading SecondaryProxy Server plugin configuration from /etc/glpi-agent/proxy2-server-plugin.cfg
[Sun Mar  3 17:01:49 2024][debug] [http server] HTTPD SecondaryProxy Server plugin loaded but disabled
[Sun Mar  3 17:01:49 2024][debug] [http server] Trying to load SSL Server plugin
[Sun Mar  3 17:01:49 2024][debug] [ssl server plugin] Initializing SSL v1.1 Server plugin...
[Sun Mar  3 17:01:49 2024][debug] [ssl server plugin] Loading SSL Server plugin configuration from /etc/glpi-agent/ssl-server-plugin.cfg
[Sun Mar  3 17:01:49 2024][debug] [http server] HTTPD SSL Server plugin loaded but disabled
[Sun Mar  3 17:01:49 2024][debug] [http server] Trying to load Test Server plugin
[Sun Mar  3 17:01:49 2024][debug] [server test plugin] Initializing Test v1.7.1-1 Server plugin...
[Sun Mar  3 17:01:49 2024][debug] [server test plugin] Loading Test Server plugin configuration from /etc/glpi-agent/server-test-plugin.cfg
[Sun Mar  3 17:01:49 2024][info] [http server] HTTPD Test Server plugin loaded
[Sun Mar  3 17:01:49 2024][debug] [http server] Trying to load ToolBox Server plugin
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin] Initializing ToolBox v1.3 Server plugin...
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin] Loading ToolBox Server plugin configuration from /etc/glpi-agent/toolbox-plugin.cfg
[Sun Mar  3 17:01:49 2024][debug] [target listener] Next tasks run planned for Sun Mar  3 17:51:34 2024
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin] Loading default YAML from toolbox.yaml
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin, results] Loaded Inventory Results fields module
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin, results] Loaded NetDiscovery Results fields module
[Sun Mar  3 17:01:49 2024][debug] [toolbox plugin, results] Loaded NetInventory Results fields module
[Sun Mar  3 17:01:49 2024][info] [http server] HTTPD ToolBox Server plugin loaded
[Sun Mar  3 17:01:49 2024][info] [http server] HTTPD service started on port 62354
[Sun Mar  3 17:01:49 2024][info] target server0: next run: Mon Mar  4 14:22:18 2024 - http://it.domain.com
[Mon Mar  4 14:22:18 2024][info] target server0: server http://it.domain.com
[Mon Mar  4 14:22:18 2024][info] sending contact request to server0
[Mon Mar  4 14:22:18 2024][info] sending prolog request to server0
[Mon Mar  4 14:22:20 2024][info] target server0: next run: Tue Mar  5 13:31:53 2024 - http://it.domain.com


whats wrong? ^-/

Offline

Board footer

Powered by FluxBB