Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.9.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

OCS reports and OCS server errors

Good afternoon

Tell me how to solve 2 errors.

1. SECURITY ALERT!

The default SQL login/password is set on your database: ocsweb

2. ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`

in OCS Inventory NG server for Unix by (240 points)

6 Answers

0 votes

Hello,

Update your defaut mysql account password through a mysql shell or mysqladmin tool.

Update the password value in these files :

  • z-ocsinventory-server.conf (the communication server apache configuration file)
  • zz-ocsinventory-restapi.conf (the rest api apache configuration file if you have installed this feature)
  • dbconfig.inc.php located in /usr/share/ocsinventory-reports/ocsreports/

The second error is harmless from my experience. More like a warning i think. Must be in relation with the value of the IPDISCOVER_LINK_TAG_NETWORK option located in the general configuration ipdiscover section of the administration server.

by (800 points)
0 votes

1. did on this, basically as you pointed out :

https://ask.ocsinventory-ng.org/6797/how-to-change-user-password-and-fix-error

mysql root password not default and was changed during installation.

Nothing has changed, the warning remains.

2. Yes, I also would not drew attention to both warnings, but during the inventory there is not all the data (only partial gather) for HARDWARE if view 
watch the tab Hardware for a specific computer.
In logs not errors.

Do not tell me how what is the reason?

by (240 points)
0 votes

Hardware, Network, Devices are empty #298

download Data.pm from here:
https://github.com/OCSInventory-NG/OCSInventory-Server/tree/master/Apache/Ocsinventory/Server/Inventory
and replace the original Data.pm here:
/usr/local/share/perl/5.30.0/Apache/Ocsinventory/Server/Inventory
Maybe its save to rename the original one. :)

Does not help.

by (240 points)
0 votes

I've changed both login and password since i use "ocs" as mysql account and a complex password.

Regarding the partial data posted to the server, how do you execute the agent ? The agent needs to find system binaries like dmidecode, ip, ifconfig to retrieve system properties.

You should see these lines in the agent log file (use the --debug parameter) :

[Fri Aug 20 14:42:41 2021][debug]  - dmidecode found
[Fri Aug 20 14:42:41 2021][debug]  - df found
[Fri Aug 20 14:42:41 2021][debug]  - pvs found
[Fri Aug 20 14:42:41 2021][debug]  - /proc/meminfo can be read
[Fri Aug 20 14:42:41 2021][debug]  - ip found
[Fri Aug 20 14:42:41 2021][debug]  - ip found
[Fri Aug 20 14:42:41 2021][debug]  - Net::IP qw(:PROC) loaded
[Fri Aug 20 14:42:41 2021][debug]  - lshw found
by (800 points)
0 votes

Good afternoon.

This is a ocsinventory.log with Windows 10 and debug is equal to 2.

Everything seems to be so.

What, where to look or search.

Starting OCS Inventory Agent on Sunday, August 22, 2021 10:13:17.
AGENT => Running OCS Inventory Agent Version 2.9.0.0
AGENT => Using OCS Inventory FrameWork Version 2.9.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.9.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <OIT_BSO2-2021-06-30-11-10-12> and MACs <0C:5B:8F:27:9A:64F0:79:59:96:33:AF00:AC:1F:67:6E:B5> 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://freebsdamp..../ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <PROLOG_FREQ>1</PROLOG_FREQ>
  <OPTION>
    <PARAM PERIOD_LENGTH="10" PERIOD_LATENCY="1" CYCLE_LATENCY="60" ON="0" TYPE="CONF" TIMEOUT="30" FRAG_LATENCY="10" EXECUTION_TIMEOUT="120" />
    <NAME>DOWNLOAD</NAME>
  </OPTION>
  <RESPONSE>SEND</RESPONSE>
  <INVENTORY_ON_STARTUP>1</INVENTORY_ON_STARTUP>
</REPLY>

================= TRACE STOP ===============
AGENT => Prolog successfully sent
    AGENT => Prolog Frequency set to 1 hour(s)
    AGENT => Inventory on startup option set to 1
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <>
    INVENTORY => Operating System is <    INVENTORY => Operating System uses 64 bits memory address width
    INVENTORY => Computer domain or workgroup is <.....com>
    INVENTORY => User domain is <>
    INVENTORY => System Manufacturer <ASUS>, System Model <All Series>, System S/N <System Serial Number>, Bios Manufacturer <American Megatrends Inc.>, Bios Date <24/10/2014>, Bios Version <1003>, Motherboard Manufacturer <ASUSTeK COMPUTER INC.>, Motherboard Model <>, Motherboard S/N <150137221305889>
    INVENTORY => 1 processor(s) Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz [2 core(s) x86_64] at 3600 MHz
    INVENTORY => OS Memory 8064 MB, OS Swap size 12160 MB
    INVENTORY => 2 memory slot(s) found
    INVENTORY => 2 input device(s) found
    INVENTORY => 18 system port(s) found
    INVENTORY => 3 system slot(s) found
    INVENTORY => 5 system controller(s) found
    INVENTORY => 3 storage peripheral(s) found
    INVENTORY => 1 sound device(s) found
    WARNING *** INVENTORY => Failed to retrieve modems
    INVENTORY => 22 network adapter(s) found
    INVENTORY => 22 system printer(s) found
    INVENTORY => 2 video adapter(s) found
    INVENTORY => 2 system monitor(s) found
    INVENTORY => Default IPv4 address is <192.168.250.101>
    INVENTORY => Registered company <>, registered owner <oit>, Product ID <00330-80...>
    INVENTORY => Product key <VK7JG-NP...>
    INVENTORY => 480 software found
    INVENTORY => Computer/VM UUID is <D3BCDFDE-DC47-51E8-5398-F079599633AF>
    INVENTORY => Computer seems to be Microsoft virtual host
    INVENTORY => System Memory set to 8192 (instead of 8064)
    INVENTORY => Reading last inventory state
    EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    EXECUTABLE PLUGIN => Searching for PS1 script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
    EXECUTABLE PLUGIN => Found executable plugin <Saas.ps1>
================= TRACE START ===============

================= TRACE STOP ===============
    WARNING *** EXECUTABLE PLUGIN => Executable plugin <C:\Program Files\OCS Inventory Agent\plugins\Saas.ps1> output is not UTF-8 encoded or an XML document, trying to UTF-8 encode
    WARNING *** EXECUTABLE PLUGIN => Executable plugin <C:\Program Files\OCS Inventory Agent\plugins\Saas.ps1> output encoded to UTF-8, trying to reload XML document
ERROR *** EXECUTABLE PLUGIN => Executable plugin <C:\Program Files\OCS Inventory Agent\plugins\Saas.ps1> output is not a valid XML document
AGENT => Sending Inventory
    INVENTORY => Checking last inventory state
    INVENTORY => Logical drives inventory state changed
INVENTORY => Inventory changed since last run
    INVENTORY => Generating XML document with Device properties
    INVENTORY => XML Update BIOS
    INVENTORY => XML Update 1 CPU(s)
    INVENTORY => XML Update 2 Memory Slot(s)
    INVENTORY => XML Update 2 Input Device(s)
    INVENTORY => XML Update 18 System Port(s)
    INVENTORY => XML Update 5 System Controller(s)
    INVENTORY => XML Update 3 System Slot(s)
    INVENTORY => XML Update 1 Sound Device(s)
    INVENTORY => XML Update 3 Storage Peripheral(s)
    INVENTORY => XML Update 5 Logical Drive(s)
    INVENTORY => XML Update 0 Modem(s)
    INVENTORY => XML Update 22 Network Adapter(s)
    INVENTORY => XML Update 2 Video Adapter(s)
    INVENTORY => XML Update 2 Monitor(s)
    INVENTORY => XML Update 22 Printer(s)
    INVENTORY => XML Update 481 Software
    INVENTORY => XML Update 0 Registry Value(s)
    INVENTORY => XML Update Administrative Information(s)
    INVENTORY => XML Update common Device properties
    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://freebsdamp...../ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
  <RESPONSE>ACCOUNT_UPDATE</RESPONSE>
  <ACCOUNTINFO>
    <KEYNAME>TAG</KEYNAME>
    <KEYVALUE>LOST</KEYVALUE>
  </ACCOUNTINFO>
</REPLY>

================= TRACE STOP ===============
ADMIN INFO => Couple ( TAG <=> LOST ) added to configuration file
AGENT => Inventory successfully sent
    INVENTORY => Writing new inventory state
AGENT =>  Communication Server asked for Package Download
    DOWNLOAD => Package history file cleaning not required
    DOWNLOAD => Download disabled by server
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:13.

 

by (240 points)
0 votes
Can you try to execute the agent in local mode i.e with the /local=<local_directory> parameter and check the outputfile for your missing data ?
by (800 points)
 
Powered by Question2Answer
...