Closed Badkempachi closed 2 years ago
inventory file wsus2.stolyarov.info-2022-03-12-21-45-56.txt
P.s the agent itself collects information about installed antiviruses, but the server does not receive information sent to it.
Provided file is not valid XML, and does not contains any "antivirus" node. Once again, I'm not able to reproduce.
@Badkempachi
You must check the files before attaching them and open issue.
As @trasher said, your current file doesn't have an <ANTIVIRUS>
node so the error you mentioned in your issue is not triggered by the current file.
Having Dr.Web in a <SOFTWARE>
node is not sufficient to have an antivirus management by the native inventory.
So 2 hypothesis:
Please check.
hello same issue
I join for example file computer.json
SQl ERROR : computer_0_156.json for example
[2022-05-18 09:22:23] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 370
*** MySQL query error:
SQL: UPDATE `glpi_computerantiviruses` SET `is_uptodate` = '' WHERE `id` = '247'
Error: Incorrect integer value: '' for column `glpi`.`glpi_computerantiviruses`.`is_uptodate` at row 1
Backtrace :
src/DBmysql.php:1431
src/CommonDBTM.php:660 DBmysql->update()
src/CommonDBTM.php:1649 CommonDBTM->updateInDB()
src/Inventory/Asset/Antivirus.php:124 CommonDBTM->update()
src/Inventory/Asset/MainAsset.php:775 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:696 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1507 RuleImportAsset->executeActions()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/MainAsset.php:522 RuleCollection->processAllRules()
src/Inventory/Inventory.php:694 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:330 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:366 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:90 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:325 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:237 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
src/Inventory/Conf.php:196 Glpi\Agent\Communication\AbstractRequest->handleRequest()
src/Inventory/Conf.php:138 Glpi\Inventory\Conf->importContentFile()
front/inventory.conf.php:47 Glpi\Inventory\Conf->importFile()
{"user":"7@srv-glpi"}
[2022-05-18 09:25:05] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 370
*** MySQL query error:
SQL: UPDATE `glpi_computerantiviruses` SET `is_uptodate` = '' WHERE `id` = '247'
Error: Incorrect integer value: '' for column `glpi`.`glpi_computerantiviruses`.`is_uptodate` at row 1
Backtrace :
src/DBmysql.php:1431
src/CommonDBTM.php:660 DBmysql->update()
src/CommonDBTM.php:1649 CommonDBTM->updateInDB()
src/Inventory/Asset/Antivirus.php:124 CommonDBTM->update()
src/Inventory/Asset/MainAsset.php:775 Glpi\Inventory\Asset\Antivirus->handle()
src/Inventory/Asset/MainAsset.php:696 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:942 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1507 RuleImportAsset->executeActions()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/MainAsset.php:522 RuleCollection->processAllRules()
src/Inventory/Inventory.php:694 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:330 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:366 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:90 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:325 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:237 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
src/Inventory/Conf.php:196 Glpi\Agent\Communication\AbstractRequest->handleRequest()
src/Inventory/Conf.php:138 Glpi\Inventory\Conf->importContentFile()
front/inventory.conf.php:47 Glpi\Inventory\Conf->importFile()
{"user":"7@srv-glpi"}
I'm not able to reproduce with provided file :/ Antivirus seems correctly imported without errors (at least on current nighly):
computer 156 :
it is added well in the computer but it generates this sql file. error I don't know why
displays ok but generation sql.error :
I think I found the issue... Reporter says he uses php 7.4; but on my side, I reproduce only with php 8...
I think I found the issue... Reporter says he uses php 7.4; but on my side, I reproduce only with php 8...
I use PHP 8.0.18
@Badkempachi
You must check the files before attaching them and open issue. As @trasher said, your current file doesn't have an
<ANTIVIRUS>
node so the error you mentioned in your issue is not triggered by the current file. Having Dr.Web in a<SOFTWARE>
node is not sufficient to have an antivirus management by the native inventory.So 2 hypothesis:
* you're sending to us the wrong file * you removed yourself the node.
Please check.
Hey,
This is a screenshot of the Dr.web server software, the control panel and the agent itself are installed on it, and it does not show that the antivirus is installed. The situation is repeated on the Kaspersky server. Might need to be added somewhere. If the antivirus does not get into the
You're talking about a different issue that the one reported here. This is an agent/windows issue, not a GLPI one.
You're talking about a different issue that the one reported here. This is an agent/windows issue, not a GLPI one.
understood. Thank you
Code of Conduct
Is there an existing issue for this?
Version
GLPI 10.0.1
Bug description
Hello everyone, there is a problem. On the operating system (Microsoft Windows Server 2019, Microsoft Windows Server 2012 R2, Microsoft Windows Server 2016), the GLPI service page does not display antivirus software. Dr.Web Server, Dr.Web Agent version 13.0, Kaspersky Endpoint Security and Kaspersky Security Center are not displayed on the Windows platform. It displays normally on Windows 7 and Windows 10 workstations. On Linux, ClamAV antivirus is not displayed.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response