I run GLPI and OCS Inventory NG server on a VM using the web port 7877. In another VM with Ubuntu, I installed OCS Inventory agent using the web port 5566. This is supposed to synchronize and send information about the machine to server but when I ran ocsinventory-agent
, even as root, I get a message like this:
[error] Cannot establish communication : 500 Can't connect to 127.0.0.1:7877 (Connection refused)
then I googled this issue and it was talking about SQL problems. Until now it is still unsolved.
Seems like the agent is trying to connect to himself (127.0.0.1) instead of the server. You should edit
/etc/ocsinventory/ocsinventory-agent.cfg
to inform the OCS server's IP address, like this: