Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG server
Viewing all 7067 articles
Browse latest View live

OCS 2.0.4 no xml export for computer

$
0
0
Hello,

when i look at computer details, i can't export the computer to xml. The xml field is missing. (no field after uuid)

I have checked in user profiles users pages, everything is checked.

I am loged in as superadministrator.

We have installed on another server a 2.3 ocs, and want to export only a few computers from the 2.0.4 ocs. Those computers are not connected to the network, and are away so we can't take actions on them. We just want to import them in the 2.3 ocs for keep track of them for administrative reason.

Thanks in advance.

My OCS is not updating

$
0
0

Good day, for weeks I have been looking for the solution to the problem that I have with my OCS INVENTORY NG SERVER, since the equipment that I am reegistrando does not appear in my database and does not update the already registered equipment. The version of my OCS INVENTORU NG SERVER is 2.2.1. Thank you very much for your attention.

Answered: plus de remontée d'inventaires sur le server

$
0
0
Bonsoir,

La valeur de la colonne id de la table software n'a pas été changée. Elle est toujours de type int. Il est possible d'éviter d'atteindre la limite de cette colonne en effectuant un 'ménage' dans cette table et dans les pc qui ne sont plus inventoriés.

Cordialement

Frank

Answered: HTTP STATUS CODE #404

$
0
0
Hi,

Is mod_perl module installed and activated?

Regards

Frank

[SOLVED] OCS Interface : Menu Information -> Statistiques

$
0
0
Bonjour

Sur mon serveur OCSNG 2.3.1 installé sur Debian 8 et en comparant avec le site de démo, j'ai un soucis dans l'interface dans le menu "Information" puis "Statistiques" puis "Nombre de connexions par jour".

J'ai bien la liste déroulante pour choisir "semaine, mois, TOUT" mais dans les 3 cas, la page affiche en-dessous " AUCUN RESULTAT" au lieu du graphique comme sur le site de démo.

Pourtant, dans "visualisation des logs", j'ai bien un fichier log.csv qui contient des données depuis juillet 2017 avec plusieurs lignes contenant "CONNEXION" (Au passage, c'est bien dans ce fichier que le graphique cherche les données ?)

Merci d'avance

Bien cordialement

Answered: HTTP STATUS CODE #404

$
0
0

Hi,

Thanks for your quick answer

i dont have installed mod_perl, i just installed but now i have other problem when i try to start httpd service.

I follow this manual to install perl_mod

https://server-world.info/en/note?os=CentOS_7&p=httpd&f=18

