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 2010-05-03 15:24:41

pzpz
Member
Registered: 2010-04-08
Posts: 5

Fusioninventory Deflating Error

Good afternoon,

installed Fusioinventory GLPI plugin Beta 4 with Fusioninventory Agent 2.0.3

When I run the agent :

[debug] sending XML
[error] Deflating problem
[error] No anwser from the server

where should I look for ?

Offline

#2 2010-05-03 16:02:16

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

can you give me parameters of agent ?

Offline

#3 2010-05-03 16:07:33

pzpz
Member
Registered: 2010-04-08
Posts: 5

Re: Fusioninventory Deflating Error

Agent running with parameters:

fusioninventory-agent --server=http://X.X.X.X:81/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php --debug --devlib

Offline

#4 2010-05-03 16:38:20

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

It's look right

look in glpi/files/_plugins/fusioninventory/ dial.*

remove all dial.* file before run agent and after see what you have and copy it here

Offline

#5 2010-05-03 17:32:26

pzpz
Member
Registered: 2010-04-08
Posts: 5

Re: Fusioninventory Deflating Error

Deleted all dial.* files

Run agent again with same params

Got same error

Found a new file named dial.log292839068

It contains :

<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <CONTENT>
    <ACCOUNTINFO>
      <KEYNAME>TAG</KEYNAME>
      <KEYVALUE>SERVER</KEYVALUE>
    </ACCOUNTINFO>
  </CONTENT>
  <DEVICEID>LOG-2010-05-03-17-18-01</DEVICEID>
  <QUERY>PROLOG</QUERY>
  <TOKEN>VVWPXDQTJNNRLKQTLGAWLFJBDRGEOGACWLNVKKIARUOVUAORXXQNIQEQECLQIINBGGFFJCKPOINPPLUIREALSNVJFPVVUDQINBVVG</TOKEN>
</REQUEST>

Offline

#6 2010-05-03 17:43:28

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

I try but not understand. I will try tonight

Offline

#7 2010-05-06 12:29:29

pzpz
Member
Registered: 2010-04-08
Posts: 5

Re: Fusioninventory Deflating Error

Did you find something ?

Offline

#8 2010-05-26 07:23:56

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

Hi.
I've got the same problem.
I use fusioninventory-glpi v. 2.2.1 and fusioninventory-agent v. 2.0.5.

and run agent by command with parameters showed in post above.

switch --debug show me:

[error] Deflating problem
[error] No anwser from the server

also files dial.XXXXXX are created.

I'm looking for solution, but google says nothing.

Offline

#9 2010-05-26 08:03:43

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

Set in your preference in debug mode and after do to webpage : http://X.X.X.X:81/glpi/plugins/fusionin … cation.php

Can you send me source of this page when you have loaded it ?

Offline

#10 2010-05-26 08:19:31

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

I put this link to my borwser (of course with my ip address), but there is blank site and source is empty. There is nothing.

Offline

#11 2010-05-26 08:27:53

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

ok, so it coulbe be ok, do you use SSO (LDAP authentification by LDAP or other) ?

Offline

#12 2010-05-26 08:40:23

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

ddurieux wrote:

ok, so it coulbe be ok, do you use SSO (LDAP authentification by LDAP or other) ?

No, I don't use SSO.

Offline

#13 2010-05-26 09:03:33

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

Have you zlib php module installed and loaded ?

Offline

#14 2010-05-26 09:44:47

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

Yes.  php zlib module is active:

ZLib Support     enabled
Stream Wrapper support     compress.zlib://
Stream Filter support     zlib.inflate, zlib.deflate
Compiled Version     1.2.1.1
Linked Version     1.2.3.3 

I did a test. I have replaced address server to http://x.x.x.x/ocsinventory and it worked, added localhost to OCS Inventory.
But SNMPQuery and NetDiscovery module didn't work. --debug said:

[debug] No NETDISCOVERY. Exiting...
[debug] No SNMPQuery. Exiting...

However this modules are installed. So there I have another problem.
I don't want run agent for ocs but for glpi.

Offline

#15 2010-05-26 10:00:11

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

ah nice. I think it's a problem in plugin configuration, see if you have activated snmp in configuration (tab modules) and in agent if you have put to yes discovery and snmpquery and your range ip is put to yes for discovery and/or query

Offline

#16 2010-05-26 10:26:25

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

I checked config and:
    in settings tab module i have snmp=yes, inventory and query also.

    in ip range settings query and discovery are active and agent is choosen.

    in  snmp agent settings agent is added automaticaly after run command in console. 
         inventory, query and discovery are active but filed version is empty.

I have installed agent via cpan. Maybe there is a problem? Agent isn't correctly installed?

I don't know where i should look for.

Offline

#17 2010-05-26 10:38:46

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

perhaps, try this command :

perl -MFusionInventory::Agent::Task::NetDiscovery -e1

Offline

#18 2010-05-26 10:40:45

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

command did nothing. I mean there is no output.

Offline

#19 2010-05-26 10:48:31

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

ok, so it's installed.

run agent with --debug and at the top when you run agent, you have few lines like :

[debug] $VAR1 = '<?xml version="1.0" encoding="UTF-8"?>
<REPLY>
   <PROCESSNUMBER>1274863673/023</PROCESSNUMBER>
   <OPTION>
      <NAME>SNMPQUERY</NAME>
      <PARAM CORE_QUERY="1" THREADS_QUERY=

what have you ?

Offline

#20 2010-05-26 10:58:00

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

a did command : fusioninventory-agent --debug and i got this output

[debug] FusionInventory unified agent for UNIX, Linux and MacOSX 2.0.5
[debug] Log system initialised (Stderr)
[debug] --scan-homedirs missing. Don't scan user directories
[debug] vardir: /var/lib/fusioninventory-agent/http:__10.14.19.153:80_glpi_plugins_fusioninventory_front_plugin_fusioninventory.communication.php
[debug] No accountinfo file defined
[debug] Account info updated successfully
[debug] [http://10.14.19.153:80/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php] Next server contact planned for Wed May 26 11:11:42 2010
[debug] FusionInventory Agent initialised
[debug] Compress::Zlib is available.
[debug] token is :HJMIHWLIBCWNIRTTLVBINGAJKTWDLXEMFTNSGADQRXIQVUFCXLTNRLGFVAHCEECQAMGSOAELLSIPPLWBTHSDJSLCUQMTOWHHLRQMH
[debug] sending XML
[error] Deflating problem
[error] No anwser from the server
[debug] [http://10.14.19.153:80/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php] Next server contact'd just been planned for Wed May 26 11:23:42 2010

my /etc/fusioninventory/agent.cfg is:

basevardir=/var/lib/fusioninventory-agent
server=http://10.14.19.153:80/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php
tag=FUSION

Offline

#21 2010-05-26 11:01:40

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

Delete files in glpi/plugins/fusioninventory and try this package : http://forge.fusioninventory.org/attach … ase.tar.gz

Offline

#22 2010-05-26 11:11:06

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

i have replaced files and there is the same output.
in tab : history of agent execution have appeared entries with start date and time and clepsydra in filed state.

Offline

#23 2010-05-26 11:12:31

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

and you have always "Deflating problem" ?

Offline

#24 2010-05-26 11:15:20

adaman
Member
From: Poland
Registered: 2010-05-26
Posts: 13

Re: Fusioninventory Deflating Error

almost. only if i put server=http://10.14.19.153/ocsinventory there is a entry in ocs. but no discover and query.

Offline

#25 2010-05-26 11:21:09

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Fusioninventory Deflating Error

Add in plugins/fusioninventory/front/plugin_fusioninventory.communication.php

at line 162  to have :

            $ptc->setXML($ptc->getXML());
            file_put_contents(GLPI_PLUGIN_DOC_DIR."/fusioninventory/error.log".rand(), $ptc->getXML());
            echo $ptc->getSend(); // echo response for the agent

run agent and see in glpi/files/_plugins/fusioninventory/error.log* and give me result

Offline

Board footer

Powered by FluxBB