GLPI
Use Fusion inventory for park discovery.
Install on Ubuntu 10/13
wget https://forge.indepnet.net/attachments/download/1593/glpi-0.84.2.tar.gz
tar -xvzf VMwareTools-9.0.5-1065307.tar.gz
sudo mv glpi /var/www
sudo nano /etc/apache2/sites-enable/glpi.conf
Paste
Alias /glpi /opt/glpi <Directory /opt/glpi> Options FollowSymLinks AllowOverride All Order Allow,Deny Allow From All </Directory>
sudo /etc/init.d/apache2 restart
sudo apt-get install php5-json ( missing in release 13.10 saucy )
sudo chmod -R 777 /opt/glpi/files sudo chmod -R 777 /opt/glpi/config
Install client on Redhat/CEntOS
Repos EPEL & RHELn-server-optional needed
yum search fusion-inventory
yum install fusion-inventory-agent.x86_64 (answer to question)
/usr/bin/fusioninventory-agent -s http://glpi_host/glpi/plugins/fusioninventory/
GLPI erreur: mysqld: Table './glpi/glpi_logs' is marked as crashed and last (automatic?) repair failed
Resolution:
service mariadb stop
service httpd stop
myisamchk /var/lib/mysql/*/*.MYI|grep -i err
myisamchk: warning: Table is marked as crashed and last repair failed
myisamchk: warning: Size of indexfile is: 1037915136 Should be: 893270016
myisamchk: error: Found 31438283 keys of 3996301
myisamchk: error: Record-count is not ok; is 31438283 Should be: 3996301
myisamchk: warning: Found 31438408 key parts. Should be: 3996301
MyISAM-table '/var/lib/mysql/glpi/glpi_logs.MYI' is corrupted
Fix it using switch "-r" or "-o"
[root@NPGLPISL01 ~]# myisamchk -r /var/lib/mysql/glpi/glpi_logs.MYI
- recovering (with sort) MyISAM-table '/var/lib/mysql/glpi/glpi_logs.MYI'
Data records: 3996301
- Fixing index 1
- Fixing index 2
- Fixing index 3
31430000
- Fixing index 4
Data records: 31438283
service mariadb start
service httpd restart