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

Answered: New Maschines appears with no data in Database

$
0
0

I am happy that you can have the inventory feeds again. Have a good day


Answered: Upgradig OCS Inventory NG from 2.7 to 2.8

$
0
0
A suggestion:

on my system are two relevant Apache.pm with different Perl Version. Possibly a reinstall of the ocs-reports could help ta create the correct folder structure and/or a link to the used Perl Version could help:

the result on my systemm, when I try to find this Apache.p, file:

locate Apache.pm | grep perl

/usr/local/share/perl5/5.30/Apache/Ocsinventory/Plugins/Apache.pm

/usr/local/share/perl5/5.32/Apache/Ocsinventory/Plugins/Apache.pm

PERL MODULES ERROR

$
0
0
Hello everyone

I still can't fix the error "ERROR: Perl modules installation failed, look at the error .....". Try again to install the essential perl modules, but I still get the error. how do I solve it?

I would really appreciate your help

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: PERL MODULES ERROR

$
0
0
Hi,

Distro ? OCS version ? Which perl modules ?

Regards

Frank

générer des rapport automatique

$
0
0
Bonjour,

Existe il un moyen simple de généré des rapport de façon automatique.?

Update OCS-Server from 2.6 to 2.8

$
0
0
Hey Guys,

i have a problem to update our OCS-Server from 2.6 to 2.8. The "Mailsystem" (/var/spool/mail/root) the message that two logrotats a failed: /etc/cron.daily/logrotate:

1. error: skipping "/var/log/ocsinventory-server/activity.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

2. Subject: Cron <root@idoit> /usr/local/bin/idoit-console search-index > /tmp/idoit-search-index.log

I have tried to change the group and user for the logrotat. But this was not the solution. In every directory up to /var and also the activity.log is user and group root.

Also a php module failed:
Failed loading /usr/lib64/php/modules/ixed.7.2.lin:  /usr/lib64/php/modules/ixed.7.2.lin: undefined symbol: _zval_ptr_dtor
If I log on the web interface i get only old informations from the database but nothing actuality information like devices that were connected today or changes.

Error with web browsers

$
0
0
Hello everyone

I have a problem with the web browser. When I get the ip to connect to the OCS. I load the Apache page well by default. but as soon as I put "/ ocsreports" there are different errors with web browsers. I already tried google, brave, firefox and tor. I already deactivate the firewall and nothing. and the installation of OCS invetory seems to be fine since it does not throw any errors.

Error with brave "Error code: SSL_ERROR_RX_RECORD_TOO_LONG"
Error with google "HTTP ERROR 500"
Error with brave "HTTP ERROR 500"

OS: Ubuntu 20.04.1
OCS version: OCSNG_UNIX_SERVER_2.8

Answered: Update OCS-Server from 2.6 to 2.8

$
0
0

I have:

drwxrwxr-x. 2 apache root 4096 Dec  2 03:48 /var/log/ocsinventory-server

[root@ocs ~]# ls -ltr /var/log/ocsinventory-server/
-rwxrwxr-- 1 apache apache  3073919 Dec  1 03:37 activity.log-20201201.gz
-rwxrwxr-- 1 apache apache 38835143 Dec  2 03:48 activity.log-20201202
-rwxrwxr-- 1 apache apache 26412224 Dec  2 20:08 activity.log

Permission denied on http://SERVER/ocsreports/

$
0
0
Hi, when I go to the home page ocsreports it shows me :

ERROR: MySql connection problem 2002
Permission denied
ERROR: MySql connection problem 2002
Permission denied

It worked yesterday.

httpd/error_log shows:

PHP Warning: mysqli_fetch_object() expect parameter 1 to be mysqli_result, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38

Same error on line 67 / 104 / and again 38 with different mysqli methods.

OS : CentOS 7
OCS Server and agent version : 2.8

I've checked:
-All services are running
-Privileges for root and ocs admin on the database (MariaDB 10.5.5)
-dbconfig.inc.php user / password and port aree good.

Any ideas ?

Answered: Error with web browsers

$
0
0
Hi,

What errors have you in apache2 error.log file ?

Regards

Frank

problème suite à mise à jour 2.7.0.1 vers 2.8 bug?

$
0
0
Bonjour

J'ai un problème à soumettre suite à mise à jour de version 2.7.0.1 vers la 2.8 de ocs server sur debian 10

depuis cette mise à jour quand je clique sur "toutes les machines" je ne vois plus rien c'est vides par contre sur mon dashboard je vois  bien mes machines remontés fréquemment

Si quelqu'un a une idée

Merci d'avance

Cordialement

Answered: Error with web browsers

OCS Guide for SSL setup

$
0
0

Is there a guide for how to set up SSL on OCS? I tried editing the z-ocsinventory-server.conf file in /etc/apache2/conf-available and I get an error when restarting Apache.

This is what I have configured so far:  

#SSL apache settings
  SSLEngine "SSL_ENABLE"
  SSLCertificateFile "/etc/ssl/wildcard_new.crt"
  SSLCertificateKeyFile "/etc/ssl/wildcard_new.key"
  #SSLCACertificateFile "SSL_CERTIFICATE_FILE"
  #SSLCACertificatePath "SSL_CERTIFICATE_PATH"
  #SSLVerifyClient "SSL_VALIDATE_CLIENT"

The error I get when starting Apache is:

Oct 05 18:53:29 ocs systemd[1]: Starting The Apache HTTP Server...
Oct 05 18:53:29 ocs apachectl[13993]: AH00526: Syntax error on line 302 of /etc/apache2/conf-enabled/z-ocsinventory->
Oct 05 18:53:29 ocs apachectl[13993]: Argument must be On, Off, or Optional
Oct 05 18:53:29 ocs apachectl[13979]: Action 'start' failed.
Oct 05 18:53:29 ocs apachectl[13979]: The Apache error log may have more information.
Oct 05 18:53:29 ocs systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 05 18:53:29 ocs systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 05 18:53:29 ocs systemd[1]: Failed to start The Apache HTTP Server.