Nov 29 11:54:18 mur-srv-ocs2 polkitd[601]: Registered Authentication Agent for unix-process:21781:17154997 (system bus name :1.171 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgen
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Nov 29 11:54:18 mur-srv-ocs2 kill[21788]: kill: cannot find process ""
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: Unit httpd.service entered failed state.
Nov 29 11:54:18 mur-srv-ocs2 systemd[1]: httpd.service failed.
Nov 29 11:54:18 mur-srv-ocs2 polkitd[601]: Unregistered Authentication Agent for unix-process:21781:17154997 (system bus name :1.171, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus

OCSINVENTORY-NG 2.0.5 SERVER & AGENT PROBLEM WITH HTTPS

$
0
0

Hello Stéphane,

Thank you very much for your answer. I have followed your instructions as well those from the blog pointed out. Unfortunately, even after having certificates in place (agent's installation folder), the workstation is not able to connect with the server.

To give you more info: Agent version 2.0.5.0, Server version 2.0.4, Server OS Slackware 12.0, Apache 2.2.8.

Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.
 
Agent's log:
Starting OCS Inventory NG Agent on Tuesday, October 31, 2017 13:27:11.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
ERROR *** AGENT => Failed to send Prolog <Problem with the SSL CA cert (path? access rights?)>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:01.
 
Config file:
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=https://server.domain/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24
TTO_WAIT=1800

As a reminder: as long as the server was running as http, everything was fine. Once we've changed to https.... not fine anymore.

However, from the browser, I can access https://server.domain/ocsreports, with no problems (apart from the Exception request, first time, as this is a self-signed certificate).

Thank you for your help, and regards! Valentin

Answered: Agent send Prolog failed with letsencrypt ssl

$
0
0
Hello Mathew.chen I don't understand your solution. Where did you add the ROOT CHAIN CERTIFICATE, inside the cacert.pem?

Or in the inside the ocsinventory.ini?

Plz help me i don't find answer anywhere....

Why ocsinventory-server 500 Internal Server Error?

$
0
0
Hello;
I have problem with an ocsinventory-server, when try to open the URL it say "500 Internal Server Error"

My operating system is CentOS7.4 (x86_64) and the ocsinventory is installed from the .rpm of the epel repository. The agent ocsinventory-agent-2.1.1-1.el7.x86_64 and the server ocsinventory-server-2.1.2-3.el7.noarch (both are working on CentOS7.4 Opetating Systems)

When I run "ocsinventory-agente --debug --info" from the PC where is installed the agent this is the error in /var/log/ocsinventory-agent.log:
 
[Wed Nov 29 14:37:24 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Wed Nov 29 14:37:24 2017][debug] Log system initialised (File)
[Wed Nov 29 14:37:24 2017][debug] --scan-homedirs missing. Don't scan user directories
[Wed Nov 29 14:37:24 2017][debug] the --server passed doesn't have a protocol, assume http as default
[Wed Nov 29 14:37:24 2017][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__gtmrpt.gtm.onat.gob.cu_ocsinventory/ocsinv.adm
[Wed Nov 29 14:37:24 2017][debug] OCS Agent initialised
[Wed Nov 29 14:37:24 2017][debug] Turns hooks on for /etc/ocsinventory/modules.conf
[Wed Nov 29 14:37:24 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Wed Nov 29 14:37:24 2017][debug] Log system initialised (File)
[Wed Nov 29 14:37:24 2017][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Wed Nov 29 14:37:24 2017][debug] Log system initialised (File)
[Wed Nov 29 14:37:24 2017][debug] Calling handlers : `start_handler'
[Wed Nov 29 14:37:24 2017][debug] [download] Calling download_start_handler
[Wed Nov 29 14:37:24 2017][debug]  - LWP loaded
[Wed Nov 29 14:37:24 2017][debug]  - LWP::Protocol::https loaded
[Wed Nov 29 14:37:24 2017][debug] Compress::Zlib is available.
[Wed Nov 29 14:37:24 2017][debug] Calling handlers : `prolog_writer'
[Wed Nov 29 14:37:24 2017][debug] sending XML
[Wed Nov 29 14:37:24 2017][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>gtmpve-2017-11-28-16-45-52</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[Wed Nov 29 14:37:24 2017][error] Cannot establish communication : 500 Internal Server Error

When in the PC with ocinventory-agent I run the command ocsinventory-agent --debug --info in /var/lib/ocsinventory-agent is created a directory with name "http:__gtmrpt.gtm.onat.gob.cu_ocsinventory" and in this are two files ocsinv.adm and ocsinv.conf:

ocsinv.adm

<?xml version="1.0" encoding="UTF-8"?>
<ADM>
</ADM>

ocsinv.conf

<CONF>
  <DEVICEID>gtmpve-2017-11-28-16-45-52</DEVICEID>
</CONF>

In the PC with ocsinventory-server installed the /var/log/httpd/error_log when try to connect to URL http://gtmrpt.gtm.onat.gob.cu/ocsinventory is:

[Wed Nov 29 14:37:24.403920 2017] [perl:error] [pid 26980] [client 192.168.41.16:36106] Can't call method "do" on an undefined value at /usr/share/perl5/vendor_perl/Apache/Ocsinventory/Server/System.pm line 177.\n

In the PC where is installed the agent in /etc/ocsinventory/ocsinventory-agent.cfg I have:

#
# OCS Inventory "Unix Unified Agent" Configuration File
#
# options used by cron job overides this (see /etc/sysconfig/ocsinventory-agent)
#

# Server URL, unconmment if needed
server = http://gtmrpt.gtm.onat.gob.cu/ocsinventory
#local = /var/lib/ocsinventory-agent

# Administrative TAG (optional, must be filed before first inventory)
tag = OCSInventory-GTM

# How to log, can be File,Stderr,Syslog
logger = Stderr
logfile = /var/log/ocsinventory-agent/ocsinventory-agent.log

In option "server" I probe with just gtmrpt.gtm.onat.gob.cu and the result is the same.

In the PC server in /etc/ocsinventory/ocsinventory-reports/dbconfig.inc.php are:

<?php
define("DB_NAME", "ocsweb");
define("SERVER_READ","gtmrpt.gtm.onat.gob.cu");
define("SERVER_WRITE","gtmrpt.gtm.onat.gob.cu");
define("COMPTE_BASE","ocs");
define("PSWD_BASE","estaesmipassword");
?>

and that password in PSWD_BASE is the same that in mysql for the user ocs.

(GRANT ALL ON ocsweb.* TO 'ocs'@'127.0.0.1' IDENTIFIED BY 'estaesmipassword';)
(GRANT ALL ON ocsweb.* TO 'ocs'@'localhost' IDENTIFIED BY 'estaesmipassword';)
(GRANT ALL ON ocsweb.* TO 'ocs'@'gtmrpt.gtm.onat.gob.cu' IDENTIFIED BY 'estaesmipassword';)
(GRANT ALL ON ocsweb.* TO 'ocs'@'192.168.14.10' IDENTIFIED BY 'estaesmipassword';)

The URL http://gtmrpt.gtm.onat.gob.cu/ocsreport is working fine.

If necessary some other info or data.
What I have wrong?

Answered: Why ocsinventory-server 500 Internal Server Error?

Answered: Agent send Prolog failed with letsencrypt ssl

$
0
0

Hi H0bs,

I have select the best answer.

Just copy and paste ROOT CHAIN then make sure the file name is cacert.pem.

Answered: HTTP STATUS CODE #404

$
0
0
Hi,

Edit error_log apache file to find the error.

I suggest you to let perl.conf file with default values and restart httpd.

Regards

Frank

Answered: HTTP STATUS CODE #404

$
0
0

Hi,

i edited a perl.conf and now is default, but de apache not start.

Here is de log:

[Thu Nov 30 12:19:59.048304 2017] [perl:error] [pid 22811] Can't locate Apache/DBI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at (eval 2) line 2.\n
[Thu Nov 30 12:19:59.048431 2017] [perl:error] [pid 22811] Can't load Perl module Apache::DBI for server 172.25.17.47:80, exiting...

apache::dbi is installed.

cpan[1]> install Apache::DBI
Reading '/root/.cpan/Metadata'
  Database was generated on Thu, 30 Nov 2017 08:17:02 GMT
Apache::DBI is up to date (1.12).

Plugin OCS 2.2 (EON 5.1)

$
0
0

Hello,

I installed a EON server v5.1 with OCS Inventory 2.2.

When i try to install plugin, i've the error message :

ERROR: officepack is an invalid plugin, check your sources.
Installation aborted !

I downloaded the zip in the folder :
/srv/eyesofnetwork/ocsinventory-reports-2.2/ocsreports/download

Thank you for your help

Answered: OCS server for Windows version 2.3

$
0
0
Version 2.3 of the server will be only available on Linux or Unix. This is due to a dependance that is no more compatible with windows.

At first : why a windows version ? OCS Inventory NG was ported to windows in the past only for test purpose. Production must be done on Linux or Unix (better performance and security).

We will release a new version of the server on windows in future version of OCS (it's on the roadmap) but only for test.

local import 400 error

$
0
0
Hi, I update

% diff -u require/function_files.php~ require/function_files.php
--- require/function_files.php~    2017-10-19 13:15:04.941413000 +0900
+++ require/function_files.php    2017-10-23 15:35:36.897576000 +0900
@@ -181,7 +181,7 @@
 
     $contentlength = strlen($reqbody);
     $reqheader = "POST $uri HTTP/1.1\r\n" .
-            "Host: $host\n" . "User-Agent: OCS_local_" . GUI_VER . "\r\n" .
+            "Host: $host\r\n" . "User-Agent: OCS_local_" . GUI_VER . "\r\n" .
             "Content-type: application/x-compress\r\n" .
             "Content-Length: $contentlength\r\n\r\n" .
             "$reqbody\r\n";

Answered: HTTP STATUS CODE #404

$
0
0
Hi,

On CentOS just run yum install perl-Apache-DBI to install this module. Is perl-DBI module also installed?

Regards

Frank

Answered: HTTP STATUS CODE #404

$
0
0

Hi, 

I have problems when i try to install perl-apache-dbi

yum install perl-Apache-DBI
Loaded plugins: fastestmirror
base                                                     | 3.6 kB     00:00
epel/x86_64/metalink                                     |  25 kB     00:00
extras                                                   | 3.4 kB     00:00
mysql-connectors-community                               | 2.5 kB     00:00
mysql-tools-community                                    | 2.5 kB     00:00
mysql56-community                                        | 2.5 kB     00:00
updates                                                  | 3.4 kB     00:00
Loading mirror speeds from cached hostfile
 * base: mirror.tedra.es
 * epel: mirror.netsite.dk
 * extras: mirror.tedra.es
 * updates: mirror.tedra.es
No package perl-Apache-DBI available.
Error: Nothing to do

And perl-dbi is already installed.

 yum install perl-DBI
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.tedra.es
 * epel: mirrors.neterra.net
 * extras: mirror.tedra.es
 * updates: mirror.tedra.es
Package perl-DBI-1.627-4.el7.x86_64 already installed and latest version
Nothing to do

Can't write in directory (on dbconfig.inc.php)

$
0
0

Hi,

I am trying to configure OCS server on Centos 7, i'm getting the below error to configure the OCS server. I have given full access for OCSreports directory. Please anyone help me to solve the issue.

Document root should be writable : /usr/share/ocsinventory-reports/ocsreports

Thanks in advance

Nagesh

Mise à jour PHP5.6 ou PHP7

$
0
0

Bonjour,

La question à peut être déjà été posée. ci c'est le cas, désolé..sad

Je dispose d'un serveur fonctionnel sous Linux Debian 7...L'installation de départ à été faite avec PHP5.

Sur ce serveur tourne OCS, et GLPI, qui nécessite une MAJ (mais en PHP5.6 ou 7)

Ma config:

               PHP 5.4.45-0+deb7u11 (cli) (built: Aug 30 2017 15:23:23)

               Apache: apache2

               Debian: cat /etc/debian_version ==> 7.11

               Kernel: Linux LinuxDeb 3.2.0-4-686-pae #1 SMP Debian 3.2.89-2 i686 GNU/Linux

Est-il possible de mettre à jour PHP5.6 ou PHP7 ?

Si oui, quels seraient les différents répertoires, dossiers, et fichiers à sauvegarder pour cela ?

Merci d'avance, 

Cordialement,

Epoc

Viewing all 7067 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>