Okay, understood. But I'm beginner. It is possible that there is already this script uninstall?
OfficePack in OCS Server 2.2 - Problem and Solution
Plugin OfficePack 1.0 installed according to the instructions described in https://github.com/PluginsOCSInventory-NG/officepack/releases/tag/1.0 but was not working properly. The agent collected the information, but the office of the license was not displayed in the OCS Reports and was not being stored in the database.
The following is the procedure performed by me on an Ubuntu 04.14 and OCS Server 2.2 server.
- Clone project
git clone https://github.com/PluginsOCSInventory-NG/officepack.git
- Enter the directory of sources
cd officepack
For the plugin data up correctly to be registered in the database
cd officepack/APACHE
- Copy the folder "cd_officepack"
cp officepack.conf /etc/ocsinventory-server/plugins
- Create OfficePack directory in "/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins"
mkdir /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Officepack
- Copy Map.pm to "/etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Officepack"
cp Map.pm /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Officepack
- Restart apache
service apache2 restart
For office licenses be displayed on the computer details in the "Software" section
- Copy the folder "cd_officepack" to /usr/share/ocsinventory-reports/ocsreports/plugins/computer_detail
cp -R cd_officepack /usr/share/ocsinventory-reports/ocsreports/plugins/computer_detail
- Fix permissions
chown -R www-data:www-data /usr/share/ocsinventory-reports/ocsreports/plugins/computer_detail
chmod 755 /usr/share/ocsinventory-reports/ocsreports/plugins/computer_detail
- Restart apache
service apache2 restart
Enjoy.
Answered: Server error when client send information
Answered: Doublon d'ordinateur
OCS upgrade problem
I updated all the prerequisites to the latest versions available for my operating system version but still the same problem persists...What shall I do ? Any further support from you will be so appreciated.
Thanks and best regards
Youssef Nady
OCS goes back to login screen on any click
problème d'éxécution de "http://serveur/install.php"
Bonjour ,
J'ai installé la dernière version stable d'ocs Inventory NG versions 2.2 sur un Ubuntu server 16.04 .J'ai rencontré un problème à l'étape où l'on exécute la requête http://serverur/install.php depuis le navigateur .Ci-dessous une extrait qu'affiche mon navigateur lors de l'envoi du requête au , je n'arrive pas à obtenir la page de création du base de donnée :
$ent"; } function return_bytes($val) { $val = trim($val); $last = strtolower($val{strlen($val)-1}); switch($last) { case 'g': $val *= 1024; case 'm': $val *= 1024; case 'k': $val *= 1024; } return $val; } // // } /* * function to execute sql file * */ function exec_fichier_sql($fichier,$link){ global $l; $db_file=$fichier; $dbf_handle = @fopen($db_file, "r"); echo "
"; if (!$dbf_handle){ msg_error($l->g(2112)." : ".$fichier); return true; }else{ if (filesize($db_file) > 0){ $sql_query = fread($dbf_handle, filesize($db_file)); fclose($dbf_handle); $data_sql=explode(";", $sql_query); foreach ($data_sql as $k=>$v){ if (trim($v) != ""){ echo "."; ob_flush(); flush(); mysql2_query_secure($v,$link); } } return false; } return true; } } //choose default language if (!isset($_SESSION['OCS']['LANGUAGE']) or !isset($_SESSION['OCS']["LANGUAGE_FILE"])){ if (isset($_COOKIE['LANG'])) $_SESSION['OCS']['LANGUAGE']=$_COOKIE['LANG']; if (!isset($_COOKIE['LANG'])) $_SESSION['OCS']['LANGUAGE']=DEFAULT_LANGUAGE; $_SESSION['OCS']["LANGUAGE_FILE"]=new language($_SESSION['OCS']['LANGUAGE']); } $l = $_SESSION['OCS']["LANGUAGE_FILE"]; //OCS INSTALLATION printEnTeteInstall($l->g(2030)); echo "
"; //messages lbl $msg_lbl=array(); $msg_lbl['info']=array(); $msg_lbl['warning']=array(); $msg_lbl['error']=array(); //msg=you have to update database if( isset($fromAuto) && $fromAuto==true){ $msg_lbl['info'][]= $l->g(2031)."".$valUpd["tvalue"]."".$l->g(2032)." (" . GUI_VER . "). ".$l->g(2033); } //msg=your config file doesn't exist if( isset($fromdbconfig_out) && $fromdbconfig_out==true) $msg_lbl['info'][]=$l->g(2034); //max to upload $pms = "post_max_size"; $umf = "upload_max_filesize"; $valTpms = ini_get( $pms ); $valTumf = ini_get( $umf ); $valBpms = return_bytes( $valTpms ); $valBumf = return_bytes( $valTumf ); if( $valBumf>$valBpms ) $MaxAvail = trim(mb_strtoupper($valTpms),"M"); else $MaxAvail = trim(mb_strtoupper($valTumf),"M"); $msg_lbl['info'][]=$l->g(2040) . "" . $MaxAvail . $l->g(1240) . "
" . $l->g(2041)."
Je voudrais avoir de l'aide svp.
Merci pour votre réponse.
cdt,
how to config auto delete computers than not existing
i have a computers name and computers ip duplicated
I do not detect my network equipment
Hello , I installed Windows 7 ocs server , then install the agent on a computer with Windows 10 but I can not see the server computer with the installed agent.
OCS 2.0.5 upgrade to 2.2 Apache error
Hello,
What might be causing this apache error when trying to upgrade from 2.0.5 to 2.2
Click Enter
variables not defined?
Answered: Import ESX host into OCS
Have you got errors in apache error.log and/or ocsinventory-injector.log files? Post both contents
Regards
Frank
Answered: An error appears when I upgrade OCS server from version 2.1.1 to 2.2
Verify that /etc/apache2/envvars file has good permissions => rwx-rx-rx
Regards
Frank
Answered: OCS goes back to login screen on any click
Post apache error.log file content.
Regards
Frank
ocs update problem
2.1 to 2.2 error upgrading (ubuntu)
I'm trying to update my 2.1 installation to 2.2, after answer all questions in setup.sh it stops here:
+----------------------------------------------------------+
| Installing files for Administration server... |
+----------------------------------------------------------+
Creating PHP directory /usr/share/ocsinventory-reports/ocsreports.
Copying PHP files to /usr/share/ocsinventory-reports/ocsreports.
*** ERROR: Unable to copy files in /usr/share/ocsinventory-reports/ocsreports, please look at error in /tmp/OCSInventory-Server-2.2/ocs_server_setup.log and fix !
In the log appears this:
Copying PHP files to /usr/share/ocsinventory-reports/ocsreports
cp: cannot stat 'ocsreports/*': No such file or directory
The directory exists and the permissions seems right, any hint?
Blank page on the ocsreports page
it is a new installation
My environement:
Linux msuntec6 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
OCS Inventory V2.2
I don't have any error in the ocs_server_setup.log fichier
what can I cjeck?
Any idea??
Thanks
Didier
Answered: 2.1 to 2.2 error upgrading (ubuntu)
Create a directory ocsreports in the directory where setup.sh is stored. Then download https://github.com/OCSInventory-NG/OCSInventory-ocsreports/archive/master.zip (ocsreports files). Unzip the file into <your_directory>/ocsreports.
Regards
Frank
Answered: INVENTORY_VALIDITY
Cette fonctionnalité est toujours prévue. La roadmap va être mise à jour. Cette fonctionnalité sortira peut-être d'ici la fin de cette année.
Ne pas hésiter à créer une issue sur github => https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/new
Cordialement
Frank
OCS 2.2 does not communicate with customers
Does anyone know where there is a documentation of the installation and possible problem solutions in ocs installation for ubuntu server?
I've looked everywhere but I can not solve the problems even posting in the forum . It must be some wrong way. I used the setup.sh installation own ocs . And that same server runs without problem several services . As GLPI , Nagios , among others. But the OCS is the one who insists on not fucnionar . The to enter the page and all the ocsreports , but I can not make any client to communicate.
BRIEF : do not have a command or something that can check the installation to see if it's OK ? Type a checkup ? or checklist
Below all my questions , I got to do what was suggested but nothing happens.
http://ask.ocsinventory-ng.org/4418/nothing-appears-on-the-server-n%C3%A3o-aparece-nada-no-servidor
http://ask.ocsinventory-ng.org/4411/ocsng-windows-agent-2-2-beta
http://ask.ocsinventory-ng.org/4321/com-server-http-post-response-received-http-status-code-%23200
OCS inventory on ubuntu server 16.04
i have installed ocsinventory on ubuntu server 16.04 and then when i go to the web page of ocsreports i have this error :
ERROR: MySQL for PHP is not properly installed.
Try installing MySQL for php package (Debian: php5-mysql)
The problem is i can't install php5-mysql because ubuntu 16.04 have already the php7 so i can't override it and install php5 packages. is there any solution for that ?
thank you all