<div dir="ltr"><br><div><span style="font-family:arial,sans-serif;font-size:13px">> I may be helpful to understand what's going on to run the agent from a console</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">with:</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">> # fusioninventory-agent --daemon --no-fork --debug --debug</span><br style="font-family:arial,sans-serif;font-size:13px">
</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">This was quite helpful ... First it helped me see that, while /etc/default/fusioninventory had daemon mode enabled, the actual agent.cfg had daemon = 0, and seemed to take precendence to the /etc/default setting.</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">I changed daemon mode to 1 in agent.cfg, and then ran your suggested debug command again, and discovered that it was all down to a missing perl module (Text::Template) </span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><div><font face="arial, sans-serif">> [Tue Jan 22 10:22:37 2013][debug] Failed to load HTTP server: Can't locate Text/Template.pm in @INC (@INC > contains: /usr/local/share/fusioninventory/lib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 > /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at > /usr/local/share/fusioninventory/lib/FusionInventory/Agent/HTTP/Server.pm line 11.</font></div>
<div><font face="arial, sans-serif">> BEGIN failed--compilation aborted at /usr/local/share/fusioninventory/lib/FusionInventory/Agent/HTTP/Server.pm > line 11.</font></div><div><font face="arial, sans-serif">> Compilation failed in require at /usr/local/share/fusioninventory/lib/FusionInventory/Agent.pm line 176.</font></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> Fixed that, and the http server is now being fired up .. </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Your other suggestion to try connecting to the port was moot because I could see via lsof that no http process was being fired up .. </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks for your kind suggestions .. best regards.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 January 2013 16:51, Gonéri Le Bouder <span dir="ltr"><<a href="mailto:goneri@rulezlan.org" target="_blank">goneri@rulezlan.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jan 18, 2013 at 01:37:55PM +0000, Carlos Gunners wrote:<br>
> Update .. <br>
><br>
> I have found where the logs go for both glpi and fusioninventory, and I see no<br>
> issues of relevance being displayed in the logs .. <br>
><br>
> [Fri Jan 18 12:26:27 2013][debug] FusionInventory unified agent for UNIX, Linux<br>
> and MacOSX (2.2.7)<br>
> [Fri Jan 18 12:26:27 2013][debug] Configuration directory: /usr/local/etc/<br>
> fusioninventory<br>
> [Fri Jan 18 12:26:27 2013][debug] Data directory: /usr/local/share/<br>
> fusioninventory<br>
> [Fri Jan 18 12:26:27 2013][debug] Storage directory: /usr/local/var/<br>
> fusioninventory<br>
> [Fri Jan 18 12:26:27 2013][debug] Lib directory: /usr/local/share/<br>
> fusioninventory/lib<br>
><br>
> But the situation remains that:<br>
> -- the agent refuses to listen to the port defined (ie, 62354) but is running<br>
> in daemon mode<br>
</div>I may be helpful to understand what's going on to run the agent from a console<br>
with:<br>
# fusioninventory-agent --daemon --no-fork --debug --debug<br>
<div class="im"><br>
> So, it does seem as if there is a clear break in communications, but I am not<br>
> exactly sure why .. <br>
</div>Can you contact your agent from the server?<br>
<br>
<a href="http://client_ip:62354/status" target="_blank">http://client_ip:62354/status</a><br>
<div class="im"><br>
> Possible options:<br>
> -- switch agent back to cron mode, and see if that helps<br>
</div>In this case, switch the task to “pull” mode.<br>
<div class="im"><br>
> -- keep googling to see if one can ascertain exactly what config settings are<br>
> required to ensure http daemon is launched by the agent to listen on specified<br>
> port<br>
> -- follow code to see how the http element is invoked and why it is failing <br>
><br>
> IS THIS MAILING LIST IN USE AT ALL ?<br>
</div>I hope so :)<br>
<br>
Best regards,<br>
--<br>
Gonéri<br>
<br>_______________________________________________<br>
Fusioninventory-user mailing list<br>
<a href="mailto:Fusioninventory-user@lists.alioth.debian.org">Fusioninventory-user@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-user" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-user</a><br></blockquote></div><br></div>