Skip to content
ShaoPin Cheng
  • 首頁
  • 贊助協作
  • 足球賽事表
  • 帳號資訊
    • 登入
    • 註冊
    • 帳號資訊
      • 訂單
      • 數位產品下載
      • 地址
      • 購物車
    • 登出
    • 遺失密碼
  • Blog

IT資產管理 GL...

  • 2012 年 9 月 10 日2021 年 3 月 19 日
  • by cjt74392

IT資產管理 GLPI version 0.84 繁體中文化 (台灣) 於今日終於全部完成


因GLPI語系轉換工作自年初該開發團隊移至新的翻譯網站進行管理開發,
舊的繁體中文翻譯已經100%完成,但GLPI團隊自稱竭盡全力,仍無法完整將舊資料轉換到新網站,(僅53%的繁體中文翻譯正常轉換),
所以又耗用我相當多的時間才用重新翻譯完成.

新的翻譯介面可以讓大家一同來參與翻譯的工作,如果我有翻的不好或是不順暢的地方,
大家都可以來進行修訂.
https://www.transifex.com/projects/p/GLPI/language/zh_TW/
GLPI中文化

GLPI中文化

  • 2010 年 10 月 25 日2021 年 3 月 19 日
  • by cjt74392

GLPI是幫助企業進行資產管理及問題管理Help Desk的利器(免費)

在0.78版本中我已完成繁體中文化的工作,
並註冊為GLPI繁體中文化工作者,已完成共計1840個辭句
翻譯.
如有翻譯不完整或錯誤的地方,歡迎留言來信

2011/02/10 新增說明
GLPI 0.80新增服務水準協議(SLA)的統計選項,
主要是給需要做ITIL,BSC評分卡或是KPI的人使用,
目前我已經進行 GLPI 0.80的中文化,已完成96%,如果翻譯上有甚麼問題,請留言.

另外,以下是我找到較完整的OCS and GLPI 安裝與設定說明,請享用.

English : OCS and GLPI installation guide

Lisez le Guide d’installation d’OCS et GLPI en français.

This is a quick installation Guide for OCS Inventory NG and GLPI.

Prerequisites

This guide is designed for Fedora, RHEL and CentOS distributions which provides RPM of OCS and GLPI in their official repositories (also available here, you need to activate my repository).

We consider the server is freshly installed : MySQL is not installed nor configured.

This article was writen with OCS version 1.02 RC3 and GLPI 0.71.2.

In this tutorial, I use rootsecret, ocssecret, glpisecret, syncsecret as password, of course, you should use other values…

The database server

MySQL installation, launch and activation :

# yum install mysql-server
# service mysqld start
# chkconfig mysqld on

Some security on the server : we must change the database administrator password, drop the test database, disable anonymous access, etc:

# mysql_secure_installation

If you’ve completed all of the above steps, your MySQL installation should now be secure. (We will consider the root password is set to rootsecret)

OCS Inventory NG

Installation :

# yum install ocsinventory
# service httpd restart
# chkconfig httpd on

Configuration and database schema creation :

Connect to http://localhost/ocsreports/install.php (must be modified if you are connected to the server from another computer).

  • Step 1 : enter the MySQL administrator login and password, then Send.
  • Step 2 : schema creation. If all is ok (must be true using the RPM), clic on Send
  • Step 3 : installation final step. write somewhere the account created (admin/admin) and clic on Click here to enter OCS-NG GUI.
  • Step 4 : choose your language (using the flag on the right top)
  • Step 5 : connect to the application (admin/admin)

Congratulations. You have OCS installed !

Some required configuration options : open the pipe wrench / Configuration / Config and then the Server tabs:

  • LOGLEVEL = On (really usefull when you encounter an issue)
  • PROLOG_FREQ = 24 (time between 2 inventory)
  • AUTO_DUPLICATE_LVL = crtieria used to detect that 2 computers are the same (I use Model + Serial + Mac Address).
  • TRACE_DELETED = On (required by GLPI).
  • SESSION_VALIDITY_TIME = 600 (session duration, the empty value provided is not valid).

Changing the application admin password is also really a good idea (don’t forget it) : use the “key” icon on the right top.

During the installation step a new database ocsweb is created and a MySQL account ocs with a default password = ocs, which is really not secure.

We need to change the MySQL password :

# mysql -uroot -prootsecret
mysql> UPDATE mysql.user SET Password = PASSWORD('ocssecret') WHERE User = 'ocs';
mysql> FLUSH PRIVILEGES;
mysql> exit

And to update the configuration file with this new password :

In the /etc/httpd/conf.d/ocsinventory-server.conf file (arround line 31) :

PerlSetVar OCS_DB_PWD ocssecret

In the /etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php file :

$_SESSION["PSWD_BASE"]="ocssecret"

Tell apache to reload his configuration for perl module to read the new parameter value:

# service httpd reload

First computer

To test the inventory feature, we are going to install the inventory agent on a first computer. Of course it will be on our server.

# yum install ocsinventory-agent

Now, send the inventory:

# ocsinventory-agent --server=localhost

If all is ok, your server should be in the computer list in OCS.

You can enable the automatic inventory of this computer, edit the /etc/sysconfig/ocsinventory-agent:

OCSMODE[0]=cron
OCSSERVER[0]=http://localhost/ocsinventory

GLPI

To start, we are going to create the database schema and the MySQL accounts for GLPI. Using the administrator (root) account is really a bad idea. The glpi account will be used by the application, and the synchro account for the synchronizaton process (to read the ocsweb database from glpi with only minimum rights).

N.B. in this example, the synchro user rights are reduce to the minimal. In the case you want to use some special plugins (uninstall p.e.), full right are required.

