We have an issue scanning Ubuntu 18 servers with CIS Benchmark for Ubuntu 18.04 LTS v1.0.0 Level 1 policy. We are getting error "
We tried article Error received from agent: ERRORED” when running a data collection on CCS agents. but with no success.
OR you are seeing the error message "Error executing datasource handler for Agent based target"
From the Agent logs (DCModule.log) you see an error like this:
3575|2022/06/21|11:04:01| BvCUCommandsDataSource.cpp| 299|Information: - <dcQueryParams><params><param name="CmdAssociationID" isSecure="False"><![CDATA[82FECB24-####-####-####-####C6705BCC]]></param><param name="StdoutAsMultipleRecords" isSecure="False"><![CDATA[False]]></param><param name="Context" isSecure="False"><![CDATA[Standard: "CIS Benchmark for Ubuntu 18.04 LTS v1.0.0 Level 1" (1.5.0) Check: "4.2.1.4 Ensure rsyslog is configured to send logs to a remote log host" (1.0.0)]]></param><param name="isPredefined" isSecure="False"><![CDATA[True]]></param></params></dcQueryParams>
3575|2022/06/21|11:04:01| BvCUCommandsDataSource.cpp| 798|Error: - HexDecode Failed
3575|2022/06/21|11:04:01| BvCUCommandsDataSource.cpp| 305|Error: - ParseXmlScopeParameters failed
3575|2022/06/21|11:04:01| BvCUCommandsDataSource.cpp| 192|Error: - 0x5
3575|2022/06/21|11:04:01| BvCUDataSource.cpp| 262|Error: - 0x5
3575|2022/06/21|11:04:01| BvCUDataSource.cpp| 271|Perf. Timing: - Time taken by BvCUDataSource::Execute for Datasource 'COMMANDS' for Machine: 'agenthostname': Number of Calls: 1, Total time spent in MilliSecs: 110, Time spent in last call in MilliSecs: 110
3575|2022/06/21|11:04:01| BVUnixCommon.cpp| 455|Information: - <message level="1" target="agenthostname"><desc><![CDATA[Error executing datasource handler for Agent based target]]></desc><asset
Release: 12.5.x - 12.6.x
In this circumstance, the CCS Standard being used is corrupt.
If the CCS Standard is exported, only 2 files are created while a 3rd "<StandardName>_Commands.xml" is missing.
To resolve this issue, either export the Standard from a known good source or backup (if it is a custom standard).
OR
Recopy the predefined Standard.
If the predefined Standard is correct you will need to delete and re-install the Standard following these steps.