Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers
Viewing all 11962 articles
Browse latest View live

/TAG option within the OcsLogon as CLI parameter??

$
0
0

Hello,

can I use the '/TAG' (example: '/TAG=MyCompany') within the command line parameters of the deployment tool OcsLogon? (like: '/GPO' or '/DEPLOY=a.b.c.d')

Or is it only possible inside the OCS-Windows-Packager to define a TAG?

Thank you and greetings.


Answered: force a manual inventory

$
0
0
Hi

use => ocsinventory-agent -f to force an inventory.

Regards

Frank

Answered: 2.8 does not work - downgraded to 2.7

$
0
0
Always from the sources, with setup.sh.

Answered: Error after upgrade linux agent to 2.8.0.

$
0
0

On every server pear-XML-SAX is updated:

Installed Packages
Name        : perl-XML-SAX
Arch        : noarch
Version     : 0.99
Release     : 9.el7
Size        : 125 k
Repo        : installed
From repo   : base
Summary     : SAX parser access API for Perl
URL         : http://search.cpan.org/dist/XML-SAX/

And every server is updated. Almost all are CentOS 7, one 8.

SK

Answered: blank page after install ocs-server

$
0
0
This is a little view of my error.log:

[Thu Oct 15 11:27:30.972535 2020] [mpm_prefork:notice] [pid 2233] AH00169: caught SIGTERM, shutting down
ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`
ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`
[Thu Oct 15 11:27:55.898281 2020] [mpm_prefork:notice] [pid 1088] AH00163: Apache/2.4.38 (Ubuntu) mod_perl/2.0.10 Perl/v5.28.1 configured -- resuming normal operations
[Thu Oct 15 11:35:37.408996 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant SSL_KEY - assumed 'SSL_KEY' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 97
[Thu Oct 15 11:35:37.409041 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant SSL_CERT - assumed 'SSL_CERT' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 97
[Thu Oct 15 11:35:37.409064 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant CA_CERT - assumed 'CA_CERT' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 97
[Thu Oct 15 11:35:37.409073 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant SERVER_PORT - assumed 'SERVER_PORT' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 97
[Thu Oct 15 11:35:37.409083 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant SSL_MODE - assumed 'SSL_MODE' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 156
[Thu Oct 15 11:35:37.409091 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  Use of undefined constant ENABLE_SSL - assumed 'ENABLE_SSL' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 156
[Thu Oct 15 11:35:37.409151 2020] [php7:warn] [pid 1110] [client 10.35.80.64:59485] PHP Warning:  mysqli_real_connect() expects parameter 6 to be integer, string given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 177
[Thu Oct 15 11:35:37.409207 2020] [php7:error] [pid 1110] [client 10.35.80.64:59485] PHP Fatal error:  Uncaught Error: Call to a member function select_db() on null in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:188\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/header.php(97): dbconnect('localhost', '****', '****', 'ocsweb', 'SSL_KEY', 'SSL_CERT', 'CA_CERT', 'SERVER_PORT')\n#1 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#2 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 188
[Thu Oct 15 11:40:15.113796 2020] [php7:warn] [pid 1111] [client 10.35.80.64:59662] PHP Warning:  Use of undefined constant SSL_KEY - assumed 'SSL_KEY' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 97
[Thu Oct 15 11:43:29.693746 2020] [php7:notice] [pid 1112] [client 10.35.80.64:59838] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.

It seems that some settings were changed after moving.

What is specific for the nightly version ?

$
0
0
Hi,

I cannot find information about "nightly" mark.

What is the difference between the normal Serveur pour Linux/Unix 2.8,

and the nightly version : Serveur pour Linux/Unix 2.8 (nightly)

What does nightly stand for ?

Thank you,

Nils

---
Later ...
Someone told me on the IRC channel, that it might be about the last commits (during night).

Is that right ?

Answered: 2.8 does not work - downgraded to 2.7

$
0
0

hello,

I made an update from version 2.6,with the setup.sh

Cirvent

Answered: CVE database - 0 CVE has been added to databas

$
0
0

"...The service has been disabled by"cve.circl.lu".

 All that for this ?!

The implementation of this functionality by OCS Inventory was really disappointing, even pitiful...


VMware plugin : You don't have access to this data

$
0
0

Hi,

The VMware plugin is installed correctly and we can see data gathered by agent in the web console (VM List, Datastores, Networks, etc) but i click on the name of a VM in the VM llist or a datastore name in the datastore list, i get the error "You dont have access to this data"

 

My Agent got an 500 Eroor. How can i fix this?

$
0
0

hi, 

i tried to set up OCS and solved some problems, but i dont get it finaly working. 

Now the problem is, that the Agent cannot connect to the Server. I get an error from the Agent:

2020][error] Cannot establish communication : 500 Internal Server Error

My ocs Server Veriosn is 2.4 (from the repository for CentOs7)

Agent Version is:

ocsinventory-agent --version

Ocsinventory unified agent for UNIX, Linux and MacOSX (2.6.1)

[root@myserver ~]# 

Erlier i tried the latest version from the GitHub Repo, but don't get it working. 

the ocsimport-reports configuration looks like the following. I made an new VHost for ocd, because  when i leave the standard configuration like mydomain.de/ocsiventory i get an 400 (bad request) error. 

<VirtualHost *:80>

        ServerName ocs.mydomain.de

        ServerAlias www.ocs.mydomain.de

        ServerAlias ocs.mydomain.de *.ocs.mydomain.de

Alias /ocsreports /usr/share/ocsinventory-reports/ocsreports

DocumentRoot /usr/share/ocsinventory-reports/ocsreports

<Directory /usr/share/ocsinventory-reports/ocsreports>

    # By default, users can use console from everywhere

      <IfModule mod_authz_core.c>

        # Apache 2.4

        Require all granted

  </IfModule>

  <IfModule !mod_authz_core.c>

        Order deny,allow

        Allow from all

      </IfModule>

    Options Indexes FollowSymLinks

    DirectoryIndex index.php

    AllowOverride Options

    

    # Uncomment following to force use of HTTPS in Administration Server

    #SSLRequireSSL

    

    # PHP tuning (not working on all distribution, use php.ini instead)

    <IfModule mod_php5.c>

        AddType application/x-httpd-php .php

        php_flag file_uploads           on

        # Some PHP tuning for deployment feature up to 8 MB

        # post_max_size must be greater than upload_max_filesize

        # because of HTTP headers 

        php_value post_max_size         101m

        php_value upload_max_filesize   100m

        # You may have to uncomment following on errors

        #php_value max_execution_time -1

        #php_value max_input_time -1

        

        # Uncomment following if you need to specify a mysql socket

    #php_value mysql.default_socket "path/to/mysql/unix/socket"

        #!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)

        php_flag magic_quotes_gpc      off

    </IfModule>

    # Duplicate for php7 compatibility

    <IfModule mod_php7.c>

        AddType application/x-httpd-php .php

        php_flag file_uploads           on

        # Some PHP tuning for deployment feature up to 8 MB

        # post_max_size must be greater than upload_max_filesize

        # because of HTTP headers 

        php_value post_max_size         101m

        php_value upload_max_filesize   100m

        # You may have to uncomment following on errors

        #php_value max_execution_time -1

        #php_value max_input_time -1

        

        # Uncomment following if you need to specify a mysql socket

    #php_value mysql.default_socket "path/to/mysql/unix/socket"

        #!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)

        php_flag magic_quotes_gpc      off

    </IfModule>

    # Uncomment following to allow HTTP body request up to 4 MB

    # instead default 512 KB

    #LimitRequestBody 4194304

</Directory>

################################################################################

# Deployment packages download area

# Alias to put Deployment package files outside Apache document root directory

#

<Directory /var/lib/ocsinventory-reports/download>

   <IfModule mod_authz_core.c>

     # Apache 2.4

     Require all granted

   </IfModule>

   <IfModule !mod_authz_core.c>

     Order deny,allow

     Allow from all

   </IfModule>

</Directory>

Alias /download /var/lib/ocsinventory-reports/download

################################################################################

# Snmp communities area

#

# Alias to put Snmp custom Mibs files outside Apache document root directory

#

<Directory /var/lib/ocsinventory-reports/snmp>

   <IfModule mod_authz_core.c>

     # Apache 2.4

     Require all granted

   </IfModule>

   <IfModule !mod_authz_core.c>

     Order deny,allow

     Allow from all

   </IfModule>

</Directory>

Alias /snmp /var/lib/ocsinventory-reports/snmp

# Patch from RPM : allow apache to serv plugins directory

<Directory /var/lib/ocsinventory-reports/plugins>

   <IfModule mod_authz_core.c>

     # Apache 2.4

     Require all granted

   </IfModule>

   <IfModule !mod_authz_core.c>

     Order deny,allow

     Allow from all

   </IfModule>

</Directory>

Alias /plugins /var/lib/ocsinventory-reports/plugins

</VirtualHost>

All my Domains have there own vhost. So that seeems to be the best Solution for me. 

I tried to find a solution for the error, but found nothing.

- From the apache access.log (debug level):

xxx.xxx.xxx.xxx - - [21/Sep/2020:07:48:55 +0200] "POST /ocsinventory HTTP/1.1" 200 234 "-""OCS-NG_unified_unix_agent_v2.6.1"

- I enabled the mysql Query Logs. When i run ocsreports-agent i see many SELECT Querys there. DB Connection seems to work. 

- I also checked the Mysql-Credentials in the config files in /etc/httpd/conf.d/

- the Server Version 2.4 semms to be unable to write logs. Permissions for the Log-Dir are set to 777. so i am unable to see if something on the Server Side wents wrong. See also: https://github.com/OCSInventory-NG/OCSInventory-Server/issues/100

The error.log from apache sais nothing to this error. 

I tried to connect from an Agent on the same machine and from a different machine and got the same error

The config is:

 cat /etc/ocsinventory/ocsinventory-agent.cfg 

# 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 = ocs.mydomain.de:80

#local = /var/lib/ocsinventory-agent

# Administrative TAG (optional, must be filed before first inventory)

# tag = your_tag

# How to log, can be File,Stderr,Syslog

logger = Stderr

logfile = /var/log/ocsinventory-agent/ocsinventory-agent.log

ocsinventory-agent --server ocs.mydomain.de and ocsinventory-agent --server http://ocs.mydomain.de are also not working

When i trie ocsinventory-agent --server ocs.mydomain.de/ocsreports/ i get an 404 error, but 

 curl -IL ocs.mydomain.de/ocsreports/

HTTP/1.1 200 OK

Date: Mon, 21 Sep 2020 06:12:51 GMT

Server: Apache

Set-Cookie: PHPSESSID=u45lbqqn1qasldk525bhhuksu8; path=/

Expires: -1

Cache-Control: must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Set-Cookie: VERS=7011; expires=Tue, 21-Sep-2021 06:12:51 GMT; Max-Age=31536000

Cache-control: private

Content-Type: text/html; charset=utf-8

Do you have any Idea?

Thanks from Dresden - Germany

Marcus

Answered: Over 15 characters for machines names

$
0
0
Hello,
Any news on this topic ?!

Authentification LDAP 2.7

$
0
0

Bonjour,

Je suis en train d'effectuer une migration OCS Inventory entre une debian 6 et un centos 8 en faisant un update de la solution.

J'aurais aimé gérer mes users via une authentification LDAP (Active Directory).

J'ai suivi le wiki mais impossible de le faire fonctionner.

J'ai également fait un tcpdump sur ma VM et lors de mon authentification, aucune trame n'est envoyé a mon serveur LDAP. 

Pour la conf voici ce que j'ai mis :

CONEX_LDAP_SERVEUR : ldap://192.168.115.9 (J'ai également essayé par défault avec mon nom DNS)

CONEX_ROOT_DN : CN=ocs,OU=Prestataires,OU=Utilisateurs,DC=XXX,DC=fr

CONEX_ROOT_PW : XXX

CONEX_LDAP_PORT : 389

CONEX_DN_BASE_LDAP : OU=Utilisateurs,DC=XXX,DC=fr

CONEX_LOGIN_FIELD : sAMAccountName

CONEX_LDAP_PROTOCOL_VERSION : 3

CONEX_LDAP_CHECK_FIELD1_NAME : memberof

CONEX_LDAP_CHECK_FIELD1_VALUE : CN=OCS-superadmin,OU=Groupe,OU=Utilisateurs,DC=XXX,DC=fr

CONEX_LDAP_CHECK_FIELD1_ROLE : Super Administrateurs

CONEX_LDAP_CHECK_FIELD2_NAME : memberof

CONEX_LDAP_CHECK_FIELD2_VALUE : CN=OCS-admin,OU=Groupe,OU=Utilisateurs,DC=XXX,DC=fr

CONEX_LDAP_CHECK_FIELD2_ROLE :  Administrateurs

CONEX_LDAP_CHECK_DEFAULT_ROLE : vide

Merci de votre aide.

Cordialement,

Answered: Over 15 characters for machines names

Not all agents work after Upgrade to 2.8

$
0
0

Apache Log

192.168.x.x - - [20/Oct/2020:10:03:57 +1300] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.6.0.0"

172.16.x.x - - [20/Oct/2020:10:04:03 +1300] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.16.x.x - - [20/Oct/2020:10:04:18 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.3.1.1"

172.16.x.x - - [20/Oct/2020:10:04:18 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:04:24 +1300] "POST /ocsinventory HTTP/1.1" 200 - "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:04:26 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:04:29 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.3.1.1"

172.16.x.x - - [20/Oct/2020:10:04:31 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:04:43 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

200 232192.168.x.x - - [20/Oct/2020:10:04:54 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:05:10 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:05:16 +1300] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.16.x.x - - [20/Oct/2020:10:05:19 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.3.1.1"

192.168.x.x - - [20/Oct/2020:10:05:21 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:05:39 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.3.1.1"

172.16.x.x - - [20/Oct/2020:10:06:01 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:06:07 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

172.16.x.x - - [20/Oct/2020:10:06:12 +1300] "POST /ocsinventory HTTP/1.1" 200 - "-""OCS-NG_WINDOWS_AGENT_v2.3.1.1"

192.168.x.x - - [20/Oct/2020:10:06:32 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:06:58 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:06:59 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:07:43 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:07:46 +1300] "POST /ocsinventory HTTP/1.1" 200 232 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

192.168.x.x - - [20/Oct/2020:10:07:55 +1300] "POST /ocsinventory HTTP/1.1" 500 536 "-""OCS-NG_WINDOWS_AGENT_v2.4.0.0"

OCS Activity Log

Tue Oct 20 10:26:46 2020;2856;100;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;prolog;accepted

Tue Oct 20 10:26:46 2020;2856;311;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;session;started

Tue Oct 20 10:26:52 2020;2857;319;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;session;found

Tue Oct 20 10:26:52 2020;2857;104;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;inventory;incoming

Tue Oct 20 10:26:52 2020;2857;110;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;inventory_cache;checking

Tue Oct 20 10:26:52 2020;2857;108;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;inventory_cache;cache(softwares.NAME)

Tue Oct 20 10:26:52 2020;2857;522;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;inventory_cache;fault:softwares.NAME

Tue Oct 20 10:26:52 2020;2857;113;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;inventory;u:softwares

Tue Oct 20 10:26:52 2020;2857;515;P170805-2020-10-19-08-52-58;172.16.x.x;OCS-NG_WINDOWS_AGENT_v2.3.1.1;end;error

I see many of the end;error
My OCS GUI also now create empty enteries;
MySQL Log, getting a lot of Rall backs
  105 Query     SELECT OSNAME FROM hardware_osname_cache WHERE OSNAME='Microsoft Windows 10 Pro'
                  105 Query     SHOW COLUMNS FROM accountinfo
                  105 Query     SELECT ID,HARDWARE_ID,LANGUAGE,NAME,PUBLISHER,COMMENTS,INSTALLDATE,CATEGORY,GUID,FILESIZE,VERSION,FOLDER,FILENAME,BITSWIDTH,SOURCE FROM softwares
      WHERE HARDWARE_ID='11666' ORDER BY NAME
                  105 Query     DELETE FROM locks WHERE HARDWARE_ID='11666' AND ID='2858'
                  105 Query     rollback
                  105 Query     rollback
I am also not able to find the HARDWARE_ID=11666?
Why am I getting these errors? DB access is fine by the way.
Please advise.

Answered: Not all agents work after Upgrade to 2.8


OCS AGENT 2.8 DOES NOT WORK

$
0
0

I updated my OCS Inventory 2.6 to 2.8 version (Server and Agent).

As 2.6 version works fine, but under 2.8 version the agent doesn't connect with server.

Also, all the workstation with older version not works anymore.

The logs shows:

Starting OCS Inventory Agent on Saturday, October 17, 2020 15:41:11.

AGENT => Running OCS Inventory Agent Version 2.8.0.0

AGENT => Using OCS Inventory FrameWork Version 2.8.0.0

AGENT => Loading plug-in(s)

DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>

DLL PLUGIN => 0 DLL Plug-in(s) successfully loaded on 0 DLL(s) found

AGENT => Using network connection with Communication Server

COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.0>

AGENT => Sending getLabel request

COM SERVER => Initializing cURL library for getFile

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

COM SERVER => Sending fileGet request to URL <http://10.0.32.227/ocsinventory/deploy/label>

COM SERVER => fileGet response received <HTTP Status Code #404>

COM SERVER => Cleaning cURL library

AGENT => Failed to retrieve Label <HTTP Status Code #404>

AGENT => Sending Prolog

WARNING *** DID_CHECK => Failed to read file <ocsinventory.dat>

DID_CHECK => Hostname changed new:<C2696> old:<>

DID_CHECK => Generating new unique ID for device <C2696>

DID_CHECK => writing DeviceID <C2696-2020-10-17-15-41-11> and MACs <84:2B:2B:7B:F0:E7> in file <C:\ProgramData\OCS Inventory NG\Agent\ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

COM SERVER => Sending HTTP Post request to URL <http://10.0.32.227/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #404>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>

AGENT => Unloading communication provider

AGENT => Unloading plug-in(s)

AGENT => Execution duration: 00:00:00.

2.8 Dasboard statistics for active computers only

$
0
0
Hi,

In the console with version 2.8 the expected by me functionality of archiving computers has been delivered Is there any configuration option to change for dashboard stats to be valid for active computers only?

Answered: Can't load Perl - Apache.pm

$
0
0

Like this?

[user]$ tar -xvf ../OCSNG_UNIX_SERVER-2.3RC.tar - 2.8

[user]$ tar -xvf cd Apache

[user]$ perl Makefile

[user]$ make

[user]$ sudo su

[root]# make install

by (2.8k points)

Server 2.7 -> 2.8 only 2.7 Agents able to send

$
0
0

Running Fedora 33 Server.

ocsreports installed from repo worked well, now I did an upgrade vom fedora 32 to 33 and coming with this I decided to upgrade the ocsreports server, too.

Everthing seems to work fine, but than I startet to roll-out the Windows 2.8.0.0 agents.
These agents are not able to send reports and I don't know why they told me something with a '/deploy/label'

What could cause the issue?

Here my running system:

First of all the tailed access.log, as u can see the installation works will, instead of the new agents:

[root@debcmdb ~]# tail /var/log/httpd/access_log -f

172.22.0.12 - - [23/Oct/2020:09:02:21 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.0.8 - - [23/Oct/2020:09:03:01 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.165 - - [23/Oct/2020:09:03:02 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:03:11 +0200] "POST /ocsinventory HTTP/1.1" 200 235 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.148 - - [23/Oct/2020:09:04:08 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

10.242.2.5 - - [23/Oct/2020:09:04:09 +0200] "POST /ocsinventory HTTP/1.1" 200 270 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.0.59 - - [23/Oct/2020:09:04:31 +0200] "POST /ocsinventory HTTP/1.1" 200 235 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:04:34 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:04:47 +0200] "POST /ocsinventory HTTP/1.1" 200 235 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.165 - - [23/Oct/2020:09:04:47 +0200] "POST /ocsinventory HTTP/1.1" 200 235 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.122 - - [23/Oct/2020:09:05:11 +0200] "GET /ocsinventory/deploy/label HTTP/1.1" 403 199 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.122 - - [23/Oct/2020:09:05:11 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.121 - - [23/Oct/2020:09:05:17 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.207 - - [23/Oct/2020:09:05:22 +0200] "GET /ocsinventory/deploy/label HTTP/1.1"403 199 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.207 - - [23/Oct/2020:09:05:22 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.207 - - [23/Oct/2020:09:05:42 +0200] "GET /ocsinventory/deploy/label HTTP/1.1"403 199 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.207 - - [23/Oct/2020:09:05:42 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.143 - - [23/Oct/2020:09:05:57 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.165 - - [23/Oct/2020:09:06:09 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:06:09 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.0.59 - - [23/Oct/2020:09:06:20 +0200] "POST /ocsinventory HTTP/1.1" 200 - "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

10.242.2.5 - - [23/Oct/2020:09:06:20 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.165 - - [23/Oct/2020:09:06:23 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:06:25 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.207 - - [23/Oct/2020:09:06:48 +0200] "GET /ocsinventory/deploy/label HTTP/1.1" 403 199 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

172.17.1.207 - - [23/Oct/2020:09:06:48 +0200] "POST /ocsinventory HTTP/1.1" 400 226 "-""OCS-NG_WINDOWS_AGENT_v2.8.0.0"

10.242.2.3 - - [23/Oct/2020:09:06:51 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.165 - - [23/Oct/2020:09:07:45 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:07:45 +0200] "POST /ocsinventory HTTP/1.1" 200 - "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.143 - - [23/Oct/2020:09:07:48 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.164 - - [23/Oct/2020:09:07:54 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.151 - - [23/Oct/2020:09:09:00 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.119 - - [23/Oct/2020:09:09:12 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.134 - - [23/Oct/2020:09:09:45 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

10.242.2.5 - - [23/Oct/2020:09:09:53 +0200] "POST /ocsinventory HTTP/1.1" 200 267 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

10.242.2.3 - - [23/Oct/2020:09:09:57 +0200] "POST /ocsinventory HTTP/1.1" 200 - "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.164 - - [23/Oct/2020:09:10:02 +0200] "POST /ocsinventory HTTP/1.1" 500 527 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

172.17.1.164 - - [23/Oct/2020:09:10:50 +0200] "POST /ocsinventory HTTP/1.1" 200 233 "-""OCS-NG_WINDOWS_AGENT_v2.7.0.1"

Lcient-Log:
 

AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.8.0.0>

AGENT => Sending getLabel request

COM SERVER => Initializing cURL library for getFile

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

COM SERVER => Sending fileGet request to URL <http://debcmdb.kegnet.local/ocsinventory/deploy/label>

COM SERVER => fileGet response received <HTTP Status Code #403>

COM SERVER => Cleaning cURL library

AGENT => Failed to retrieve Label <HTTP Status Code #403>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <KEGLAP666-2020-10-13-08-53-29> and MACs <50:76:AF:2C:12:84E8:6A:64:75:F2:DF00:50:B6:A5:D3:8400:FF:9E:1F:C2:83> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

COM SERVER => Sending HTTP Post request to URL <http://debcmdb.kegnet.local/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #400>

COM SERVER => Cleaning cURL library

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #400>

AGENT => Unloading communication provider

Upgrade OCS SERVER

$
0
0

Hello,

I updated the OCS server to 2.8. However, it looks like the web interface is still under an old version.

Do you know what to do?

Thanks for your feedback

Viewing all 11962 articles
Browse latest View live


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