Any tips? I haven't changed any of the settings in /etc/apache2/sites-available/000-default.conf or default-ssl.conf files. 

Answered: Error with web browsers

$
0
0
Hi,

Have you installed all php modules ? It seems mysqli php module is missing. Verify your server installation. Retry to connect.

Regards

Frank

SNMP scanning with custom MIB and IOD

$
0
0

Hello friends from the OCS forum, I write from Brazil / São Paulo (sorry my English is bad), I am using version 2.7 of OCS Server and version 2.6.1 of Agent on Ubuntu 16.04, all installation and configuration is 100% working.

All the documentation is in my personal project on Github at the link (in PT-BR): https://github.com/vaamonde/ocsinventory

The biggest challenge is to configure network scanning using SNMP on non-Cisco switches (I'm testing on a Netgear GSM7228 switch).

note: I have already done a wide search in the forum on this topic, such as this one: http://ask.ocsinventory-ng.org/12333/private-custom-mibs-not-utilized-by-unix-agents, most without answer.


Unfortunately the OCS Inventory On-Line documentation about this feature on the Wiki is very simple and there are no practical examples of how to customize and configure this feature.

When I use the SNMP Network scan on the Switch initially it only took the basic information of the SNMP (Contact, Description, Location, etc ...) the information of Switches, Cards, Networks Software were not obtained (does not appear on the device screen) .


To solve this problem, I copied the 9.pm (cisco) file from the folder: /usr/local/share/perl/5.22.1/Ocsinventory/Agent/Modules/Snmp/ to the file 4526.pm which is the Private OID of Netgear (1.3.6.1.4.1.4526), I edited the lines:

package Ocsinventory :: Agent :: Modules :: Snmp :: 4526;
my $ list_mib = ["Entity_Mib", "If_Mib", "Host_Resources_Mib", "Default"];
$ logger-> debug ("Running Netgear (4526) MIB module");

I left the same Cisco OID's and ran the scan again, at that moment the Switches, Cards and Networks tabs appeared with some information, mainly the Networks tab with the network interfaces, even though information is now missing, not working correctly, but it worked.

Question 1: How it really works and how to actually use the SNMP Configuration feature in OCS Inventory for Hardware other than Cisco or Non-HP Printers (Guide: Configuration, SNMP Configuration, Create Type, Create Label, Configuration Type and Add MIB file), I realized that when I do this configuration it creates a Table in the OCS Inventory Database with these fields. Does this feature really work for anything?

Question 2: The files located at: /usr/local/share/perl/5.22.1/Ocsinventory/Agent/Modules/Snmp/ are extremely complex for customizing custom IODs from other manufacturers, is there a simpler, faster and more efficient method , as there is no detailed documentation for this on the Wiki.

Question 3: The files located at: / var / lib / ocsinventory-agent / https: __ server / snmp / mibs / local / are customized models from some manufacturers, can they be used for this scenario? How to use? How to configure? There is also no documentation on this on the Wiki.

Thank you all for the attention...

Robson Vaamonde

Insert statements every Hour

$
0
0

Hi,

i'm using OCS-Server 2.8 running on RHEL 7.6.

Around 500 insert statements are executed on the table 'software' every full hour. The statements could not be finished. What is the reason for this insert's, a cron inside OCS ?

I've set this in the MySQL-config :

interactive_timeout=600
wait_timeout=600

Example :

INSERT INTO software (HARDWARE_ID,NAME_ID,PUBLISHER_ID,VERSION_ID,FOLDER,COMMENTS,FILENAME,FILESIZE,SOURCE,GUID,LANGUAGE,INSTALLDATE,BITSWIDTH) VALUES('2029','3409','155','1972','','Userspace configuration daemon required for some iSCSI hardware','','188237','0','','','2019-11-29 12:06:04','0')

Extension Manager Bug

$
0
0
Extension Manager Bug Hello, see if you can help me. 
I have an OCS Inventory server with version 2.6 and I am trying to install some plugins for inventory reporting. Right after finishing the configuration of the plugin files I went to the web interface, and the manager page does not appear correctly. 
Is there any way to correct or work around this problem? I tried to empty the extensions folder in / usr and plugins in / etc but without success. 
I took a print to check the screen that appears to me.
https://greentreinamento-my.sharepoint.com/:i:/g/personal/bruno_souza_green_com_br/EbgsR4ZM051MvjsPxJdGSlQBSsjITMUlD1wOqW-GJQM6Tg?e=DreD7a

Feedback on docker installation on MacOS using 2.8

$
0
0

Hello,

new here, first of all, thanks for the job!

I tried to set a new server for my network with 2.8 running through docker. I saw different issues:

1. I can't get correct times in local format (french). I needed to force /etc/localtime link in both ocs server and db server to use my locales (Europe/Paris)

2. While trying extensions, I saw that, despite python3 and scp module installation requirements in Dockerfile, I had to set it up by hand.

3. While trying to restart my docker image I was experiencing and infinite restart loop probably due to an existing apache pid file. I saw a typo in /usr/bin/docker-entrypoint.sh as my httpd pid file is not /var/run/httpd.pid as defined in the APACHE_PID_FILE environment variable but in /var/run/httpd/ 

Hope this will help

Regards

image

image

Answered: Insert statements every Hour

$
0
0
Hi,

Have you installed and enabled cve inventory ?

Regards

Frank
Viewing all 7067 articles
Browse latest View live


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