# mysql -uroot -prootsecret
mysql> CREATE USER 'glpi'@'%' IDENTIFIED BY 'glpisecret';
mysql> GRANT USAGE ON *.* TO 'glpi'@'%' IDENTIFIED BY 'glpisecret';
mysql> CREATE DATABASE IF NOT EXISTS `glpi` ;
mysql> GRANT ALL PRIVILEGES ON `glpi`.* TO 'glpi'@'%';
mysql> CREATE USER 'synchro'@'%' IDENTIFIED BY 'syncsecret';
mysql> GRANT USAGE ON *.* TO 'synchro'@'%' IDENTIFIED BY 'syncsecret';
mysql> GRANT SELECT ON `ocsweb`.* TO 'synchro'@'%';
mysql> GRANT DELETE ON `ocsweb`.`deleted_equiv` TO 'synchro'@'%';
mysql> GRANT UPDATE (`CHECKSUM`) ON `ocsweb`.`hardware` TO 'synchro'@'%';
mysql> FLUSH PRIVILEGES;
mysql> exit

Installation :

# yum install glpi
# service httpd reload

Database schema creation and configuration

Connect to the application : http://localhost/glpi/ it will launch the configuration wizard.

  • select your language and : OK.
  • read and accept the license (GPL) : Continue
  • start the installation : Installation
  • step 0 : prerequisites check (must be ok with the RPM) : Continue
  • step 1 : enter the database connexion parameters (localhost / glpi / glpisecret) : Continue
  • step 2 : select the glpi database and Continue
  • step 3 : write somewhere the adminstrateur login and password (glpi/glpi) et Continue
  • step 4 : also write the other account informations : Use GLPI
  • Authentificate yourself with the new account : glpi/glpi

Congratulations (again) : you have GLPI installed !

OCSNG mode configuration

OCSNG mode activation :

  • Menu Setup / General
  • Restrictions tabs
  • Activate OCSNG mode : Yes, and Post

Server Configuration :

  • Menu Setup / OCSNG mode
  • Select the server created during installation: localhost
  • Name: My OCS Server
  • OCSweb host: localhost
  • Name of the OCS database: ocsweb
  • OCSweb database user: synchro
  • OCSweb user password: syncsecret
  • Post

You must get the Connection to OCS database successful message.

Now, we must configure the informations that will be imported from OCS to GLPI. Here is a few examples :

  • Monitors : Unit import on Serial number
  • Logiciels : Unit Import
  • Use the software dictionary of OCS: No
  • Number of computers to synchronize using the cron: 0 (we are going to use another solution)
  • General informations Computers : Yes for all that you are interested by.
  • Components : Yes for what you want.
  • etc, etc (you should notice that a lot of behavior are configurable)
  • Post

Check :

  • Menu Tools / OCSNG
  • Import new computers

In the displayed list, you should see your server (on which we have installed the agent). Don’t ask for it to be imported as we are going to see how to use automatic synchronization.

Automatic OCSNG synchronization

This step is not required as the internal pseudo–cron integrated in GLPI also do an automatic synchronization. But this solution seems more cumfortable and flexible (at least, for me).

We are going to use the Mass import from OCSNG plugin.

Disconnect from GLPI (logout link) and install the plugin:

# yum install glpi-mass-ocs-import

Connect into GLPI to install / configure the plugin :

  • Menu Setup / Plugins
  • Link : OCS massive Import
  • Link : Install OCS massive import plugin (plugin tables creation)
  • Default OCS server: My OCS Server
  • Post the configuration page
  • Enable the synchronization

The planified task configured by the RPM will be launched every 5 minutes. Be patient, your first computer should be imported into GLPI.

Tu supervise the synchronization :

  • Menu : Plugins / OCS Massive Import
  • Tab : Informations about scripts execution

Conclusion

We have configured one of the best inventory and asset management solution in a few minutes (probably the best, as it isOpenSource)

You can now continue to deploy the inventory agent on your other computers, it’s available for most OS.

Take also some time to read the official documentation to be able to tune your configuration to fully suite your need:

  • OCS Documentation
  • GLPI Documentation

Don’t forget than OpenSource projects exists thanks to their community and to their users contributions. So when you’ll have seen what OCS and GLPI can do for you, don’t forget to do something for this projects:

  • OCS NG donations
  • Contribute to GLPI

Comments and support

Of course, comments on this guide are welcome and could be posted here. For support questions, please, use each application official forums:

  • OCS Forums
  • GLPI Forums
  • Forums – Les RPM de Remi for questions about this tutorial or the RPM.

Don’t forget to read and to respect forum usage rules.

近期文章

  • XRDP 中文支援相關設定
  • 如何陪伴小一新鮮人,快樂學習健康成長
  • (三國)我今天的手稿創作 Paper painting.
  • AIX 7.1 + Apache 2.4 + PHP libphp5.so with PDO
  • Highcharts for Nagios

近期留言

  • 「Unknown」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「David Yu」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「紹斌」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「Henrik」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「Unknown」於〈考取CISA的經驗〉發佈留言

彙整

  • 2025 年 6 月
  • 2016 年 9 月
  • 2014 年 11 月
  • 2013 年 2 月
  • 2012 年 10 月
  • 2012 年 9 月
  • 2012 年 8 月
  • 2012 年 6 月
  • 2012 年 5 月
  • 2011 年 11 月
  • 2011 年 10 月
  • 2011 年 8 月
  • 2011 年 4 月
  • 2011 年 3 月
  • 2011 年 2 月
  • 2011 年 1 月
  • 2010 年 10 月

分類

  • AIX
  • AS400
  • CISA
  • GLPI
  • Nagios
  • RHCE
  • Win 7
  • 個人未分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
Theme by Colorlib Powered by WordPress