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

Answered: "Can't open display"; stuck at screen cmd

$
0
0

Eventually after about 5 minutes, screen gets killed and it continues and works;

command line:

[root@ ocsinventory]# ocsinventory-agent --debug --server http://xx.xx

Can't open display

File descriptor 5 (pipe:[114071540]) leaked on pvs invocation. Parent PID 27968: /usr/bin/perl

File descriptor 5 (pipe:[114071540]) leaked on vgs invocation. Parent PID 27968: /usr/bin/perl

File descriptor 5 (pipe:[114071540]) leaked on lvs invocation. Parent PID 27968: /usr/bin/perl

error: Failed to reconnect to the hypervisor

error: no valid connection

error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

[root@ ocsinventory]#

log file:

[Tue Jul 30 09:23:28 2019][debug] Ocsinventory::Agent::Backend::OS::Generic::Screen killed by a timeout.

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Generic::Users

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Archs::i386::CPU

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Distro::LSB

[Tue Jul 30 09:23:28 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Drives

[Tue Jul 30 09:23:28 2019][debug]  - lshal found

(continues and collects the system info)

Storages detection error

$
0
0
My agent is not reporting my hard disk. Here is the log file.

[Wed Jul 31 09:03:32 2019][debug] Running Ocsinventory::Agent::Backend::OS::Linux::Storages
[Wed Jul 31 09:03:32 2019][debug]  - udevadm found
[Wed Jul 31 09:03:32 2019][debug] runWithTimeout(): unexpected error: Can't use string ("scsi@1:0.0.0") as a HASH ref while "strict refs" in use at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Backend/OS/Linux/Storages.pm line 229.

when I try running the agent, this error pops up:

Use of uninitialized value $password in concatenation (.) or string at /usr/local/share/perl/5.26.1/Ocsinventory/Agent/Network.pm line 53.
pcilib: sysfs_read_vpd: read failed: Input/output error
pcilib: sysfs_read_vpd: read failed: Input/output error

Both my server and my agent are on 2.6 version.

Answered: How to detect virtual machine (VM)?

$
0
0
One solution is to use FusionInventory with GLPI. It work verry well.

How to detect virtual machine (VM)?

$
0
0

Hi,

TLDR

I am looking for information about a way to detect the virtual machines that are installed on hosts that run an agent (linux and windows).

Context

I have a few hosts (Windows and Linux) where I have installed OCS agent. All my hosts runs virtual machine (Windows and/or Linux) on a hypervisor (VirtualBox for linux and some Windows host, Hyper-V for windows host).

All my hosts are able to report to my OCS server, but there is a problem. They do not report about the fact that they host virtual machine.

Question

I am wandering if there is a way to discover virtual machine. If so, how to discover virtual machines?

Search

I've found in the source code of agents (windows and linux) that there is a module that scan for VMs. I haven't found the way to run that module. Maybe it is always launch?


Thanks

login with admin failed (User not registered)

$
0
0

Hi,

I can't login with admin in ocs inventory anymore. I've changed the password a few month ago and now...I forget it! So I went to the server and tried the following:

1. Stop the MariaDB-Server via sudo service mysql stop

2. sudo mysqld_safe --skip-grant-tables &

3.to Login on MySQL-Server I used mysql -uroot

4. I changed to the ocs database with use ocsweb;

5. Then I updated the password: update operators set PASSWD=PASSWORD('MyNewPasswd') where FIRSTNAME='admin';

The command select * from operators where FIRSTNAME='admin';shows that everything's fine.

I quit the mysql server, started it via sudo service mysql restart and also restarted apache2.

If I try now to login with admin at the web interface I get the error above.

Actually I use OCS 2.4.

Greetings

Answered: login with admin failed (User not registered)

$
0
0
I found a solution:

deleting admin and set the NEW_ACCESSLVL in my personal account to sadmin was the answer.

Answered: install ocs for redhat 5 and centos 5

$
0
0
Hi,

I'm really sorry I did not notice that I put -1

I do not even remember having voted

I was able to install ocs on redhat 5 it took a lot of work

thanks for your return

non-inventoried server

$
0
0
Hi,

can you please tell me why I see somes of my servers in non-inventoried list ,while this is not the case

this error i see it juste for redhat 5
than

Failed to download Metadata

$
0
0

I have been trying for a while to configure the application deployment. However I have this error message on the client:

ERROR *** DOWNLOAD => Failed to download Metadata file <https://192.168.100.18/download/1565095963/info> to <C: \ ProgramData \ OCS Inventory NG \ Agent \ download \ 1565095963 \ info>

After verification, my package is in /var/lib/ocsinventory-reports/download/ and i can see it on https site.

My cert was created with FQDN and not with IP with this script : 

#!/bin/bash

#netoyage

rm /root/ca.*

rm /root/servwiki.*

rm /etc/ssl/private/ca.key

rm /etc/ssl/private/servwiki.crt

rm /etc/ssl/certs/ca.crt

rm /etc/ssl/certs/servwiki.crt

#Required

domain="una14.local"

commonname="OCS"

#Change to your company details

country=FR

state=Normandie

locality=Caen

organization=UNAduCalvados

organizationalunit=FR

email=*Emails are not allowed*

if [ -z "$domain" ]

then

    echo "Argument not present."

    echo "Useage $0 [common name]"

    exit 99

fi

echo "Creation de la cle serveur"

#Generate a key

openssl genrsa 2048 > /root/servwiki.key

echo "---------------------------"

echo "-----Below is your Key-----"

echo "---------------------------"

cat /root/servwiki.key

#Create the request

echo "Creation de la demande de certificat"

openssl req -new -key /root/servwiki.key  -subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname/emailAddress=$email"> /root/servwiki.csr

echo "---------------------------"

echo "-----Affichage du CSR -----"

echo "---------------------------"

cat /root/servwiki.csr

echo "Creation de la cle CA"

openssl genrsa -des3 2048 > /root/ca.key

echo "---------------------------"

echo "-----Affichage de cle -----"

echo "---------------------------"

cat /root/ca.key

echo "auto signature CA"

openssl req -new -x509 -days 3650 -key /root/ca.key -subj "/C=FR/ST=Normandie/L=$locality/O=$organization/OU=UNA14/CN=UNA14/emailAddress=$email"> /root/ca.crt

echo "Signature de la cle serveur par CA"

openssl x509 -req -in /root/servwiki.csr -out /root/servwiki.crt -CA /root/ca.crt -CAkey /root/ca.key -CAcreateserial -CAserial /root/ca.srl

echo "---------------------------"

echo "-----Affichage du crt -----"

echo "---------------------------"

cat /root/servwiki.crt

echo "Copie des fichier dans /etc/ssl/certs/ /etc/ssl/private"

mv /root/ca.key /etc/ssl/private

echo "25%"

mv /root/ca.crt /etc/ssl/certs

echo "50%"

mv /root/servwiki.key /etc/ssl/private

echo "75%"

mv /root/servwiki.crt /etc/ssl/certs

echo "100%"

echo "---------------------------------"

echo "----------Fin du Script----------"

echo "---------------------------------"


Ideas to unblock me?

Tip#1 usage of OPSI-script in OCS-Inventory

Answered: Problem with agent 2.6 start

$
0
0
Hi All

Am I the only one who is getting this problem? Any ideas where to look?

Michal

agent does not sent inventory

$
0
0

Good morning,

on my Win10-computers It's not possible to sent the inventory to the server after a new installation of ocsserver.

I use the latest ocsinventory server version 2.6 on Ubuntu 19.04. All clients have the number 2.4.

Server configuration:

In /var/www/html there's a symbolic link to /usr/share/ocsinventory-reports/ocsreports named ocsinventory. The servers name is inventar (/etc/hostname)

Client configuration (ocsinventory.ini):

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

I can ping the server with its dns name and its IP. Also the clients can be pinged from server. If I call the website in browser everything's fine.

However, the logifile says status code 404 or couldn't solve dns name. In my memory I thought that there's a cache which is to clear. Perhaps ocsinventory gets its information from cache?

Kind regards

Answered: Problem with agent 2.6 start

Tip#1 usage of OPSI-script in OCS-Inventory

Answered: agent does not sent inventory

$
0
0

Hey,

now as I changed the DocumentRoot directive from /var/www/html to /var/www/html/ocsinventory the agent sent the prolog successfully. But the inventory doesn't work yet.


Answered: Problem with agent 2.6 start

$
0
0
Hey ocs_user

Version 2.6 is found within the OCS Inventory:

[root@server ~]# yum repolist | grep OCS

ocsinventory                OCS Inventory NG repository for Enterprise Li     15

[root@server ~]# yum --showduplicates list ocsinventory-agent

Loaded plugins: product-id, search-disabled-repos, security, subscription-manager

Installed Packages

ocsinventory-agent.x86_64                                                                                             2.4.0-1.el6.ocs                                                                                             @ocsinventory

Available Packages

ocsinventory-agent.x86_64                                                                                             2.3.0-1.el6.ocs                                                                                             ocsinventory
ocsinventory-agent.x86_64                                                                                             2.4.0-1.el6.ocs                                                                                             ocsinventory
ocsinventory-agent.x86_64                                                                                             2.6.0-1.el6.ocs                                                                                             ocsinventory
[root@server ~]#

El agente OCS inventroy NG no me envia al Servidor

$
0
0
Buenas Tardes, tuve el servidor OCS 2.5 he actualizado a OCS Server 2.6 este abre y se visualizan los host antes desplegados, sin embargo al instalar nuevos agente 2.3, 2.4, 2.6 no se comunican al servidor OCS 2.6 los agentes se encuentran en Windows 10 1809 u 1903. He instalado todas las versiones de agente, he revisado el journalctl y activity.log no se ve la conexion a los nuevos host.

Tip#1 usage of OPSI-script in OCS-Inventory

Search a specific Registry in Windows

$
0
0
Hi guys,

I have a demand for to know who is Administrator users on my lan! Could I know it with OCS, setting it to search a specific register?

Answered: agent does not sent inventory

$
0
0

Nobody here who can help?

how I wrote the communication with the server runs successful. But there's no change in inventory.

This is my agent configuration:

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

And this is the result of OCSInventory.log:
 

==============================================================================
Starting OCS Inventory NG Agent on Monday, September 16, 2019 14:54:28.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.4.0.0>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
 

As you can see the prolog was sent successfully. But then the communication broke up (I'm not sure if "Unloading communication provider" is an error).

Has anyone the same problem and solved it?

Viewing all 4573 articles
Browse latest View live


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