OCS Inventory

Index

Introduction

Open Computer and Software Inventory Next Generation (OCS inventory NG) is free software that enables users to inventory IT assets. OCS-NG collects information about the hardware and software of networked machines running the OCS client program ("OCS Inventory Agent"). OCS can visualize the inventory through a web interface. Furthermore, OCS includes the capability of deploying applications on computers according to search criteria. Agent-side IpDiscover makes it possible to discover the entirety of networked computers and devices.

References

-vagrant-ocsinventoryng-server

https://gitlab.com/jegc/vagrant-ocsinventoryng-server

-OCS Inventory NG 2.3 Complete install guide on Debian 8.7 Jessie

http://www.miloszengel.com/ocs-inventory-ng-2-3-complete-install-guide-on-debian-8-7-jessie/

Set up version 2.3.1 using Vagrant

Follow the reference "vagrant-ocsinventoryng-server" for installing OCS Inventory in a VirtualBox Debian via Vagrant.

Configure version 2.3.1

1st steps

sudo ln -s /etc/apache2/conf-available/ocsinventory-reports.conf /etc/apache2/conf-enabled/ocsinventory-reports.conf

sudo ln -s /etc/apache2/conf-available/z-ocsinventory-server.conf /etc/apache2/conf-enabled/z-ocsinventory-server.conf

sudo chown www-data:www-data -R /var/lib/ocsinventory-reports

sudo apt-get update && sudo apt-get install php5-curl

DB MySQL

Let's assume it'll only be needed to access the database from the local machine

>mysql -u root -p
GRANT ALL PRIVILEGES ON `ocsweb` .* TO 'ocs'@'localhost' IDENTIFIED BY 'ocs' WITH GRANT OPTION;

ocsreports configuration

http://localhost:8080/ocsreports/

MySQL login: ocs

MySQL password:

Name of Database: ocsweb

MySQL HostName: localhost

Installation finished you can log in index.php with login=admin and password=admin

Final step

Remove the install file:

sudo rm /usr/share/ocsinventory-reports/ocsreports/install.php

At this point OCS NG server is functional.

Now, check if http://ocsng_ip/ocsinventory you should get something like below:

---------------------

Bad Request

Your browser sent a request that this server could not understand.

Apache/2.4.10 (Debian) Server at localhost Port 8080

---------------------

It’s normal since your web browser doesn’t know how to talk to inventory service J Keep it in mind, that “Internal Server Error 500” here means that ocs inventory (z-ocsinventory-server.conf) cannot talk to the database

Test Agent

OCS Inventory NG Agent 2.3.1.1 (tested on Windows 7)

Server URL> http://localhost:8080/ocsinventory