开源资产管理软件OCS+GLPI安装配置
一、 环境与所需安装包
系统环境Centos 5.5
OCS中文包下载
Server
ftp://linvinus.ru/ocs/1.3.2/OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz
Client (windows)
ftp://linvinus.ru/ocs/windows-agent-1.3/OcsAgentSetup.exe
GLPI安装包
https://forge.indepnet.net/attachments/download/656/glpi-0.78.tar.gz
手动下载以下模块
Digest-SHA1-2.02
http://www.ultramonkey.org/download/2.0.1/source/perl-Digest-SHA1/Digest-SHA1-2.02.tar.gz
Apache-DBI-1.06.tar.gz(Apache 模块)
http://www.filewatcher.com/m/Apache-DBI-1.06.tar.gz.33833.0.0.html
SOAP-Lite-0.69.tar.gz (prel 模块)
http://www.filewatcher.com/_/?q=SOAP-Lite-0.69
XML-Entities-1.0000.tar.gz (Prel 模块)
http://search.cpan.org/CPAN/authors/id/S/SI/SIXTEASE/XML-Entities-1.0000.tar.gz
参考文章和使用到的网址
http://jerryboy.no-ip.com/forum/index.php?topic=701.0
http://blog.famillecollet.com/pages/OCS-GLPI-en
http://search.cpan.org/
http://wiki.ocsinventory-ng.org/index.php/Tools:Packager
提示* 需要注意的地方都用红色标出来了
二、安装与配置
配置LAMP环境
#yum install -y httpd mysql mysql-server php-mysql
#service mysqld start
#service httpd start
#chkconfig mysqld on
#chkconfig httpd on
安装Digest-SHA1-2.02
# tar -zxvf Digest-SHA1-2.02.tar.gz
# cd Digest-SHA1-2.02
#perl Makefile.PL
#make test
#make
#make install
Apache需要手动装的模块:Apache-DBI
#tar -zxvf Apache-DBI-1.06.tar.gz
#cd Apache-DBI-1.06
#perl Makefile.PL
#make test
#make
#make install
修改mysql root密码,
#mysqladmin -u root password '123456'
配置开发环境
#yum install -y gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-devel mysql mysql-server httpd php php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc mod_perl
配置Perl 环境
#yum install –y perl mod_perl
#yum install perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP
prel需要手动安装的模块:SOAP-Lite 和XML-Entities
#tar -zxvf SOAP-Lite-0.69.tar.gz
#cd SOAP-Lite-0.69
#perl Makefile.PL
#make
#make test
#make install
#tar -zxvf XML-Entities-0.0307.tar.gz
#cd XML-Entities
#perl Makefile.PL
#make
#make test
#make install
安装OCSNG
#tar-zxvf OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz
#cd ocsinventory-server-1.3.2/
#sh setup.sh
1,脚本一路回车即可,如有错误请检查所有Perl模块是否都安装好
其中有一个选项需注意:
Where to copy Administration Server static files for PHP Web Console
[/usr/share/ocsinventory-reports] ?/var/www/html/ 回车 :选择web文件存放的路径,
2,提示如下信息证明已经安装成功
DON'T FORGET TO RESTART APACHE DAEMON !
Enjoy OCS Inventory NG ;-)
3,在浏览器输入http://serverip/ocsreports/install.php 进行安装配置
输入mysql用户密码,如果本机的mysql地址是localhost,点击提交查询内容
接下来OCS会创建OCSweb库创建好后回到页面用默认admin/admin进入.
安装window客户端
1.手工安装
客户端运行OcsAgentSetup.exe 安装即可,服务器地址填入OCSNG服务器地址,端口默认是80, 之后在OCS中就可以看到客户端机器的数据了
如没有看到数据,运行安装目录下的Ocs_contact.exe 进行手工采集