aptitude install make libmodule-install-perl dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libdata-uuid-perl libcrypt-ssleay-perl libnet-snmp-perl libproc-pid-file-perl libproc-daemon-perl net-tools libsys-syslog-perl pciutils smartmontools read-edid nmap libnet-netmask-perl
wget http://path.to.ocsagent/Ocsinventory-Unix-Agent-2.8.1.tar.gz
tar -xvzf Ocsinventory-Unix-Agent-2.8.1.tar.gz
cd Ocsinventory-Unix-Agent-2.8.1
perl Makefile.PL make make install
Where do you want to write the configuration file? /etc/ocsinventory Specify log file path you want to use? /var/log/ocs_agent.log Do you want disable SSL CA verification configuration option (not recommended) ? [y] Do you want to set CA certificate chain file path ? [n]
1. Packages
apt-get update
apt-get install aptitude sudo vim mc nmap screen make cmake gcc make apache2 libapache2-mod-perl2 libapache-dbi-perl libapache-db-perl libapache2-mod-php mariadb-server mariadb-client software-properties-common php7.3 libapache2-mod-php7.3 php7.3-common php7.3-sqlite3 php7.3-mysql php7.3-gmp php7.3-curl php7.3-mbstring php7.3-gd php7.3-cli php7.3-xml php7.3-zip php7.3-soap php7.3-json php-pclzip git curl perl libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libapache-dbi-perl libapache2-mod-perl2 libapache2-mod-perl2-dev
2. Mysql
sudo mysql_secure_installation
sudo mysql -u root -p
Zobacz całość
w logach jest komunikat:
ERROR *** AGENT = Failed to send Prolog HTTP Status Code #500
Problem jest z konfiugracją do bazy mysql w apache2:
vim /etc/apache2/conf.d/z-ocsinventory-server.conf
PerlSetEnv OCS_DB_NAME ocsbaza PerlSetEnv OCS_DB_LOCAL ocsbaza PerlSetEnv OCS_DB_USER ocsuser PerlSetVar OCS_DB_PWD ocspass
http://wiki.ocsinventory-ng.org/index.php/Documentation:Server/pl
Wymagania:
Zobacz całość
http://www.ocsinventory-ng.org/en/download/register-download-ocs-inventory-ng-agent-for-unix.html
http://wiki.ocsinventory-ng.org/index.php/Documentation:UnixAgent/pl
apt-get install dmidecode libxml-simple-perl libio-compress-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl wget Ocsinventory-Unix-Agent-2.1.1.tar.gz tar -xf Ocsinventory-Unix-Agent-2.1.1.tar.gz cd Ocsinventory-Unix-Agent-2.1.1 perl Makefile.pl make make install