Install an OCSinventory-ng Environment

Source: Internet
Author: User

Install an OCSinventory-ng Environment

Install an OCS inventory-ng Environment

Official Website: http://www.ocsinventory-ng.org/en/

First install Server

Download related packages from the official website.

I downloaded

OCSNG_UNIX_SERVER-1.02.3.tar.gz

I use SecureCRT to connect to my linux Testing Machine

Use rz to upload to the corresponding directory. I installed it in/usr/local/

Decompress the package

Tar-zxvf OCSNG_UNIX_SERVER-2.1.2.tar.gz

Cd OCSNG_UNIX_SERVER-2.1.2

Sh setup. sh

The previous Database Configuration directly defaults to OK.

// Execution path of the apache binary file

Where is Apache daemon binary []? /Usr/local/apache2/bin/apachectl

// Path of the apache main configuration file

Where is Apache main configuration file [/usr/local/apache2/conf/httpd. conf]?

Perl is selected, and users and user groups can be specified by themselves.

After the installation is complete

Setup has created a log file/usr/local/OCSNG_UNIX_SERVER-2.1.2/ocs_server_setup.log. Please, save this file.
If you encounter error while running OCS Inventory NG Management server,
We can ask you to show us his content!

DON't forget to restart apache daemon!

Enjoy OCS Inventory NG ;-)

This prompts that the installation is complete.

An error may be reported during installation. If the perl module is missing, download the corresponding component.

You can use CPAN to download

Perl-MCPAN-e shell

Then install the module you want to install.

Of course, perl-MCPAN-e "install ........."

Installing OCS inventory-ng also requires PHP and MySQL. The installation of these two items is also very simple.

We can also use nginx for servers.

I use nginx. After installation, copy the php frontend to the corresponding directory.

Configure nginx files

Upstream fcgi-ocsreports {server unix:/dev/shm/php-fpm.sock;} server {server_name yourIp; listen 80; index. php; root the directory of your php project; access_log/home/logs/nginx/fcgi. access. log main; // the log file directory error_log/home/logs/nginx/fcgi. error. log error; send_timeout 180; fastcgi_connect_timeout 180; fastcgi_send_timeout 180; fastcgi_read_timeout 180; location ~ * \. Php $ {include fcgi. conf; fastcgi_index index. php; fastcgi_pass fcgi-ocsreports ;}}

Then you can enter the ocs web Front-end to configure the database.

Install the agent later. The installation of the windows agent is relatively simple. Here we mainly describe the installation of the agent in linux.

Download the corresponding agent version on the OCS official website.

Tar Decompression

Then perl Makefile. PL

Make

Make install Installation

 

Press enter as prompted belowDo you want to configure the agent Please enter 'y' or 'N'?> [Y] Where do you want to write the configuration file? 0->/etc/ocsinventory 1->/usr/local/etc/ocsinventory 2->/etc/ocsinventory-agent?> 2 (select the configuration file storage directory)Do you want to create the directory/etc/ocsinventory-agent? Please enter 'y' or 'N'?> [Y] [info] The config file will be written in/etc/ocsinventory/ocsinventory-agent.cfg, What is the address of your ocs server?> [Ocsinventory-ng] 192.168.50.92 (enter the IP address of ocsinventory-server)Do you need credential for the server? (You probably don't) Please enter 'y' or 'N'?> [N] Do you want to apply an administrative tag on this machine Please enter 'y' or 'N'?> [Y] (does the server use management tags?) tag?> Viong(Displayed on the web Console) ocsinventory agent presents:/usr/bin/ocsinventory-agent Where do you want the agent to store its files? (You probably don't need to change it)?> [/Var/lib/ocsinventory-agent] Do you want to create the/var/lib/ocsinventory-agent directory? Please enter 'y' or 'N'?> [Y] New settings written! Thank you for using OCS Inventory shocould I remove the old linux_agent Please enter 'y' or 'N'?> [N] Do you want to use OCS-Inventory software deployment feature? Please enter 'y' or 'N'?> [Y] Do you want to use OCS-Inventory SNMP scans feature? Please enter 'y' or 'N'?> [Y] Do you want to send an inventory of this machine? Please enter 'y' or 'N'?> [Y] [info] Accountinfo file doesn't exist. I create an empty one.-> Success! If the preceding information is displayed, the installation is successful. [Root @ localhost Ocsinventory-Agent-2.0rc2] # ocsinventory-agent-debug ................................................. Omitted[Debug] Calling handlers: 'End _ handler'. If no error is prompted, it indicates that the installation is OK!

 

During installation, you may also be prompted that the perl module is missing. Use CPAN to install it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.