Instalação e Integração GLPI + OCS

Trago, para quem é leigo em Linux, um tutorial passo a passo de instalação do GLPI (Gestão Livre do Parque de Informática) e OCS inventory e a integração dos mesmos. Utilizado para gerenciamento de ativos, help desk e inventário, considero a melhor alternativa open-source até o momento.

[ Hits: 58.487 ]

Por: Gabriel Machado em 10/09/2015


Instalação OCS Inventory



Instale o make:

# apt-get install make

Instale o PERL:

# apt-get install perl libapache2-mod-perl2 libxml-simple-perl libdbi-perl libapache-dbi-perl
# apt-get install libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libnet-ip-perl libsoap-lite-perl


Verificar necessidade:

# apt-get install build-essential libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libphp-pclzip

Também é necessário instalar o pacote CPAN manualmente:

# perl -e shell -MCPAN

Dentro do CPAN:

cpan> install XML::Entities

Faça o download do OCS:

# wget https://launchpad.net/ocsinventory-server/stable-2.1/2.1.2/+download/OCSNG_UNIX_SERVER-2.1.2.tar.gz

Obs.: se por acaso der algum erro: GnuTLS: A TLS warning alert has been received.

Não foi possível estabelecer conexão segura (SSL). Baixe o arquivo pela internet, e prossiga da seguinte forma:

# cd /home/(seu usuario)/Downloads

Descompacte o arquivo:

# tar -zxvf OCSNG_UNIX_SERVER-2.1.2.tar.gz

Instale:

# cd OCSNG_UNIX_SERVER-2.0/
# ./setup.sh


Aparecerá no terminal:

Do you wish to continue ([y]/n)? (Enter)
Which host is running database server [localhost] ? (Enter)
On which port is running database server [3306] ? (Enter)
Where is Apache daemon binary [/usr/sbin/apache2] ? (Enter)
Where is Apache main configuration file [/etc/apache2/apache2.conf] ? (Enter)
Which user account is running Apache web server [www-data] ? (Enter)
Which user group is running Apache web server [www-data] ? (Enter)
Where is Apache Include configuration directory [/etc/apache2/con.d/] ? (Enter)
Where is PERL Intrepreter binary [/usr/bin/perl] ? (Enter)
Do you wish to setup Communication server on this computer ([y]/n)? y
Where to put Communication server log directory [/var/log/ocsinventory-server]? (Enter)
Do you wish to continue ([y]/n] ? y
to 'z-ocsinventory-server.conf' ([y]/n) ? y
on this computer ([y]/n)? y
Do you wish to continue ([y]/n)? y
Where to copy Administration Server static files for PHP Web Console [/usr/share/ocsinventory-reports] ? (Enter)
Where to create writable/cache directories for deployement packages, IPDiscover and SNMP [/var/lib/ocsinventory-reports]? (Enter)

DON'T FORGET TO RESTART APACHE DAEMON!


Reinicie o Apache:

# service apache2 restart

Página anterior     Próxima página

Páginas do artigo
   1. Instalação GLPI
   2. Instalação OCS Inventory
   3. Configurando OCS INVENTORY NG SERVER 2
Outros artigos deste autor
Nenhum artigo encontrado.
Leitura recomendada

Gerenciamento de senhas com o KeePass

VirtualBox 2.1.0: Rede no VirtualBox agora é fácil!

Monitorix - Ferramenta de Monitoramento de Sistema

Brackets - Editor Open Source no Linux Mint e Ubuntu

Sintegra e Ted via wine

  
Comentários
[1] Comentário enviado por masquebreja em 26/11/2015 - 10:56h

Bom dia Gabriel,

Acredito que ficou faltando algo na instalação do OCS, pois ao reiniciar o apache2 ele apresenta o seguinte erro:

[Thu Nov 26 10:43:56 2015] [error] $s->add_config() has failed: Could not open configuration file /etc/apache2/y: No such file or directory at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Plugins.pm line 24.\nCompilation failed in require at (eval 14) line 2.\n
[Thu Nov 26 10:43:56 2015] [error] Can't load Perl module Apache::Ocsinventory::Plugins for server localhost:0, exiting...
[Thu Nov 26 10:43:58 2015] [error] $s->add_config() has failed: Could not open configuration file /etc/apache2/y: No such file or directory at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Plugins.pm line 24.\nCompilation failed in require at (eval 14) line 2.\n
[Thu Nov 26 10:43:58 2015] [error] Can't load Perl module Apache::Ocsinventory::Plugins for server localhost:0, exiting...

O que acha que está faltando?

Valeu

[2] Comentário enviado por gabrieltirant em 13/02/2016 - 00:01h


[1] Comentário enviado por masquebreja em 26/11/2015 - 10:56h

Bom dia Gabriel,

Acredito que ficou faltando algo na instalação do OCS, pois ao reiniciar o apache2 ele apresenta o seguinte erro:

[Thu Nov 26 10:43:56 2015] [error] $s->add_config() has failed: Could not open configuration file /etc/apache2/y: No such file or directory at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Plugins.pm line 24.\nCompilation failed in require at (eval 14) line 2.\n
[Thu Nov 26 10:43:56 2015] [error] Can't load Perl module Apache::Ocsinventory::Plugins for server localhost:0, exiting...
[Thu Nov 26 10:43:58 2015] [error] $s->add_config() has failed: Could not open configuration file /etc/apache2/y: No such file or directory at /usr/local/share/perl/5.14.2/Apache/Ocsinventory/Plugins.pm line 24.\nCompilation failed in require at (eval 14) line 2.\n
[Thu Nov 26 10:43:58 2015] [error] Can't load Perl module Apache::Ocsinventory::Plugins for server localhost:0, exiting...

O que acha que está faltando?

Valeu


Masquebreja, primeiramente peço desculpas pelo retorno tardio...
Refiz o processo aqui em minha VM e funcionou normalmente. Qual distro voce utilizou? Já tentou reinstalar o Apache?

[3] Comentário enviado por edsistema em 18/03/2016 - 14:37h

Amigo eu estava com o mesmo problema, para resolver isso eu refiz o passo do
./setup.sh
siga os passos de acordo com o procedimento de instalação, haverá um momento que ele vai dar uma referência da pasta plugins, nessa hora não dê a opção y mas aperte apenas a tecla Enter nesse passo, só digite y apenas nas opções de acordo com o tutorial acima, que o apache voltará a funcionar e a instalação ocorrerá sem problemas!

[4] Comentário enviado por contleandro em 22/06/2017 - 16:16h

Em que parte do artigo é a integração???


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts