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

Plugin not executed by httpd on v2.5 ocs-ng

$
0
0
Hi,

Trying to setup "Plugin Vmware vCenter". on Red Hat Enterprise Linux Server release 7.6 (Maipo)

All files are installed succesfuly:

-rw-rw-rw-. 1 apache apache 54 Nov 28 15:33 /etc/ocsinventory-server/plugins/Vmware.conf
-rw-rw-rw-. 1 apache apache 5062 Nov 28 15:33 /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Vmware/Map.pm

Agent file also deployed:

-rw-r--r-- 1 root root 20087 Nov 29 20:34 /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Vmware.pm

But no Error messages or logs in the http log files either not sure what is not causing it to load and execute.

Loaded Modules:

 core_module (static)

 so_module (static)

 http_module (static)

 access_compat_module (shared)

 actions_module (shared)

 alias_module (shared)

 allowmethods_module (shared)

 auth_basic_module (shared)

 auth_digest_module (shared)

 authn_anon_module (shared)

 authn_core_module (shared)

 authn_dbd_module (shared)

 authn_dbm_module (shared)

 authn_file_module (shared)

 authn_socache_module (shared)

 authz_core_module (shared)

 authz_dbd_module (shared)

 authz_dbm_module (shared)

 authz_groupfile_module (shared)

 authz_host_module (shared)

 authz_owner_module (shared)

 authz_user_module (shared)

 autoindex_module (shared)

 cache_module (shared)

 cache_disk_module (shared)

 data_module (shared)

 dbd_module (shared)

 deflate_module (shared)

 dir_module (shared)

 dumpio_module (shared)

 echo_module (shared)

 env_module (shared)

 expires_module (shared)

 ext_filter_module (shared)

 filter_module (shared)

 headers_module (shared)

 include_module (shared)

 info_module (shared)

 log_config_module (shared)

 logio_module (shared)

 mime_magic_module (shared)

 mime_module (shared)

 negotiation_module (shared)

 remoteip_module (shared)

 reqtimeout_module (shared)

 rewrite_module (shared)

 setenvif_module (shared)

 slotmem_plain_module (shared)

 slotmem_shm_module (shared)

 socache_dbm_module (shared)

 socache_memcache_module (shared)

 socache_shmcb_module (shared)

 status_module (shared)

 substitute_module (shared)

 suexec_module (shared)

 unique_id_module (shared)

 unixd_module (shared)

 userdir_module (shared)

 version_module (shared)

 vhost_alias_module (shared)

 dav_module (shared)

 dav_fs_module (shared)

 dav_lock_module (shared)

 lua_module (shared)

 mpm_prefork_module (shared)

 proxy_module (shared)

 lbmethod_bybusyness_module (shared)

 lbmethod_byrequests_module (shared)

 lbmethod_bytraffic_module (shared)

 lbmethod_heartbeat_module (shared)

 proxy_ajp_module (shared)

 proxy_balancer_module (shared)

 proxy_connect_module (shared)

 proxy_express_module (shared)

 proxy_fcgi_module (shared)

 proxy_fdpass_module (shared)

 proxy_ftp_module (shared)

 proxy_http_module (shared)

 proxy_scgi_module (shared)

 proxy_wstunnel_module (shared)

 ssl_module (shared)

 systemd_module (shared)

 cgi_module (shared)

 perl_module (shared)

 php5_module (shared)

Windows Product Key wrong

$
0
0

Hi,

i'm using OCS-Server 2.4.1 on Linux, Windows Agent 2.4.0.

The Windows 10 product key is shown wrong in OCS.

BS-Name :Microsoft Windows 10Pro
BS-Version :10.0.17134
Architektur :x86 64 bit
Windows Lizenz-Nr. :VK7JG-.....
Agent-Version :OCS-NG_INJECTOR_PL_v3

The real key is : MGK6X-.....

In OCS, the key VK7JG... is displayed on many computers. The real key is different on these computers.

I'm using this :

OCS-NG-Windows-Agent-Setup.exe /S /local=C:\tmp

/usr/bin/perl OCSNG_UNIX_SERVER_2.4/binutils/ocsinventory-injector.pl --url http://ocs-server.xxx.de/ocsinventory -f <file from c:\tmp>

Perl Error after update server from GIT

$
0
0
After update from git server error

Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 102, near "s/\*//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 105, near "s/\*//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 109, near "s/\*//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 113, near "s/\?/./gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 150, near "s/\.//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 151, near "s/\.//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 158, near "s/\.//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 159, near "s/\.//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 166, near "s/\.//gr"
Bareword found where operator expected at /usr/lib64/perl5/site_perl/5.12.3/Apache/Ocsinventory/Interface/SoftwareCategory.pm line 167, near "s/\.//gr"

Apache not start

Perl Verion 5.12.3

Regards

Installation date not present for most programms

$
0
0
hy, i am just testing OCS-Inventory 2.5.0 with agent 2.4.0

Local import - most programms have no installation date!

For example handbrake 0.10.5 which i am using in my test

Ocs reports 0000-00-00

00:00:00

But in software add /remove i see the installation date - i thought this works in the new agent ?
I vertified that the date isn't in a local generated xml file - so the server isn't the problem
The same as in ocs inventory 2.1.2 with agent 2.0.5

the "bug" or problem is very old

http://ask.ocsinventory-ng.org/784/installation-date-not-showing
https://bugs.launchpad.net/ocsinventory-windows-agent/+bug/1387081
It looks like ocsagent looks in

HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall

under softarename - for example Handbrake

If there is a Installdate in an Reg_SZ value- then ocs reports it- the question is where the add/remove software control gets the date?

Who can help ?

Demo Server - database too limited

$
0
0
hy, i am often testing some things in demo server to look if a have a local configuration problem.

The problem with the demo server is the following.

1. there are no checkbox or radio buttons in administrative data

2. there is only 1 group

3. there is no dynamic group

4. there are no registry values ?

It should be easy for the maintainer to add this data - so every person can try to make a multicriteria search with groups, or see how a radio button looks like. I am sure the missing administrative data after updating ocs-inventory bugs where easily identified.

Also the search with 2 ore more groups where often a "and" and "or" problem in multicriteria search can identified more easily. Also the dynamic group feature bug are disclosed (dynamic groups integrates computers which are never searched at the time the group was generated)
It was more comforable to report a bug in github if i can make a reference to the demo server - so every ocs-inventory maintainer knows that the bug is not at my local installation.
So please extend the database a little bit

Thanks

Kind regards

Uninstall Software with OCS Inventory

$
0
0
Hi,

I be a newbie and installed OCS Inventory NG on Debian Server sucessfully.
The software development works... on Windows Agents I've installed Visual C with OCS Inventory.

Is there a way to uninstall software on Client-PC?

Send Message to Client

$
0
0
Hi,

is there a way to send a message to an Client.
Maybe a plugin or something?

Can't find information file at..activation error

$
0
0

Hello guys,

first of all thanks for this geat tool and your daily work and development on this.

OS: Debian 9.6 (stretch)
OCS-InventoryNG: OCSNG_UNIX_SERVER_2.5
Agents OS: mostly Windows 7 & 10
Agent execution logs:
Starting OCS Inventory NG Agent on Monday, December 03, 2018 06:34:57.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.3
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.3
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
AGENT => Inventory successfully sent
AGENT =>  Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:24.
Apache server logs:
no errors

I have a problem regarding the package activation that tells me a "Warning: Can't find information file at https://xxxxx/download/xxxxx"

If I manually enter the path I see the directory content (http as also on https)

It's kind a weird that upon building a package the directory permissions always get set back to 755 www-data:www-data...
As described in the following post I added these options to the ocsinventory-report.conf  http://ask.ocsinventory-ng.org/5827/deployment-activate
Options Indexes FollowSymLinks MultiViews
AllowOverride None

Also I can't access the package statistics site with a notice, that there's no access to this data

Hopefully you can help on this issue I'm really clueless :-(

thanks

sip_mw


Help troubleshoot: Couldn't connect to server

$
0
0

Hi all,

We have a newly installed ocs inventory ng server version 2.5 on Centos 7.

I’m trying to get my first agent to communicate with the server. It’s the Windows agent 2.4 on a server 2008 box. However, I only get “Failed to send HTTP Post request <Couldn't connect to server>”

I have stopped the firewalls on both the server and client. If I point my browser to: http://ipaddress_of_ocs/ocsinventory, I get page not found.

Here is some HTTP info:

Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 mod_perl/2.0.10 Perl/v5.16.3

Here is my ini:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=1
IpDisc=
[HTTP]
Server=http://ipaddress_of_ocs/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=2220
INVENTORY_ON_STARTUP=0

Here is my OCSInventory.log:

Starting OCS Inventory NG Agent on Monday, December 03, 2018 10:36:33.

AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\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 (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.4.0.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <RDP2-2018-12-03-07-29-28> and MACs <C2:A8:20:52:41:5300:50:56:9C:24:1400:50:56:9C:3F:9900:50:56:9C:19:FB00:50:56:80:F4:02> 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://ipaddress_of_ocs/ocsinventory>
WARNING *** COM SERVER => Failed to send HTTP Post request <Couldn't connect to server>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <Couldn't connect to server>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:22.

Any help is much appreciated.

Thanks, Andrew

Use of Plugins - for example winusers

$
0
0

Hi,

I wan't to use plugins with OCS Inventory.

Debian Server with ocs 2.5 -> Inventory and deployment works on windows agent.

I wan't to user for exampl ethe winusers plugin.

Download and copy to: /usr/share/ocsinventory-reports/ocsreports/download
and install it through the Plugin Manger. All semms good.

Then I copied the winusers.vbs on Windows Agent to: C:\Program Files (x86)\OCS Inventory Agent\Plugins

The map.mp file is in: /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/Winusers

I added following entry to /etc/ocsinventory-agent/modules.conf: use Ocsinventory::Agent::Modules::Winusers;

But it doesn't work.
Can somebody tell me whats wrong?
 

Missing computer details when browsing Vm list

$
0
0
Using OCS Inventory Server 2.5

Error messages comes as "You don't have access to this data"

when clicking:

https://IP/ocsreports/index.php?function=computer&head=1&systemid=3055

Agent is sending vmware inventory to the NG-Server as expected when using "VMWare inventory" plugin from "Gilles Dubois"

Disable SSL for Deployment from server?

$
0
0
Hallo,

all my clients canot download any Software because of an SSL error.

I don't know why I get this error, client logfile only log "SSL error".

Can I disable the usage of SSL from the ocs server so I don't have to change anything on the client?

Regards

Daniel

ERREUR: impossible d'écrire dans le répertoire

$
0
0

Bonjour,

Je mets à jour 2.4 vers 2.5 et j'ouvre la page web d'OCS-NG, il y les message erreur :

Je suis vraiment paumé et j'ai besoin d'aide......

merci à l'avance

Bonne soirée

Marco
 

The server does not detect clients (Agent)

$
0
0
Im intalled OCS Server on 2 environments:

1) OCS Server 2.5 on Centos7 with a Windows 10 agent in the same network without firewall with Windos 10 Client (Agent vs 2.4.0)

2) Installed OCs Server / Xampp vs 2.1.2 on Windows 10 and install OCs Agent vs 2.4.0 on the same machines. Local host

In my environments, my server does not detect the client (agent)?

Why?

Thanks regards

OCSInventory-Agent-Windows10 HTTP Status Code #404

$
0
0

Hi everyone,

I recently install OCS Inventory Server 2.5 in Server Ubuntu 18.04 TLS using XAMP 7.2.11-0 for the LAMP part.

modules /usr/sbin/apache2ctl -t -D DUMP_MODULES:

Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 http2_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 perl_module (shared)
 reqtimeout_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)

For install i follow this link manual: http://ocsinventory-server.blogspot.com/

The problema is that when i try to conect the ocsinventory-agent in Windows 10 i get this error at the OCSInventory.log file:

Starting OCS Inventory NG Agent on Tuesday, December 11, 2018 08:35:34.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
AGENT => Loading plug-in(s)
 DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\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 (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.4.0.0>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <Z-PC-2018-12-09-15-42-57> and MACs <00:FF:84:11:AF:> 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://192.168.2.10:80/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.

OCSInventory.ini file:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.2.10:80/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=2940
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10 

I appreciate the help!


using ocs teledeploy functionnality

$
0
0

Hello,

I want to use ocs teledeploy functionnality to clear a browser cache (ie) on client machines. I have 90 clients and I just need to run the following command: C:\Windows\System32\RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

I used the execute action to run this command but nothing has changed. Then I used the launch action to launch a .bat file with this command. even adding start didnt resolve the issue. the package is always downloaded successfully but nohting has been executed on the client machine to proove that the cache has been cleaned.

How can I di this action please. it's a production issue and I need to relove this ASAP. 

Thanks

Can't install kind of packages

$
0
0
Hello,

my problem is that aber deploying the notepad++-package it isn't possible to install it on a Computer.

What I've done?

I've downloaded the newest .notepad++-exe from their Homepage. After this I packed the installer in a zip-file. At the web Access of ocs I deployed a new package (Priority=0, npp,zip, npp.7.6.Installer.exe /S). Then I activated the package. I've chosen the new package to install on my Computer.

At least I clicked Right at the Agent > start ocs inventory ng agent on my Computer. The Status changed from "waiting for Response" to "Notified". Then….Nothing. I can't install it. Before I started the Installation of 7-zip successfully.

Do you have any suggestions why it is so complicated to install?

Pas de remonter snmp

$
0
0
Problème de remonter SNMP sur agent Windows 2.4.0.

Pas de remonter de PC sur les sous réseau.

Besoin de votre aide !!!!

EXIT_CODE_2 et ERR_BAD_DIGEST

$
0
0
Hello,

I deployed a package on a group of ocs agents and I those two issues on some clients. Does anyone know the meaning? knowing that the same package worked on other machines and all the group has the same version of ocs agent. What can be the problem?
Thanks a lot

Update a SQL database based on OCS

$
0
0
Hello,

I would like to monitor a software version and update a MariaDB database based on the software version this way :

Actual software release version : 2

- Computer 1 has Software version 1 -----> UPDATE Computer 1 [...] CanUpdate = YES

- Computer 2 has Software version 2 -----> UPDATE Computer 1 [...] CanUpdate = NO

The process would update the database table everytime i run it, depending on the computer deployed versions and the updated server version.

The OCS server is on Debian 9 and i can get the software version number on the OCS Inventory computer list.

What would be the best way to do this ? Using a bash script on the cron table of the OCS server ?

Also, can you edit the software column in OCS Inventory to add a "last edited" or "last update" date ?

Thanks for your input
Viewing all 4375 articles
Browse latest View live


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