En mi Trabajo contamos con mas de 1000 equipos distribuidos entre las diferentes sedes, un ejemplo es la red que describo en la gráfica, ahora deseamos tener centralizado todo el inventario que tienen nuestros usuarios catalogados por sedes, unidades, etc en este caso recomiendo ocsinventory cuya pagina puedes acceder pulsando aquí
para lo cual preferí separar los comandos e instalar parte por parte.
configuraciones extras
En el php.ini
Ojo dependiendo donde ubiques la ruta por defecto para dicho directorio en mi caso /var/www/html/ocsinventory-reports/ocsreports
fuente:
http://bit.ly/14owoeU
http://bit.ly/YNrSmB

root@localhost# yum update -y root@localhsot# rpm -ivh http://download.fedoraproject.org/pub/epel/5/SRPMS/epel-release-5-4.src.rpm
[root@localhost]# vim /etc/yum.repos.d/epel.repo 1 [epel] 2 name=Extra Packages for Enterprise Linux 5 - $basearch 3 #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch 4 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch 5 failovermethod=priority 6 enabled=0 # 1 --> 0 cambiar 7 gpgcheck=1 8 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL 9 10 [epel-debuginfo] 11 name=Extra Packages for Enterprise Linux 5 - $basearch - Debug 12 #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug 13 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch 14 failovermethod=priority 15 enabled=0 16 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL 17 gpgcheck=1 18 19 [epel-source] 20 name=Extra Packages for Enterprise Linux 5 - $basearch - Source 21 #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS 22 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch 23 failovermethod=priority 24 enabled=0 25 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL 26 gpgcheck=1
root@localhost# php -v PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:37) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend TechnologiesEn un anterior post instalar ocsinventory en centos 6.0 me indicaba que ejecutara los siguientes comandos:
root@localhost# yum install -y make wget httpd mysql mysql-server php php-gd php-mysql php-mbstring mod_perl perl-XML-Simple perl-Net-IP perl-SOAP-Lite perl-DBI perl-DBD-MySQLLo cual me mostraba los errores con el php ya que por defecto me trataba de instalar el php5.1 cuando yo tenía instalado el php5.3 por razones laborales.
para lo cual preferí separar los comandos e instalar parte por parte.
root@localhost# yum install -y make wget httpd mysql mysql-server root@localhost# yum install -y php53-mbstring php53 php53-gd php53-mysql
root@localhost# yum install -y mod_perl perl-XML-Simple perl-Net-IP perl-DBI perl-DBD-MySQL
root@localhost# yum install -y perl-SOAP-LiteAl finalizar la busqueda de dependencias me salía este error:
perl-AnyEvent-5.240-1.el5.rf.noarch from rpmforge has depsolving problems --> Missing Dependency: perl(Net::SSLeay) >= 1.33 is needed by package perl-AnyEvent-5.240-1.el5.rf.noarch (rpmforge) Error: Missing Dependency: perl(Net::SSLeay) >= 1.33 is needed by package perl-AnyEvent-5.240-1.el5.rf.noarch (rpmforge) You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package.Procedí de la siguiente forma:
root@localhost# wget http://packages.sw.be/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm root@localhost# wget http://packages.sw.be/perl-IO-Socket-SSL/perl-IO-Socket-SSL-1.34-1.el5.rfx.noarch.rpm root@localhost# rpm -i perl-Net-SSLeay-1.36-1.el5.rfx.i386.rpm root@localhost# rpm -i perl-IO-Socket-SSL-1.34-1.el5.rfx.noarch.rpm
root@localhost# yum install -y perl-SOAP-LiteCrear la BD ocs
root@localhost# mysql -u root -p CREATE DATABASE ocs; GRANT ALL PRIVILEGES ON ocs.* to ocs@localhost IDENTIFIED BY 'tupassword'; FLUSH PRIVILEGES; QUIT Install OCS (Based on OCS 2.0.4)
root@localhost# cd ~ root@localhost# wget http://launchpad.net/ocsinventory-server/stable-2.0/2.0.4/+download/OCSNG_UNIX_SERVER-2.0.4.tar.gz root@localhost# tar -xvzf OCSNG_UNIX_SERVER*.tar.gz
root@localhost# cd OCSNG_UNIX_SERVER* root@localhost# sh ./setup.sh Enter to accept 'localhost' as MySQL server Enter to accept '3306' as MySQL port Enter to accept '/usr/sbin/httpd' as Apache binary Enter to accept '/etc/httpd/conf/httpd.conf' as Apache config file Enter to accept 'apache' as Apache user Enter to accept 'apache' as Apache group Enter to accept '/etc/httpd/conf.d/' as Apache include directory Enter to accept '/usr/bin/perl' as Perl interpreter Y to install Communication server Enter to accept '/var/log/ocsinventory-server' as log directory Y to continue with installation Y to rename OCS server config to 'z-ocsinventory-server.conf' Y to installation Administration server Y to continue Enter '/var/www' as location for Administration Server static files location Enter '/var/www' as location for Download locationDesactivar selinux
root@localhost# setup


En el php.ini
root@localhost# vim /etc/php.ini 727 ; Maximum size of POST data that PHP will accept. 728 ; http://www.php.net/manual/en/ini.core.php#ini.post-max-size 729 post_max_size = 200M 876 ; Maximum allowed size for uploaded files. 877 ; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize 878 upload_max_filesize = 200MEn el my.cnf, sino tiene agregarlo.
root@localhost# vim /etc/my.cnf 8 max_allowed_packet=16MActualizar el fichero: '/etc/httpd/conf.d/z-ocsinventory-server.conf'
Change line 26 (OCS_DB_NAME) from 'ocsweb' to 'ocs' Cambiando la linea 27 (OCS_DB_LOCAL) from 'ocsweb' to 'ocs' Cambiando la linea 31 (OCS_DB_PWD) from 'ocs' to whatever you chose for your MySQL 'ocs' user passwordOCS configuración
Visitar http://yourserver/ocsreports Database: ocs Username: ocs Password: Hostname: localhostVisitar http://yourserver/ocsreports para iniciar
Username: admin Password: adminCambie el password por defecto desde la opcion usuarios->administradores
Ojo dependiendo donde ubiques la ruta por defecto para dicho directorio en mi caso /var/www/html/ocsinventory-reports/ocsreports
root@localhost# rm -f /var/www/html/ocsinventory-reports/ocsreports/install.phpNotas Finales: Para los que tienen un proxy, como el que se muestra en la figura, un squid-proxy les puede presentar este error en los logs
root@localhost# tail -f /var/log/squid/access.log 12312321313.145 1 IP-CLIENTE TCP_MISS/417 .............Se añade la siguiente variable en el archivo squid.conf
root@localhost# vim /etc/squid/squid.conf ignore_expect_100 onlisto :D
fuente:
http://bit.ly/14owoeU
http://bit.ly/YNrSmB
No hay comentarios:
Publicar un comentario