Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Import inventory collected offline on the host

Good morning, how are you?

What settings should I adjust so that I can import an .ocs file generated by the agent installed on the computer, choosing the option when installing "local inventory"?

My server is configured in https, but I have already changed the configuration from http: // localhost: 80 / ocsinventory

for:

https: // localhost: 443 / ocsinventory

I'm currently using this:

https: // server-ip: 443 / ocsinventory

Error: Erro 0 / php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

https: // localhost / ocsinventory

https: // server-ip / ocsinventory

But whenever I try to import I get different errors.

Do I need to adjust something in Apache?

When I use the script it works, see:

root @ ocsweb: ~ / scripts #

root @ ocsweb: ~ / scripts # perl ocsinventory-injector.pl -v -f /home/usuario/PCX-XX-2020-09-01-16-06-20.ocs --cafile / root / certificate / cacert. pem -u https: // IP-SERVER: 443 / ocsinventory

Loading /home/usuario/PCX-XX-2020-09-01-16-06-20.ocs...OK

root @ ocsweb: ~ / scripts #

Thank you.

in Administrative console by (170 points)
recategorized by

1 Answer

+1 vote
Hi

Use the script ocsinventory-injector.pl not the ocsreports interface.

Regards

Frank
by (90.2k points)
 
Powered by Question2Answer
...