ocsinventory-ng (agents linux)
Il est
maintenant possible de déployer les agents sur les postes clients Linux. Cette fonctionnalité est implémentée depuis
la version 2.1. Faites-le, comme
exercice, après avoir testé le mode interactif décrit ci-dessous.
Le mode
d’installation suivi ici est le mode interactif : l'installateur posera une
série de questions auxquelles l'on répond manuellement.
Installation
des pré-requis :
# aptitude install make
# aptitude install dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl libcrypt-ssleay-perl libnet-snmp-perl libproc-pid-file-perl libproc-daemon-perl net-tools libsys-syslog-perl pciutils read-edid nmap
Optionnels:
smartmontools (pas supporté sur les raids sauf exceptions)
Téléchargez
l’agent linux :
# wget --no-check-certificate https://launchpad.net/ocsinventory-unix-agent/stable-2.1/2.1/+download/Ocsinventory-Unix-Agent-2.1.tar.gz
Décompressez
et installez-le :
# tar
-zxvf Ocsinventory-Unix-Agent-2.1.tar.gz
# cd Ocsinventory-Unix-Agent-2.1
# perl Makefile.PL
# make
Do you want to configure the agent
Please enter 'y' or 'n'?> [y] y
Where do you want to write the configuration file?
0
-> /etc/ocsinventory
1 -> /usr/local/etc/ocsinventory
2
-> /etc/ocsinventory-agent
?> 2
Do you want to create the directory /etc/ocsinventory-agent?
Please enter 'y' or 'n'?> [y]
Should the old linux_agent
settings be imported ?
Please enter 'y' or 'n'?> [y] n
[info] The config file will be written in /etc/ocsinventory-agent/ocsinventory-agent.cfg,
What is the address of your ocs
server?> http://$serveur/ocsinventory
Do you need credential for the server? (You
probably don't)
Please enter 'y' or 'n'?> [n]
Do you want to apply an administrative tag on this machine
Please enter 'y' or 'n'?> [y]
tag?> $hostname
Do you want to install the cron
task in /etc/cron.d ?
Please enter 'y' or 'n'?> [y]
Where do you want the agent to store its files? (You
probably don't need to change it)?> [/var/lib/ocsinventory-agent]
Do you want to create the /var/lib/ocsinventory-agent directory ?
Please enter 'y' or 'n'?> [y]
Should I remove the old linux_agent ?
Please enter 'y' or 'n'?> [n] y
Do you want to activate debug configuration option ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS Inventory NG UNix Unified agent log file ?
Please enter 'y' or 'n'?> [y] n
Do you want disable SSL CA verification
configuration option (not recommended) ?
Please enter 'y' or 'n'?> [n] y
Do you want to set CA certificate chain file path ?
Please enter 'y' or 'n'?> [y] n
Do you want to use OCS-Inventory software
deployment feature?
Please enter 'y' or 'n'?> [y]
Do you want to use OCS-Inventory SNMP scans
feature?
Please enter 'y' or 'n'?> [y]
La commande suivante permet de lancer
l'inventaire par l'agent :
# ocsinventory-agent –server=http://$serveur/ocsinventory