Quantcast
Channel: Ocsinventory Q&A - Recent questions without answers

problems with docker version

$
0
0
Hello,

I've installed ocsinventory-server using docker-compose and I'm using 2.9.2 version.

I have some problems with: WOL and ipdiscover. I think the problem is that the server is behind nginx server in compose.

Do someone have a different implementation of inventory server resolving the problem?

Thank you

Nicola

Connecter Ocs Inventory Serveur avec Ldap Serveur

$
0
0
Bonjour,

J'aimerais savoir comment je dois procéder pour connecter mon ldap server à Ocs Inventory server.

J'ai réalisé les configurations nécessaires dans l'interface de OCS Inventory et ça ne fonctionne pas avec mon LDAP server.
Pouvez-vous m'expliquer si il y a des configs à faire en plus ou bien s'il faut changer quelque chose les fichiers de linux.

Merci.

Trouble with OCS 2.8.1 installation on Docker

$
0
0
Hello,

I'm trying to deploy an OCS instance within docker using : https://github.com/OCSInventory-NG/OCSInventory-Docker-Image

In order to match my actual production environement, I'm trying to deploy version 2.8.1

I use the original docker-compose.yml file with only one modification for port (8080:80 instead of 80:80 because it's already in use on my server)

the compose UP works fine and It seems I have no errors on  both container (db and ocs).

but i only have a black page when trying to reach http://localhost:8080/ocsreports/

what can i do ?

MacOS Agent 2.10.0 No memory info on M1 models

$
0
0

General informations

Operating system : MacOS 12 and MacOS 13

OCS Inventory informations

Unix agent version : 2.10.0

Problem's description

No memory information on MacbookPro M1 2020.
It's empty in DIMM table.

And it's fine on Macbook Air 2015(Intel), everything is correct

PHP Deprecated: htmlspecialchars():

$
0
0

Hi. 
I see many errors in /var/log/php-fpm/www-error.log.

PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1621

and a few errors:

PHP Deprecated:  mysqli_real_connect(): Passing null to parameter #8 ($flags) of type int is deprecated in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 45

The server is working corectly. I haven't noticed any operation or performance problems in OCS Inventory server so far. 

My server configuration is:
//--------------------------------------------------- 

OS Name :          Linux x86_64
Version :          5.15.0-8.91.4.1.el9uek.x86_64
RAM installed :    3460 MB
Free RAM :         761 MB
CPU :              Intel(R) Xeon(R) Gold 6246R CPU @ 3.40GHz
Distribution :     Oracle Linux Server 9.1
PHP Version : 8.2.2
Web Server :        Apache/2.4.53 (Oracle Linux Server) OpenSSL/3.0.1 mod_perl/2.0.12 Perl/v5.32.1
Database Server :   MariaDB Server version 10.5.16-MariaDB
Version OCSReports: 2.11.1

Installed plugins: 
//-----------------------------------------------------
Event Logs
GPResult
Office Pack
Services Windows
Shared Folders
Machine Uptime
Winusers

Growth of /var/log/php-fpm/www-error.log file is about 230MB for 4 days (almost 800 computers inventoried).
Why errors show in log file? 

I'd be grateful for information.
Sincerely, Dominik

Error Android Agent

$
0
0
Bonjour;

Je rencontre un problème lors de l'inventaire de certaines tablettes sous Android.

J'ai réalisé la configuration de l'application APK "OCS-NG Agent v.2.7" cependant lors de l'envoi de l'inventaire j'ai les erreurs suivantes :

- "Httpcommuication error code 308"

- "Httpcommuicationerrorcode 401"

Je n'ai pas les notions nécessaires pour débloquer la situation pouvais vous me guider ?

Merci d'avance.

Deployment issues by GPO windows

$
0
0
Good morning.

Version PHP: 7.4.33

Web Service: Apache/2.4.54 (Debian)

Version OCS Server: 2.11.1

OS: Debian 11 version 10.5.18

We have the following problem.

We are trying to deploy OCS agent 2.10.1.0 with OCS Packager 2.8

In the packager we add the agent

Then we put the command line:

/SERVER=http://xxx.xxx.xx.xxx/ocsinventory /S /NOW /NO_SYSTRAY /NOSPLASH

We add the PSExec to be able to put domain username and password, since we are implementing by GPO.

The final OCS packager is generated correctly but it does not take the domain username and password, it must be placed manually and installed correctly.

When launched by GPO, it does not install on any machine due to lack of credentials.

Could you help us with this?

Kind regards.

The same IP addr. apear in Inv. and Non-inv. col.

$
0
0
After scanning subnets, some - the same IP addresses apear in Inventoried and Non-inventoried column at once.

get inventory not installed by the packageManager?

$
0
0
I have ocs inventory agent running on RHEL. on the server it shows software installs that were done through yum/dnf, but i want to see any software that was not installed with the package manager.

for example. I want to see if someone installed the oracle client. or any other exe's that were just unzipped to a directory.

visualize xml

$
0
0
I had installed the server 2.1 which worked very well

When changing it to version 2.10 I cannot print the individual report of each team in pdf and when exporting in pdf I cannot visualize it correctly.

helpme

Frequency and Prolog-freq - 2 hour inventory

$
0
0

Hello. I would like to take inventory of machines every 2 hours. In this case, when reading the manual, I saw that although it is possible to configure the agent's communication frequency per hour (which is configured in the "prolog-freq" flag, which I defined as 2 hours) with the server, the inventory only will be effectively sent after the time defined in the (FREQUENCY) flag has passed, which is only defined in days. However, I saw that there is an option in the FREQUENCY flag that is "always inventoried". In this case, is it the one I should mark, so that the inventory is updated every 2 hours? Or does this option do something else? Thanks in advance.

LDAP NOT WORK

$
0
0

OCS Inventory version

  • OS Name :
  • Version :
  • Distribution :
  • Linux x86_64
  • 5.15.0-101.103.2.1.el8uek.x86_64
  • Oracle Linux Server 8.7

AD level 2016, DC is windows server 2016.

LDAP CONFIG

CONEX_LDAP_SERVEUR:                 ldaps://mydomain.intra

CONEX_ROOT_DN:                            CN=user,CN=Builtin,DC=mydomain,DC=intra

CONEX_LDAP_PORT:                       389 

CONEX_DN_BASE_LDAP                 CN=Builtin,DC=mydomain,DC=intra

CONEX_LOGIN_FIELD                      sAMAccountName

CONEX_LDAP_PROTOCOL_VERSION    3

CONEX_LDAP_NB_FILTERS              1

CONEX_LDAP_FILTER1                   &(memberOf=CN=Domain Admins,CN=Domain Users,DC=mydomain,DC=intra)

CONEX_LDAP_FILTER1_ROLE      Super Administrator

ERROR

I configured ldap when I try to login with an active directory account I get the error "bad connextion" in the logs what is it about?

Once the username and password have been entered, it gives me a white screen and does not log in

Error when trying to to install Comparedevices

$
0
0
I have an OCS Inventory Server in a Ubuntu.

Ocs Inventory    = Last
Ubuntu               = Last

 Im trying to compare 2 devices with the plugin "compare devices" but I cant install de plugin.When I trie to run "composer install" after moving the directory to /extensions, it says this:

---------------------

Installing dependencies from lock file (including require-dev)

Verifying lock file contents can be installed on current platform.

Nothing to install, update or remove

Generating autoload files

------------------------

I had install a lot of plugins in this server but I cant install this one. It is the first one with no .MAP file.
If I trie to install de plugin with python3 install_plugins.php this error appear:

ERROR: check if Map.pm and comparedevices.conf exist

What I need to do??

Integrate plugins in macOS Agent Packager

$
0
0
Hi!

Is there a way to integrate the plugins with the Agent Packager in macOS (like in Windows) to have an macOS.pkg with the plugins in?

Thx and best

Raik

Hosts disappearing from OCS inventory

$
0
0
Hello,

For the context, we are running our OCS inventory server on version 2.8 with RedHat 7.9 since about 2 years now.
We decided to upgrade to version 2.11 on RedHat 8.6

For this we changed the architecture and are now running an nginx server in front of 2 ocs servers, 1 on 2.8 (primary server), the other on 2.11 (secondary server). The nginx forwards the agent request to both servers. Once it is getting populated enough, we'll switch primary/secondary.

We have observed since a while that some host are disappearing randomly from OCS server 2.8, and then gets registered again, and so on. We hoped that this issue wouldn't happen with 2.11, but since few days this is happening aswell.

This is causing a flow of problem since we have other processes that are based on OCS records to work properly.

Question is, have you ever heard of such issues ?

How can we track it ?

We can't find how and why this is happening.

TRACE_DELETED must be active

$
0
0

I configured glpi in linux and installed the ocs plug-in, but the message "Invalid OCSNG configuration (TRACE_DELETED must be active)" was displayed, and I could not access the http://ip/ocsreports address. How can I fix this? Or what might have caused it.

No filtering by memory

Upgrade 2.11 to 2.12 cas connexion

$
0
0

Hello,

I upgraded ocs version 2.11 to 2.12. 
I was connecting via CAS authentication. 
But since the update the CAS authentication no longer works, I have a blank page instead.
I put define('AUTH_TYPE', 6); in var.php
I modified the cas.config.php file with the cas_host, cas_port and cas_uri parameters. 
Does somebody have an idea ?

Error : 
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function phpCAS::client(), 
4 passed in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/cas.php 
on line 46 and at least 5 expected in
 /usr/share/ocsinventory-reports/ocsreports/vendor/jasig/phpcas/source/CAS.php

Thank you for your answers.

Installation automatisé sous Ubuntu

$
0
0

Bonjour,

nous effectuons nos installations automatisés de postes sous Ubuntu via un serveur PXE et j'aimerai automatiser l'installation de l'agent OCS via un script exécuté à la fin de l'installation du système.

Dans ce script, pour le moment j'ajoute la clé gpg et le dépot OCS dans le source.list mais pour installer l'agent, je vais devoir passer par la commande apt-get install ocsinventory-agent.

J'aimerai savoir s'il existe des arguments à coller derrière afin d'automatiser l'installation, à la manière de l'installation silencieuse sous Windows "/S /SERVER=ipduserver /SSL=0" par exemple ?

Merci

Y

Plugins CRONTAB TASKS doesn't work

$
0
0

Hello,

am I alone to have the plugin Crontab Tasks which doesn't work by default ?

On admin page, it stays on Processing...

Regards.
Frédéric

Question about admin user

$
0
0
HI

I was wondering if someone else could shed some light, Currently i have OCS inventory working but for some reason when i log in the admin user it does not show the users not sure how i can though ssh give the permissions or create another user temporally

Thank you

Cannot Install Plugin In Linux, Deployment Build

$
0
0

Hi, 

I'm getting an error when trying to Build a packages in Linux using "Install plugin" option, after validating I got blank screen, and apache log show an error.

  • Server operating system: Ubuntu
  • OCS Inventory NG server version and patch level: 2.12.0
  • Apache server error.log file: located under “/var/log/httpd/*error.log”. 
  • OCS Inventory NG Server log file, located under “/var/log/ocsinventory-NG/ocsinventory-NG.log” under Linux. I DON'T HAVE THIS LOG FILE, Where can I find it?

Apache logs file: 

[Tue Sep 05 16:43:05.406001 2023] [php:notice] [pid 2395367] [client IP:65278] error when tar gz file, referer: http://ocs.server.org/

[Tue Sep 05 16:43:05.412152 2023] [php:warn] [pid 2395367] [client IP:65278] PHP Warning:  md5_file(/tmp/phpoHfxMq.tar.gz): Failed to open stream: No such file or directory in /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php on line 146, referer: http://ocs.server.org/

[Tue Sep 05 16:43:05.415395 2023] [php:warn] [pid 2395367] [client IP:65278] PHP Warning:  fopen(/tmp/phpoHfxMq.tar.gz): Failed to open stream: No such file or directory in /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php on line 350, referer: http://ocs.server.org/

[Tue Sep 05 16:43:05.418205 2023] [php:error] [pid 2395367] [client IP:65278] PHP Fatal error:  Uncaught TypeError: fread(): Argument #1 ($stream) must be of type resource, bool given in /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php:361\n

Stack trace:\n

#0 /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php(361): fread()\n

#1 /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php(148): PackageBuilder->fragmentPackage()\n

#2 /ocsinventory-reports/ocsreports/plugins/main_sections/ms_teledeploy/ms_tele_build.php(50): PackageBuilder->buildPackage()\n

#3 /ocsinventory-reports/ocsreports/require/header.php(434): require('...')\n

#4 /ocsinventory-reports/ocsreports/index.php(44): require('...')\n

#5 {main}\n  

thrown in /ocsinventory-reports/ocsreports/require/teledeploy/PackageBuilder.php on line 361, referer: http://ocs.server.org/


Install Agent on Rocky 9

$
0
0
Hello Folks,

I want to install the OCS Agent on Rocky9.
I wasn't able to build it myself, but the install through the sources work. I just don't get how I can run it as a daemon and deploy it to our servers in a good and central way.

Did anyone encouter the same problem and what was your solution?

How to use cron_ipdiscover.php ?

MFA in the ocs Inventory

$
0
0
Can you configure the 2FA(MFA) in the OCS Inventory ?

Help with getting Agent talking to new server

$
0
0
I have a new installation running on RHEL 8. Server version is 2.12, installed via RPM. Agent version is 2.10.1. The ocsreports site is up and running with SSL enabled. My only issue is getting the agent talking to the server. Debug log on the client machine looks like this:

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

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

COM SERVER => Cleaning cURL library

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

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <client_machine-2023-09-22-16-31-23> and MACs <xx:xx:xx:xx:xx:xx> 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://server_IP_Address/ocsinventory>

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

COM SERVER => Cleaning cURL library

Most issues with HTTP Status Code #400 are due to the Agent version being higher than the server version. This is not the case here.
Agent ini file looks like this:

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

WMI_FLAG_MODE=COMPLETE

DEFAULT_USER_DOMAIN=

[HTTP]

Server=http://server_IP_Address/ocsinventory

SSL=0

CaBundle=cacert.pem

AuthRequired=0

User=

Pwd=

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=1020

INVENTORY_ON_STARTUP=0

button analyze don't work

$
0
0

When I click on the analyze button for non-inventoried devices, the page opens with information about clearing the cache

LDAPS implement

$
0
0
Hi,

LDAP connection (not anonymous) work. But when I change protocol ldap by ldaps and port 389 to 636, I have a blank page when I validate my login.
In log/php-fpm/www-error.log, I have this error :
[05-Oct-2023 19:26:48 Europe/Paris] PHP Fatal error: Uncaught TypeError: ldap_search(): Argument #1 ($ldap) must be of type LDAP|array, bool given in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php:83
Stack trace:
#0 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(83): ldap_search()
#1 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(66): search_on_loginnt()
#2 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php(45): verif_pw_ldap()
#3 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/auth.php(100): require_once('...')
#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(321): require_once('...')
#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('...')
#6 {main}
thrown in /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/ldap.php on line 83

ldap.conf is not located at /etc/ldap/ldap.conf but in /etc/openldap/ldap.conf. I have all prerequis.

I have GLPI on this same server and it's work perfect in LDAPS with SSO.
Can you help me ?

Information about environnement :

Operating system : Rocky 9.2
Perl version : 5.32.1
SGBD : Mariadb 10.5.16
Ocs server version : 2.12.1

Thanks

Support of MacOS Sonoma

$
0
0
Is there any plans to release Agent, which officially supports MacOS Sonoma (14.0)?

Where is the column Type on All computers page?

$
0
0
Why the column "Type" isn't showing on the Show/Hide option on "All computers" page?

Is there any way to enable it?

Total Devices collected via different SNMP

$
0
0

Good afternoon,

 I'm using version 2.12 OCS, agent 2.10, scanning via the command line in centos (ocsinventory-agent) I get a larger number of devices found via snmp (total of 35 devices), but when I access the ocs application, the total number of devices found is different (28 devices), what could it be?

What's the latest MariaDB version supported?

$
0
0
Hello,

OCS Inventory documentation says "Mysql version upper than 5.5 are not supported but may work" but MySQL / MariaDB 5.5. is too old. What's the latest MariaDB version really functional with latest OCS Inventory Server for Unix version?

Thanks

attribut "caché"

$
0
0
Bonjour

les fichiers déposés arrivent avec un attribut "caché"

Pouvez-vous me dire comment remédier à ce problème, merci.

error 500 + Can't call method "rollback"

$
0
0

Hi all

when my agent want to contact the ocs server 2.12.1, I have this error in the log :

Log in Server:

Can't call method "rollback" on an undefined value at /usr/local/share/perl/5.34.0/Apache/Ocsinventory/Server/System.pm line 330.\n

Log in Agent :

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

I tried to change ocs user password in the config file : dbconfig.inc.php file and z-ocsinventory-server.conf file and zz-ocsinventory-restapi.conf, restarted the Apache ,. I also changed the password in die mysql database, but it didnt help .  But I still have this error :

could you help me please?

thanks

Access denied for user 'ocs'@'localhost'

$
0
0

Hello, I request your help with this problem, I have just installed the server and an agent to test the program and when the agent sends the report the server does not receive it.

I checked the activity.log file and I got this error, I was checking and the database password is correct but I don't know what's wrong.

agent on AIX

$
0
0

With the agent in the current version 2.10 on an AIX 7.3. I still have the following 2 problems:
1.)  the following warning messages appear during execution:

0516-1396 : The physical volume hdisk1, was not found in the
system database.
0516-306 lslv: Unable to find  hdisk0 in the Device
        Configuration Database.
0516-306 lslv: Unable to find  hdisk1 in the Device
        Configuration Database.
0516-306 lslv: Unable to find  hdisk2 in the Device
        Configuration Database.
0516-306 lslv: Unable to find  hdisk3 in the Device
        Configuration Database.
0516-306 lslv: Unable to find  hdisk4 in the Device
        Configuration Database.

The named command lslv is referenced in the LVM.pm module in the agent, but I was unable to find the reason for the warning.
2) Standalone.sh in the tools of the agent does not work for AIX  and SLES. Because of this I have tried the pp of  PAR::Packer to generate a binary agen. this worked well on SLES15 but does not on AIX.
The command
pp -C -o ocsinventory-agent.bin -x ocsinventory-agent
produces this error message:

SYSTEM ERROR in executing ocsinventory-agent : 256 at /opt/freeware/share/perl5/site_perl/Module/ScanDeps.pm line 1601.

Are there any Ideas to fix one or both of my problems?
Regards
Klaus

 


OCS Deployment General question

$
0
0
Hi, I downloaded and installed OCS Inv. a few weeks ago, to try it out and see the possibilitie.

So far so good, installation on Debian 12 went fine, sync GestSup to OCS API now OK, about 20 agents deployed to see ho it all works, looking good.

Now I just tried a deployment (in fact a simple cmd script to start a service on selected Remote PCs), Buikd OK, Validate OK, but in the menu I can't see 'Assignment Rules' (like described in this link (https://wiki.ocsinventory-ng.org/05.Deployment/Deploying-packages-or-executing-commands-on-client-hosts/),

So for a basic installation, what could be the reason for this menu entry not to be there ? A Parameter missing ? CheckBox somewhere ? Permission ? (admin account used)

IPDiscover does not work automatically

$
0
0

Hi. I have a Linux Debian OCS server and an OCS agent installed. I'm testing IPDiscovery, so I haven't installed the agents on other machines. From the documentation, I understood that machines with agents look for other devices and machines on the network that do not have agents. However, in the ocs web interface, nothing is listed.

When I run "ipdiscover-util.pl", some machines are listed as "Non-inventoried". And one was listed on "IpDiscover". Look:

How do I make IPDiscover work automatically? What is the difference between the Non-inventoried and IPDiscover columns?

Possible to download XML File to your host server?

$
0
0

Hello Guys,

Is it possible to download a listed computer from your ocs inventory website to your host server (ubuntu-server) through a command? I tried to do it with curl but sadly it was not possible. I would be grateful for any kind of help!


 

SNMP Inventory Error:

$
0
0

Hi, Team thanks for this greate tool i am trying to use the SNMP Scan Option but i don't see the informacion in the Ocs Inventory Server

Server Information:

OCS Server Version 2.12.1

Ocsinventory unified agent for UNIX, Linux and MacOSX 2.10.0

1 - Log of the Client

';

[Mon Jan 22 10:08:12 2024][debug] =END=SERVER RET======

[Mon Jan 22 10:08:12 2024][debug] Calling handlers : `end_handler'

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Calling snmp_end_handler

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Snmp: Scanning network

[Mon Jan 22 10:08:12 2024][debug]  - Net::Netmask loaded

[Mon Jan 22 10:08:12 2024][debug]  - nmap found

[Mon Jan 22 10:08:12 2024][debug]  - Net::Ping loaded

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Scanning 192.168.255.253/30 with ping

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Found 192.168.255.253

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Found 192.168.255.254

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Snmp: Ending Scanning network

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Scanning 192.168.255.253 device

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] Scanning 192.168.255.254 device

[Mon Jan 22 10:08:12 2024][info] [snmpscan] No more SNMP device to scan

[Mon Jan 22 10:08:12 2024][debug] checking XML

[Mon Jan 22 10:08:12 2024][debug] sending XML

[Mon Jan 22 10:08:12 2024][debug] sending: <?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

  <DEVICEID>bditinv01-2024-01-18-18-48-04</DEVICEID>

  <QUERY>SNMP</QUERY>

</REQUEST>

[Mon Jan 22 10:08:12 2024][debug] [snmpscan] End snmp_end_handler :)

[Mon Jan 22 10:08:12 2024][debug] [download] Calling download_end_handler

[Mon Jan 22 10:08:12 2024][info] [download] Beginning work. I am 69726.

[Mon Jan 22 10:08:12 2024][info] [download] Option turned off. Exiting.

[Mon Jan 22 10:08:12 2024][debug] [download] End of work...

2 - TCPDUMP In the Agent Server

in Tcp Dump i see the request and response (OK) no Error 

3 - SNMPWALK

snmpwalk -v2c -c snmpadmin 192.168.255.253 1.3.6.1.2.1.1.5

SNMPv2-MIB::sysName.0 = STRING: SW_FO_MF_01 

Upgrade 2.12.1 Agents stopped sending inventory

$
0
0

Hello

We are currently upgrading our OCS Inventory Server from 2.11.1 to 2.12.1, with the OCS Agent Unix 2.10.0. 

After upgrading, we noticed that the agent stopped sending inventories to the server, so we tried to troubleshoot by checking the logs and the configuration file : 

After executing this command on the remote host to connect to the server : 

'ocsinventory-agent
--nolocal --ssl=0 --ca=/etc/pki/ca-trust/source/anchors/cert.pem --info
--server=http://dummy-url.com/ocsinventory'

We got this in the log : 

ocsinventory-agent.log 

[Mon Feb  514:01:012024][info] Going to sleep for 96 second(s)

[Mon Feb  514:02:452024][error] Cannot establish communication : 500 Internal Server Error

[lun. 05 févr. 202414:02:45 UTC] End of cron job (/sbin:/bin:/usr/sbin:/usr/bin)

[lun. 05 févr. 202415:01:01 UTC] Running ocsinventory-agent --wait 100 --nolocal

--ssl=0 --ca=/etc/pki/ca-trust/source/anchors/cert.pem --info

--server=https://dummy-url.com/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 = https://dummy-url.com/ocsinventory

#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-server.cfg

<IfModule mod_perl.c>

  # Which version of mod_perl we are using

  # For mod_perl <= 1.999_21, replace 2 by 1

  # For mod_perl > 1.999_21, replace 2 by 2

  PerlSetEnv OCS_MODPERL_VERSION 2

  # Master Database settings

  # Replace localhost by hostname or ip of MySQL server for WRITE

  PerlSetEnv OCS_DB_HOST localhost

  # Replace 3306 by port where running MySQL server, generally 3306

  PerlSetEnv OCS_DB_PORT 3306

  # Name of database

  PerlSetEnv OCS_DB_NAME bd_ocs

  PerlSetEnv OCS_DB_LOCAL bd_ocs

  # User allowed to connect to database

  PerlSetEnv OCS_DB_USER ocs

  # Password for user

  PerlSetVar OCS_DB_PWD ocspsswd

  # SSL Configuration

  # 0 to disable the SSL support for MySQL/MariaDB

  # 1 to enable the SSL support for MySQL/MariaDB

  PerlSetEnv OCS_DB_SSL_ENABLED 0


dbconfig.inc.php

<?php

define("DB_NAME", "db_ocs");

define("SERVER_READ","localhost");

define("SERVER_WRITE","localhost");

define("SERVER_PORT","3306");

define("COMPTE_BASE","ocs");

define("PSWD_BASE","ocs");

define("ENABLE_SSL","");

define("SSL_MODE","");

define("SSL_KEY","");

define("SSL_CERT","");

define("CA_CERT","");

?>


The results of a tcpdump command shows an "Encrypted Alert" error

192.168.5.67  = remote host

192.168.5.228 = ocs server 

Note that the Ocs agents used to send inventories properly to Ocs Server before we upgraded, and the content of the configuration files attached are the exact same in 2.11.1 and 2.12.1 version.

We are also getting a "500 Internal Server Error" that we didn't used to get even though we are still using the same certificate.

Is there anything missing for the upgrade to be successfull ? 

Do we need to upgrade some files in order to make a successfull upgrade ?

Thank you, 

Best Regards

Uninstall OCS Agent from Centos/AlmaLinux

$
0
0
How can I uninstall OCS Inventory Agent from CentOS/AlmaLinux Servers?

Plugin firewallconfig doesn't show info

$
0
0

Hello!

My goal is to see the windows firewall status from my devices. To do it i installed the "firewallconfig" https://github.com/PluginsOCSInventory-NG/firewallconfig/blob/main/agent/firewallconfig.ps1

But when i see the device on the UI , the "Firewall config" is empty:

The agent log (C:\ProgramData\OCS Inventory NG\Agent\OCSInventory.log) shows the execution of "firewallconfig.ps1" successfully:

I installed the plugin ok:


 

But it's strange, i didn't see in 'C:\Program Files\OCS Inventory Agent\plugins' the 'firewallconfig.ps1' after install via UI the plugin. I put it manually on the agent path.

Can anyone help me ?

Thanks !


Disable IPDiscover Globally for All Agents

$
0
0
Hello,

Is there a way of disabling IPDiscover on all registered Agents? I Prefer running this manually on OCS Server itself using `ipdiscover-util.pl`. OCS normally Selects Most active agent to scan its networks, which is not so ideal in my usecase.

Problem with teledeployment

$
0
0
I get some trouble to deploy Package.

When I use already .msi done, I have no problem to download and install the package but when I have to do the same with .exe, all change.

It download the package but it cannot install.

I try to build package with my own package built with MSI Wrapper ... Download OK / Install Failed

I try to build package via OCS with .exe (zip or not - I try both) ... Download OK . Install Failed

In argument, I left empty or I write /s or /s /norestart

If somebody can help me, I find nothing really helpful in internet and I'm new with this app.

Thank you very much for all your help

macOS Packager?

$
0
0
Hi,

It appears the macOS packager is no longer available for download and has been replaced with (OCSNG-Unix-Packager-1.0). Is there any documentation on how to package with the config and sh files? I am trying to deploy Mac agent 2.10.0 using Jamf and have no idea where to begin. I deployed the agent to my Windows fleet using Intune with no issues.

Error function creation type SNMP

$
0
0

Hello, 

When i'm attempting to create a new type SNMP in "Configuration > SNMP configuration > New Type"

However, i can delete a SNMP type, there is no error when i did this action.

Version OCS : 3.10.0-1160.114.2.el7.x86_64

OS : Linux x86_64 - centos 7

PHP : 7.4.33

Serveur web : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 mod_perl/2.0.11 Perl/v5.16.3

ServeurSQL : MariaDB Server version 5.5.68-MariaDB

I tried to solve my issue by consulting various logs and journalctl but nothing. 

When i try snmpwalk to verify if it works, all is good.

i had follow this walkthrough to verify my parameters and is ok.

I don't understand why have i this issue.

Thanks for your help. 

Is it possible to export inventory data to splunk?

$
0
0
Hi, I looking for a way to ingest inventory data from OCS into Splunk Enterprise. Is this feasible?

thanks

Alex

comment modifier les "TAG"

$
0
0
comment modifier les "TAG" à partir de la console de gestion et que cette modification soit prise en compte

After upgrade to 2.8 ocs show only procesing...

$
0
0

After upgrade from 2.6 to 2.8 the tables only contain the inscription processing..The ocs server works properly and collects data from clients, but the report does not display them

however, the downloaded xml file contains all the data from bokmarks software, hardware, network etc. How to diagnose the problem, there are no errors in the ocsreports logs. I have php 7.4.33. Regards Slawek






Latest Images