Automatic inventory agent ocs ng agent. Inventory of computer and office equipment


OCS Inventory is an inventory system for computers on a network, the equipment and software installed on them. It also allows you to remotely configure workstation software. Works under all operating systems.

System architecture

The OCS Inventory NG system uses an agent program that runs on the equipment being inspected and transmits information to a central server. Agent programs are also managed from a central central server. The central server of the system allows not only to collect information about the equipment being inventoried, but also to partially manage the computers being inspected.
The system is distributed under the GPL v2 license and is an Open Source project.

Download system:

Guard

Contact us if you need urgent laptop repairs. Best quality, great prices.

Legal problem? Don't try to understand everything yourself, turn to specialists.

Program version: 1.02.1

License: GNU/GPL

Program language: ENG

Management Server:

Windows 2000 Professional

Windows 2000 Server

Windows Server 2003

Fedora Core Linux

Windows 95 with DCOM95 (or IE 4 or higher)

Windows 98 Second Edition

Windows NT4 Workstation with IE 4 or higher

Windows NT4 Server with IE 4 or higher

Windows 2000 Professional

Windows 2000 Server/Advanced Server

Windows XP Home Edition

Windows XP Professional Edition

Windows Server 2003

Windows Server 2008

Windows Seven Beta

Fedora Core Linux

Description:

OCS Inventory NG– an inventory system of computers on the network, the equipment and software installed on them. It also allows you to remotely configure workstation software. Works under all operating systems.

System architecture.

The OCS Inventory NG system uses an agent program that runs on the equipment being inspected and transmits information to a central server. Agent programs are also managed from a central central server. The central server of the system allows not only to collect information about the equipment being inventoried, but also to partially manage the inspected computers.

Communication between the server and the inspected equipment occurs via HTTP/HTTPS protocols. All transmitted information is compressed to reduce network traffic.

Installation of the agent program can be done in several ways:

* Using a logon script or GPO rules on Windows networks.

* On Linux, you must install the agent program yourself.

The central management server contains 4 main components:

* Database server for storing information about inventory equipment.

* Communication server that communicates with the database server and agent programs on the inventory equipment.

* Deployment server for creating agent installation packages.

* Management console, which allows you to view information about inventory equipment via an Internet browser.

Scheme of work.

Modified November 7, 2009 by Timba

OCS Inventory NG stands for Open Computers and Software Inventory. This software is designed to inventory computers on a network, collecting information about software and installed equipment.

Congratulations to the competition participant

This text was submitted to an author competition that we launched in the spring. We sorted through a large number of submitted materials, summed up the results and awarded the winners. The author of this note received a prize - a three-month subscription to Hacker. Congratulations!

Key Features:

  • convenient web interface;
  • expanding capabilities with plugins;
  • IpDiscover and SNMP support;
  • advanced search;
  • collection of Windows and Office keys;
  • remote package deployment.

This product supports all popular operating systems: Windows, Linux, BSD, Sun Solaris, IBM AIX, HP-UX, macOS, Android.

We will install from the official website, since the Debian repositories have old versions.

With this hardware configuration, the server can easily collect information from 150 agents with an update interval of four hours.

  • Software: Debian Jessie (8.7.1) x64, OCSNG_UNIX_SERVER-2.3.1, OCSNG-Windows-Agent-2.3.0.0
  • VPS: OpenVZ, 2 vCPU, 512 MB, 15 GB SSD

Preparation

Let's check the date and time to match our time zone. On some virtual servers they are installed incorrectly, which is why they are displayed incorrectly in the database.

Date ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime

Connect the repository. Open the list of mirrors and add the DotDeb repository.

Nano /etc/apt/sources.list DotDeb deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all

Import DotDeb key:

Wget http://www.dotdeb.org/dotdeb.gpg -O - -q | apt-key add -

Update the list of mirrors and packages:

Apt-get update && apt-get upgrade

Let's install the necessary packages:

Apt-get install make apache2 php7.0-mbstring php7.0-soap php7.0-common libapache2-mod-php7.0 php-pear php7.0-cli php7.0-ldap php7.0-gd php7.0- zip mariadb-server php7.0-mysqlnd php7.0-curl

During installation, we set a password for the MySQL root user.

Install Perl modules:

Apt-get install libxml-simple-perl libio-compress-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libarchive-zip-perl cpan -i XML::Entities

After this, install MariaDB and create the ocs user and the ocsweb database.

Login to the database:

Mysql -u root -p

Create a user:

Mysql> create user "ocs"@"localhost" identified by "pass_mysql";

Create a database:

Mysql> create database `ocsweb` character set = "utf8";

We assign rights:

Mysql> GRANT ALL PRIVILEGES ON `ocsweb`.* to `ocs`@localhost; mysql> FLUSH PRIVILEGES; mysql>quit;

Installation and configuration

Download OCS-NG Server:

Wget -P /tmp https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.3.1/OCSNG_UNIX_SERVER-2.3.1.tar.gz tar -xf /tmp/OCSNG_UNIX_SERVER-2.3.1. tar.gz -C /tmp cd /tmp/OCSNG_UNIX_SERVER-2.3.1/

Run the installation script (leave all settings at default):

./setup.sh

  1. We are confident and want to continue.
  2. Our MySQL server is running on localhost.
  3. And it works on port 3306.
  4. The apache2 daemon binary is located in /usr/sbin/apache2ctl.
  5. The configuration file is here: /etc/apache2/apache2.conf.
  6. Apache2 runs as the www-data user.
  7. Which is part of the www-data group.
  8. The installer will place the OCS Inventory NG configuration file in the /etc/apache2/conf-available directory.
  9. The PERL binary is located here: /usr/bin/perl.
  10. Yes, we want to set up a configuration server on this computer.
  11. We place the OCS server logs in /var/log/ocsinventory-server .
  12. Plugin configuration files will be located here: /etc/ocsinventory-server/plugins.
  13. Set the location of the Perl modules: /etc/ocsinventory-server/perl .
  14. Apache2::SOAP PERL module is not installed, would you like to continue? (This is an optional OCS feature; without it everything will work correctly.)
  15. To have Apache 2 load Perl modules before OCS starts, the installer will rename ocsinventory-server.conf to z-ocsinventory-server.conf .
  16. Yes, we want to configure the Web Administration Console.
  17. Our version of OCS is being installed for the first time, so we continue.
  18. Where to copy static files PHP Web Console /usr/share/ocsinventory-reports .
  19. Writable/cached directories for deployment packages, as well as admin console, IpDiscover and SNMP logs will be located in /var/lib/ocsinventory-reports .
  20. Ready! We are not restarting the web server yet. The installation log is located in /tmp/OCSNG_UNIX_SERVER-2.3.1/ocs_server_setup.log.

We set the PerlSetVar OCS_DB_PWD directive in z-ocsinventory-server.conf, that is, the ocs user password.

Nano /etc/apache2/conf-available/z-ocsinventory-server.conf PerlSetVar OCS_DB_PWD pass_mysql

Enable configs

A2dissite 000-default a2enconf ocsinventory-reports a2enconf z-ocsinventory-server /etc/init.d/apache2 restart

We grant the user www-data rights to the directories:

Chown -R www-data:www-data /usr/share/ocsinventory-reports/ chmod 0755 /var/lib/ocsinventory-reports/

Now we connect to the address http://domen_or_ip/ocsreports. We will be notified that we should get rid of install.php . Let's delete it:

Rm /usr/share/ocsinventory-reports/ocsreports/install.php

Additionally, you can disable AccessLog in Apache 2:

Nano /etc/apache2/sites-available/000-default.conf







2024 gtavrl.ru.